-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_dev.html
62 lines (57 loc) · 1.71 KB
/
index_dev.html
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
<!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" />
<title>alex strand: digital garden</title>
<style>
body {
display: none;
}
</style>
<script type="module" src="src/theme.js"></script>
<!-- <script type="module">
const COLORS = {
dark: {
darkBg: "#1e1a1d",
darkText: "#f9f9f8",
},
light: {
lightBg: "#f3efe0",
lightText: "#1e1a1d",
},
};
if (window !== typeof undefined) {
const localStorageTheme = localStorage.getItem("theme");
const userPrefersDarkTheme = window.matchMedia(
"(prefers-color-scheme: dark)"
);
const localStorageIsDark = localStorageTheme === "dark";
let themeValue;
if (userPrefersDarkTheme.matches || localStorageIsDark) {
themeValue = "dark";
} else {
themeValue = "light";
}
const root = document.documentElement;
root.style.setProperty(
"--color-bg",
themeValue === "light" ? COLORS.light.lightBg : COLORS.dark.darkBg
);
root.style.setProperty(
"--color-fg",
themeValue === "light" ? COLORS.light.lightText : COLORS.dark.darkText
);
root.style.setProperty("--site-theme", themeValue);
}
</script> -->
<!--css-outlet-->
<script type="module" src="waitForCSS.js"></script>
</head>
<body>
<div id="root"></div>
<!--body-outlet-->
<script type="module" src="src/entry-client.jsx"></script>
</body>
</html>