180 lines
6.0 KiB
HTML
180 lines
6.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="Complete showcase of vite-plugin-appdev-design-mode latest features - Visual component editor with real-time design system management" />
|
|
<meta name="keywords" content="design mode, visual editor, component library, react, vite, tailwindcss, radix-ui" />
|
|
<meta name="author" content="XAGI Team" />
|
|
|
|
<!-- Open Graph / Facebook -->
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="https://vite-plugin-appdev-design-mode.dev/" />
|
|
<meta property="og:title" content="AppDev Design Mode - Full Featured Showcase" />
|
|
<meta property="og:description" content="Complete showcase of vite-plugin-appdev-design-mode latest features" />
|
|
<meta property="og:image" content="/og-image.png" />
|
|
|
|
<!-- Twitter -->
|
|
<meta property="twitter:card" content="summary_large_image" />
|
|
<meta property="twitter:url" content="https://vite-plugin-appdev-design-mode.dev/" />
|
|
<meta property="twitter:title" content="AppDev Design Mode - Full Featured Showcase" />
|
|
<meta property="twitter:description" content="Complete showcase of vite-plugin-appdev-design-mode latest features" />
|
|
<meta property="twitter:image" content="/og-image.png" />
|
|
|
|
<!-- Preload critical fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
|
|
<title>AppDev Design Mode - Full Featured Showcase</title>
|
|
|
|
<style>
|
|
/* Critical CSS for loading state */
|
|
.loading-screen {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
color: white;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
.loading-logo {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-bottom: 20px;
|
|
border: 4px solid rgba(255, 255, 255, 0.3);
|
|
border-top: 4px solid white;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
opacity: 0;
|
|
animation: fadeInUp 0.8s ease-out 0.2s forwards;
|
|
}
|
|
|
|
.loading-subtitle {
|
|
font-size: 14px;
|
|
opacity: 0.8;
|
|
opacity: 0;
|
|
animation: fadeInUp 0.8s ease-out 0.4s forwards;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Design mode debug styles */
|
|
[data-design-mode-active] {
|
|
outline: 2px solid #3b82f6 !important;
|
|
outline-offset: 2px !important;
|
|
position: relative;
|
|
}
|
|
|
|
[data-design-mode-active]::before {
|
|
content: attr(data-design-mode-component);
|
|
position: absolute;
|
|
top: -8px;
|
|
left: -2px;
|
|
background: #3b82f6;
|
|
color: white;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-family: monospace;
|
|
z-index: 1000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Component highlight styles */
|
|
.component-highlight {
|
|
transition: all 0.2s ease-in-out;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.component-highlight:hover {
|
|
border-color: #3b82f6;
|
|
background-color: rgba(59, 130, 246, 0.05);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root">
|
|
<!-- Loading screen shown while React loads -->
|
|
<div class="loading-screen" id="loading-screen">
|
|
<div class="loading-logo"></div>
|
|
<div class="loading-text">AppDev Design Mode</div>
|
|
<div class="loading-subtitle">Full Featured Showcase</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Error boundary for critical failures -->
|
|
<script>
|
|
window.addEventListener('error', function(e) {
|
|
console.error('Critical error:', e.error);
|
|
const loadingScreen = document.getElementById('loading-screen');
|
|
if (loadingScreen) {
|
|
loadingScreen.innerHTML = `
|
|
<div style="text-align: center; padding: 20px;">
|
|
<h2 style="color: #ef4444; margin-bottom: 10px;">Something went wrong</h2>
|
|
<p style="opacity: 0.8; margin-bottom: 20px;">Failed to load the application</p>
|
|
<button
|
|
onclick="window.location.reload()"
|
|
style="
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
"
|
|
>
|
|
Reload Page
|
|
</button>
|
|
</div>
|
|
`;
|
|
}
|
|
});
|
|
|
|
// Hide loading screen once React has loaded
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
setTimeout(function() {
|
|
const loadingScreen = document.getElementById('loading-screen');
|
|
if (loadingScreen && loadingScreen.parentElement) {
|
|
loadingScreen.style.opacity = '0';
|
|
loadingScreen.style.transition = 'opacity 0.5s ease-out';
|
|
setTimeout(function() {
|
|
loadingScreen.remove();
|
|
}, 500);
|
|
}
|
|
}, 1000);
|
|
});
|
|
</script>
|
|
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html> |