Spaces:
Paused

Velo / index.html
Leon4gr45's picture
Upload folder using huggingface_hub
55847d9 verified
Raw History Blame Contribute Delete
4.57 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vela — AI Novel Writing IDE</title>
</head>
<body style="margin: 0;">
<!-- Read the theme synchronously to prevent a background flash while loading. -->
<script>
(function() {
var bgMap = { light: '#F7F9FC', galaxy: '#0A1628', paper: '#F5F0E8', dark: '#1E1E1E' };
var theme = 'dark';
try {
var raw = localStorage.getItem('vela-theme');
if (raw) {
var state = JSON.parse(raw).state;
theme = state.resolvedTheme || state.theme || 'dark';
if (theme === 'night') theme = 'dark'; // Backward compatibility
}
} catch(e) {}
var bg = bgMap[theme] || bgMap.galaxy;
// Apply the theme class early so all global CSS variables take effect immediately.
document.documentElement.classList.remove('light', 'dark', 'galaxy', 'paper');
document.documentElement.classList.add(theme);
document.body.style.backgroundColor = bg;
/* Expose the background as a CSS variable for the initial loader. */
document.documentElement.style.setProperty('--loader-bg', bg);
})();
</script>
<div id="root">
<style>
.vela-initial-loader {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
background-color: var(--loader-bg, #0A1628);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
user-select: none;
}
.vela-core-container {
position: relative;
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 24px;
}
.vela-ring {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 2px solid transparent;
border-top-color: rgba(126, 200, 227, 0.8);
border-bottom-color: rgba(155, 142, 200, 0.8);
animation: vela-spin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.vela-ring-inner {
position: absolute;
width: 65%;
height: 65%;
border-radius: 50%;
border: 2px solid transparent;
border-left-color: rgba(126, 200, 227, 0.8);
border-right-color: rgba(201, 167, 108, 0.8);
animation: vela-spin-reverse 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
.vela-core {
width: 14px;
height: 14px;
background: linear-gradient(135deg, #7EC8E3, #9B8EC8);
border-radius: 50%;
box-shadow: 0 0 20px rgba(126, 200, 227, 0.6), 0 0 40px rgba(155, 142, 200, 0.4);
animation: vela-pulse 2s ease-in-out infinite;
}
.vela-text {
font-size: 13px;
font-weight: 500;
letter-spacing: 4px;
text-transform: uppercase;
background: linear-gradient(90deg, #7EC8E3, #9B8EC8, #C9A76C, #7EC8E3);
background-size: 200% auto;
color: transparent;
-webkit-background-clip: text;
background-clip: text;
animation: vela-text-shine 3s linear infinite;
}
@keyframes vela-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes vela-spin-reverse {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}
@keyframes vela-pulse {
0%, 100% { transform: scale(0.8); opacity: 0.8; box-shadow: 0 0 15px rgba(126, 200, 227, 0.5); }
50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 30px rgba(126, 200, 227, 0.9), 0 0 50px rgba(155, 142, 200, 0.6); }
}
@keyframes vela-text-shine {
to { background-position: 200% center; }
}
</style>
<div class="vela-initial-loader">
<div class="vela-core-container">
<div class="vela-ring"></div>
<div class="vela-ring-inner"></div>
<div class="vela-core"></div>
</div>
<div class="vela-text">Vela</div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>