-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (58 loc) · 2.08 KB
/
Copy pathindex.html
File metadata and controls
62 lines (58 loc) · 2.08 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Primary meta -->
<title>Prism</title>
<meta name="description" content="Sign in to your account" />
<meta name="application-name" content="Prism" />
<meta name="theme-color" content="#0078d4" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Prism" />
<meta property="og:description" content="Sign in to your account" />
<meta property="og:image" content="/ic_fluent_lock_shield_48_color.svg" />
<!-- Favicon -->
<link
rel="icon"
type="image/svg+xml"
href="/ic_fluent_lock_shield_48_color.svg"
/>
<!-- Resolve color scheme synchronously before paint and refresh the
prism_color_scheme cookie. An explicit user choice saved by the
in-app theme switcher (localStorage prism_theme_mode) wins over
matchMedia. The cookie is what the server reads on the *next*
request to SSR with the right theme; refreshing it on every load
means an OS theme change is picked up by the next navigation, not
the one after. -->
<script>
(function () {
var mode = null;
try {
mode = localStorage.getItem("prism_theme_mode");
} catch (e) {
/* storage may be blocked; fall through to matchMedia */
}
var scheme =
mode === "dark" || mode === "light"
? mode
: window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light";
document.cookie =
"prism_color_scheme=" +
scheme +
"; path=/; max-age=31536000; samesite=lax";
document.documentElement.setAttribute("data-theme", scheme);
})();
</script>
<!--app-head-->
</head>
<body>
<div id="root"><!--app-html--></div>
<!--app-state-->
<script type="module" src="/src/entry-client.tsx"></script>
</body>
</html>