-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
106 lines (90 loc) · 2.13 KB
/
404.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Bulma CSS -->
<link rel="stylesheet" href="./404/bulma.css">
<title>404 Error</title>
<link rel="shortcut icon" type="image/x-icon" href="./img/pfp.ico">
<!-- Style -->
<style>
body {
--color: #111;
--color2: #fff;
--color3: #4a4a4a;
}
body.light-theme {
--color: #fff;
--color2: #4a4a4a;
--color3: #0a0a0a;
}
@media (prefers-color-scheme: dark) {
/* defaults to dark theme */
body {
--color: #fff;
--color2: #4a4a4a;
--color3: #0a0a0a;
}
body.dark-theme {
--color: #111;
--color2: #fff;
--color3: #4a4a4a;
}
}
body {
overflow: hidden !important;
}
.mainF {
display: flex;
align-items: center;
flex-direction: column;
width: 100%;
}
.hero.is-success {
background-color: var(--color);
}
.button.is-white {
background-color: var(--color);
border-color: var(--color2);
color: var(--color3);
}
::-webkit-Scrollbar {
width: 7px;
background: var(--color);
}
::-webkit-Scrollbar-thumb {
border-radius: 20px;
background: rgb(245, 180, 207);
box-shadow: inset 0 0 20px rgb(245, 180, 207);
}
::-webkit-Scrollbar-track {
margin-top: 80px;
border-radius: 10px;
}
</style>
<!-- Style End -->
</head>
<body>
<section class="hero is-success is-fullheight">
<div class="hero-body">
<div class="mainF">
<h1 style="font-size: 25vh;" class="title">
404
</h1>
<h2 style="font-size: 3vh;" class="subtitle">
Page Not Found
</h2>
<a style="align-self: center;" href="/"><button class="button is-white">Return</button></a>
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
const currentTheme = localStorage.getItem("theme");
if (currentTheme == "dark") {
document.body.classList.toggle("dark-theme");
} else if (currentTheme == "light") {
document.body.classList.toggle("light-theme");
}
</script>
</body></html>