Open History to see the last commit
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta
6 name="viewport"
7 content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
8 />
9 <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
10 <meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)" />
11 <meta name="theme-color" content="#0a0a0a" />
12 <link rel="icon" href="/favicon.ico" sizes="48x48" />
13 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
14 <script>
15 (() => {
16 const LIGHT_BACKGROUND = "#ffffff";
17 const DARK_BACKGROUND = "#0a0a0a";
18 const themeColorMeta = document.querySelector('meta[name="theme-color"]');
19 try {
20 const storedTheme = window.localStorage.getItem("t3code:theme");
21 const theme =
22 storedTheme === "light" || storedTheme === "dark" || storedTheme === "system"
23 ? storedTheme
24 : "system";
25 const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
26 const isDark = theme === "dark" || (theme === "system" && prefersDark);
27 document.documentElement.classList.toggle("dark", isDark);
28 const chromeColor = isDark ? DARK_BACKGROUND : LIGHT_BACKGROUND;
29 document.documentElement.style.backgroundColor = chromeColor;
30 themeColorMeta?.setAttribute("content", chromeColor);
31 } catch {
32 document.documentElement.classList.add("dark");
33 document.documentElement.style.backgroundColor = DARK_BACKGROUND;
34 themeColorMeta?.setAttribute("content", DARK_BACKGROUND);
35 }
36 })();
37 </script>
38 <style>
39 html,
40 body,
41 #root {
42 width: 100%;
43 height: 100%;
44 margin: 0;
45 }
46
47 body {
48 background: #ffffff;
49 color: #262626;
50 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
51 }
52
53 html.dark body {
54 background: #0a0a0a;
55 color: #f5f5f5;
56 }
57
58 #boot-shell {
59 display: flex;
60 min-height: 100%;
61 align-items: center;
62 justify-content: center;
63 background: inherit;
64 }
65
66 #boot-shell-card {
67 display: flex;
68 align-items: center;
69 justify-content: center;
70 width: 96px;
71 height: 96px;
72 }
73
74 #boot-shell-logo {
75 width: 64px;
76 height: 64px;
77 object-fit: contain;
78 }
79 </style>
80 <title>T3 Code (Alpha)</title>
81 </head>
82 <body>
83 <div id="root">
84 <div id="boot-shell">
85 <div id="boot-shell-card" aria-label="T3 Code splash screen">
86 <img id="boot-shell-logo" src="/apple-touch-icon.png" alt="T3 Code" />
87 </div>
88 </div>
89 </div>
90 <script type="module" src="/src/main.tsx"></script>
91 </body>
92</html>