forked from B0und/WikiSpeedrun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (77 loc) · 3.03 KB
/
index.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
<!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>Wiki Speedrun</title>
<meta
name="description"
content="The goal of the game is to navigate from a starting wikipedia article to another one, in the least amount of clicks and time."
/>
<!-- metadata for reddit -->
<meta property="og:image" content="https://wikispeedrun.org/twitter-img.jpg" />
<meta property="og:image:alt" content="A wikipedia logo with speedrun timer on top of it" />
<!-- twitter metadata -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@unbound_dev" />
<meta name="twitter:url" content="https://wikispeedrun.org" />
<meta name="twitter:title" content="Wiki Speedrun Game" />
<meta
name="twitter:description"
content="The goal of the game is to navigate from a starting wikipedia article to another one, in the least amount of clicks and time."
/>
<meta name="twitter:image" content="https://wikispeedrun.org/twitter-img.jpg" />
<meta name="twitter:image:alt" content="A wikipedia logo with speedrun timer on top of it." />
<%if (isProd) { %>
<!-- old icon format -->
<link rel="icon" sizes="any" href="favicon.ico" />
<!-- svg icon -->
<link rel="icon" type="image/svg+xml" href="icon.svg" />
<% } %> <%if (isDev) { %>
<!-- old icon format -->
<link rel="icon" sizes="any" href="favicon-dev.ico" />
<!-- svg icon -->
<link rel="icon" type="image/svg+xml" href="icon-dev.svg" />
<% } %>
<!-- apple icon -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://wikispeedrun.org/apple-touch-icon.png"
/>
<link rel="manifest" href="https://wikispeedrun.org/site.webmanifest" />
<!-- font -->
<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=Noto+Sans:wght@400;700&display=swap"
rel="stylesheet"
/>
<script>
// It's best to inline this in `head` to avoid FOUC (flash of unstyled content) when changing pages or themes
if (
localStorage.getItem("color-theme") === "dark" ||
(!("color-theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<% if(isProd){ %>
<!-- Cloudflare Web Analytics -->
<script
defer
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "6d1eeb4908dc4fc38247c05e48505d88"}'
></script>
<!-- End Cloudflare Web Analytics -->
<% } %>
</body>
</html>