-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 1.79 KB
/
Copy pathindex.html
File metadata and controls
45 lines (45 loc) · 1.79 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Volt UI</title>
<base href="/" />
<script>
// Applies the visitor's saved theme before first paint so there is no
// flash of the default (volt/sharp/light) theme while Angular loads.
// This mirrors src/app/components/theme-switcher.ts's localStorage
// keys; keep both in sync if those keys ever change. Runs unguarded
// because it only ever executes in the browser (a raw <script> tag
// is never evaluated by Angular's server renderer, just serialized).
(function () {
try {
var root = document.documentElement;
var color = localStorage.getItem('volt-color');
var style = localStorage.getItem('volt-style');
var dark = localStorage.getItem('volt-dark') === 'true';
if (color) root.setAttribute('data-color', color);
if (style) root.setAttribute('data-style', style);
if (dark) {
root.classList.add('dark');
root.style.colorScheme = 'dark';
}
} catch (e) {
// localStorage may be unavailable (private browsing, blocked
// storage) — fall back to the default theme, no worse than today.
}
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<app-root></app-root>
<script type="module" src="/src/main.ts"></script>
</body>
</html>