-
Notifications
You must be signed in to change notification settings - Fork 36
/
app.html
117 lines (102 loc) · 3.35 KB
/
app.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<!-- CONTENT_SECURITY_POLICY -->
<!-- ROBOTS -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<title>Network Nervous System frontend dapp</title>
<meta
content="Asset Management and Voting for the Network Nervous System"
name="description"
/>
<meta content="Network Nervous System frontend dapp" property="og:title" />
<meta
content="Asset Management and Voting for the Network Nervous System"
property="og:description"
/>
<meta content="website" property="og:type" />
<meta content="https://nns.ic0.app/" property="og:url" />
<meta
content="%sveltekit.assets%/assets/social-image.png"
property="og:image"
/>
<meta content="summary_large_image" name="twitter:card" />
<meta content="Network Nervous System frontend dapp" name="twitter:title" />
<meta
content="Asset Management and Voting for the Network Nervous System"
name="twitter:description"
/>
<meta
content="%sveltekit.assets%/assets/social-image.png"
name="twitter:image"
/>
<meta content="@dfinity" name="twitter:creator" />
<link href="https://nns.ic0.app/" rel="canonical" />
<link rel="manifest" href="/manifest.json" crossorigin="anonymous" />
<link href="/sitemap.xml" rel="sitemap" type="application/xml" />
<!-- Favicon -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="%sveltekit.assets%/assets/favicons/icon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="%sveltekit.assets%/assets/favicons/icon-16x16.png"
/>
<link rel="shortcut icon" href="%sveltekit.assets%/favicon.ico" />
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="#383c3c" />
<meta name="apple-mobile-web-app-title" content="Network Nervous System" />
<link
rel="apple-touch-icon"
href="%sveltekit.assets%/assets/favicons/apple-touch-icon.png"
/>
<link
rel="mask-icon"
href="%sveltekit.assets%/assets/favicons/safari-pinned-tab.svg"
color="#e82a7b"
/>
<!-- MS -->
<meta name="msapplication-TileColor" content="#383c3c" />
<meta
name="msapplication-config"
content="%sveltekit.assets%/assets/favicons/browserconfig.xml"
/>
<meta name="theme-color" content="#383c3c" />
<!-- Init theme as fast as possible -->
<script>
try {
const isDarkPreferred = window.matchMedia(
"(prefers-color-scheme: dark)"
).matches;
const currentTheme =
localStorage.nnsTheme === null ||
localStorage.nnsTheme === undefined ||
localStorage.nnsTheme === ""
? undefined
: JSON.parse(localStorage.nnsTheme);
// Attribute is the value of THEME_ATTRIBUTE constant
document.documentElement.setAttribute(
"theme",
currentTheme ?? (isDarkPreferred ? "dark" : "light")
);
} catch (error) {
console.error("Error initializing theme", error);
}
</script>
<!-- SCRIPT_LOADER -->
%sveltekit.head%
</head>
<body>
<div>%sveltekit.body%</div>
</body>
</html>