Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (64 loc) · 2.14 KB
/
Copy pathindex.html
File metadata and controls
65 lines (64 loc) · 2.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
// Set the .dark class before paint so the body bg + spinner below
// pick up the right theme on the very first frame, no flash.
(function () {
try {
var stored = localStorage.getItem("carry.theme");
var theme = stored || "system";
var resolved =
theme === "system"
? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
: theme;
if (resolved === "dark") document.documentElement.classList.add("dark");
} catch (e) {}
})();
</script>
<style>
/* Inline so it takes effect before the bundled CSS arrives. The
oklch values mirror --background in globals.css. */
html, body { margin: 0; padding: 0; height: 100%; }
body {
background: oklch(1 0 0);
color: oklch(0.145 0 0);
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.dark body {
background: oklch(0.145 0 0);
color: oklch(0.985 0 0);
}
#root { height: 100%; }
/* Loading shell — visible until React's first commit replaces #root. */
.app-loader {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
}
.app-loader__spinner {
width: 28px; height: 28px;
border: 2.5px solid oklch(0.92 0 0);
border-top-color: oklch(0.5 0 0);
border-radius: 50%;
animation: app-spin 0.7s linear infinite;
}
html.dark .app-loader__spinner {
border-color: oklch(0.27 0 0);
border-top-color: oklch(0.7 0 0);
}
@keyframes app-spin { to { transform: rotate(360deg); } }
</style>
<title>carry</title>
</head>
<body>
<div id="root">
<div class="app-loader">
<div class="app-loader__spinner"></div>
</div>
</div>
<script type="module" src="/ui/main.tsx"></script>
</body>
</html>