Repository navigation
Expand file tree
/
Copy path404.html
More file actions
183 lines (162 loc) · 4.97 KB
/
Copy path404.html
File metadata and controls
183 lines (162 loc) · 4.97 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!doctype html>
<html lang="nl">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#ffffff" />
<title>404 - Pagina niet gevonden | Klascal</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght,ROND@6..144,1..1000,100&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=error"
/>
<link rel="stylesheet" href="material.css" />
<style>
:root {
--primary-background: #faf9ff;
--primary-foreground: #f0eff7;
--primary-foreground-faded: #e9e8f0;
--primary-accent: #dfe7ff;
--primary-light: #526da8;
--primary-dark: #263858;
--primary-border: #777780;
--accent-text: #171b25;
--accent-text-light: #464954;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
background: var(--primary-background);
color: var(--accent-text);
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
font-family:
Google Sans Flex,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
sans-serif;
font-variation-settings: "ROND" 100;
user-select: none;
}
.error {
width: min(100%, 560px);
text-align: center;
}
.error-icon {
width: 96px;
height: 96px;
margin: 0 auto 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 2rem;
background: var(--primary-accent);
color: var(--primary-light);
font-family: "Material Symbols Rounded";
font-size: 48px;
font-weight: 600;
}
.error-code {
font-size: clamp(4rem, 16vw, 7rem);
line-height: 0.9;
font-weight: 600;
letter-spacing: -0.05rem;
color: var(--primary-light);
}
h1 {
font-size: 1.75rem;
font-weight: 600;
}
p {
margin: 0 auto;
max-width: 420px;
font-size: 1.25rem;
font-weight: 500;
font-variation-settings: "opsz" 100;
line-height: 1.5;
color: var(--accent-text-light);
}
.actions {
margin-top: 28px;
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.btn {
border: 0;
padding: 1.25rem 1.75rem;
border-radius: 4rem;
background: var(--primary-accent);
color: var(--accent-text);
font-size: 1.3rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition:
border-radius 0.2s ease-in-out,
filter 0.2s ease-in-out;
font-family: inherit;
}
.btn:hover {
filter: brightness(0.9);
border-radius: 1rem;
}
.btn.primary {
background: var(--primary-light);
color: white;
}
@media (prefers-color-scheme: dark) {
:root {
--primary-background: #111318;
--primary-foreground: #1b1c20;
--primary-foreground-faded: #202126;
--primary-accent: #29354d;
--primary-light: #b4c7ff;
--primary-dark: #d8e2ff;
--accent-text: #e4e2e9;
--accent-text-light: #c5c5ce;
}
.btn.primary {
color: #182033;
}
.btn:hover {
filter: brightness(1.1);
}
}
</style>
</head>
<body>
<main class="error">
<div>
<div class="error-icon">error</div>
<p class="error-code">404</p>
</div>
<h1>Pagina niet gevonden</h1>
<p>
Deze pagina bestaat niet of is verplaatst. Misschien is de link niet
goed gespeld?
</p>
<div class="actions">
<a class="btn primary" href="/">Naar Klascal</a>
<button class="btn" onclick="history.back()">Ga terug</button>
</div>
</main>
<script> (() => { const theme = localStorage.getItem("theme") || "blue"; const monochrome = localStorage.getItem("mono") === "true" ? " monochrome" : ""; document.body.setAttribute( "data-theme", `${theme}${monochrome}` ); const updateThemeColor = () => { const meta = document.querySelector('meta[name="theme-color"]'); if (!meta) return; const background = getComputedStyle(document.body) .getPropertyValue("--primary-background") .trim(); if (background) { meta.setAttribute("content", background); } }; updateThemeColor(); new MutationObserver(updateThemeColor).observe(document.body, { attributes: true, attributeFilter: ["data-theme"], }); })(); </script>
</body>
</html>