-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
196 lines (156 loc) · 5.44 KB
/
Copy path404.html
File metadata and controls
196 lines (156 loc) · 5.44 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
184
185
186
187
188
189
190
191
192
193
194
195
196
<!doctype html>
<html class="not-ready lg:text-base" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Title -->
<title>
crossxcell99
</title>
<!-- Meta -->
<meta name="theme-color" />
<!-- Author -->
<!---->
<meta name="description" content="My blog posts and projects" />
<meta name="author" content="crossxcell99" />
<!-- The Open Graph protocol -->
<meta property="og:type" content="website" />
<meta property="og:title" content="crossxcell99" />
<meta property="og:description" content="My blog posts and projects" />
<meta property="og:url" content="https://crossxcell99.github.io" />
<!---->
<!-- CSS & JS -->
<link rel="preload stylesheet" as="style" href="https://crossxcell99.github.io/main.css" />
<style>
:root {
--bg: #f4f4f5;
--bg-dark: #18181b;
--header: #e4e4e7;
--header-dark: #27272a;
}
</style>
<!-- Dark Icon -->
<link rel="preload" as="image" href="https://crossxcell99.github.io/icons/theme.svg" />
<!-- Math -->
<!---->
<!-- Mermaid -->
<!---->
<!-- Favicon -->
<link rel="icon" href="https://crossxcell99.github.io/favicon.ico" />
<link rel="apple-touch-icon" href="https://crossxcell99.github.io/apple-touch-icon.png" />
<!-- Feeds -->
<!-- Canonical -->
<link rel="canonical" href="https://crossxcell99.github.io" />
</head>
<body class="text-black duration-200 ease-out dark:text-white">
<header
class="header fixed top-0 z-40 mx-auto min-h-[3.5rem] w-full"
>
<div class="mx-auto w-full max-w-4xl p-3 lg:flex lg:justify-between">
<div class="flex justify-between">
<div class="flex items-center">
<a class="text-2xl font-semibold" href="https://crossxcell99.github.io">crossxcell99</a>
<div
class="btn-dark ml-4 h-6 w-6 shrink-0 cursor-pointer text-[0] [background:url(./icons/theme.svg)_left_center/cover_no-repeat] dark:invert dark:[background-position:right]"
role="button"
aria-label="Dark"
></div>
</div>
<div
class="btn-menu relative z-50 flex h-8 w-8 shrink-0 cursor-pointer flex-col items-center justify-center gap-2.5 lg:hidden"
role="button"
aria-label="Menu"
></div>
</div>
<script>
// base
const htmlClass = document.documentElement.classList;
setTimeout(() => {
htmlClass.remove("not-ready");
}, 10);
// mobile menu
const btnMenu = document.querySelector(".btn-menu");
btnMenu?.addEventListener("click", () => {
htmlClass.toggle("open");
});
// dark theme
const setDark = (isDark) => {
if (isDark) {
document.body.dispatchEvent(new CustomEvent("set-theme", { detail: "dark" }));
htmlClass.add("dark");
} else {
document.body.dispatchEvent(new CustomEvent("set-theme", { detail: "light" }));
htmlClass.remove("dark");
}
localStorage.setItem("dark", isDark);
};
// init
const darkScheme = window.matchMedia("(prefers-color-scheme: dark)");
if (htmlClass.contains("dark")) {
setDark(true);
} else {
const darkVal = localStorage.getItem("dark");
setDark(darkVal ? darkVal === "true" : darkScheme.matches);
}
// listen system
darkScheme.addEventListener("change", (event) => {
setDark(event.matches);
});
// manual switch
const btnDark = document.querySelector(".btn-dark");
btnDark.addEventListener("click", () => {
setDark(localStorage.getItem("dark") !== "true");
});
</script>
<nav class="flex w-full items-center lg:w-auto">
<ul
class="nav-wrapper flex w-full flex-col py-2 lg:w-auto lg:flex-row lg:self-center lg:py-0"
>
<li>
<a
class="primary-link block py-2 text-center text-lg font-medium lg:px-3 lg:py-0"
href="/projects"
>Projects</a
>
</li>
<li>
<a
class="primary-link block py-2 text-center text-lg font-medium lg:px-3 lg:py-0"
href="/blog"
>Blog</a
>
</li>
<li>
<a
class="primary-link block py-2 text-center text-lg font-medium lg:px-3 lg:py-0"
href="/tags"
>Tags</a
>
</li>
</ul>
</nav>
</div>
</header>
<main
class="prose prose-neutral relative mx-auto min-h-[calc(100%-9rem)] max-w-3xl break-words px-4 pb-16 pt-32 dark:prose-invert prose-pre:rounded-lg prose-img:rounded-lg"
>
<!---->
<h1 class="absolute inset-x-8 bottom-20 top-0 flex items-center justify-center text-9xl">404</h1>
</main>
<footer class="mx-auto flex max-w-3xl flex-wrap items-center px-8 py-4 text-sm opacity-60">
<div class="mr-auto basis-full lg:basis-1/2">
© 2024
<a class="link" href="https://crossxcell99.github.io"
>crossxcell99</a
>
</div>
<div class="flex basis-full lg:basis-1/2 lg:justify-end">
<a class="link mr-6 lg:ml-6" href="https://www.getzola.org/" rel="noopener" target="_blank"
>Powered by Zola</a
>
<a class="link" href="https://github.com/st1020/kita" rel="noopener" target="_blank">✎ Kita</a>
</div>
</footer>
</body>
</html>