-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (52 loc) · 1.68 KB
/
index.html
File metadata and controls
52 lines (52 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Orion IDE - AI-Powered Code Editor" />
<meta name="theme-color" content="#0d1117" />
<meta name="color-scheme" content="dark light" />
<meta name="application-name" content="Orion IDE" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<title>Orion IDE</title>
<style>
/* Pre-React loading state — prevents white flash */
html, body, #root {
margin: 0; padding: 0;
width: 100%; height: 100%;
overflow: hidden;
background: #0d1117;
color: #e6edf3;
}
html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] #root {
background: #ffffff;
color: #1f2328;
}
#root:empty {
display: flex;
align-items: center;
justify-content: center;
}
#root:empty::after {
content: '';
width: 24px; height: 24px;
border: 2px solid rgba(88, 166, 255, 0.2);
border-top-color: #58a6ff;
border-radius: 50%;
animation: _spin 0.6s linear infinite;
}
@keyframes _spin { to { transform: rotate(360deg); } }
</style>
<script>
// Restore theme before first paint to prevent flash
try {
const t = localStorage.getItem('orion-theme');
if (t === 'light') document.documentElement.setAttribute('data-theme', 'light');
} catch(e) {}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>