-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
77 lines (68 loc) · 1.71 KB
/
404.html
File metadata and controls
77 lines (68 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 - Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="assets/img/logo.png">
<style>
:root {
--background-color: #0c0c0c;
--background-color2: #1a1a1a;
--secondary-color: #333;
--white: #ffffff;
--tertiary-color: #CDFF71;
--selection: #36576b;
}
body {
margin: 0;
font-family: Inter, sans-serif;
background-color: var(--background-color);
color: #AAAAAA;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
}
::selection{
background: var(--selection);
color: var(--white);
}
h1 {
font-size: 3rem;
margin-bottom: 0.5rem;
color: var(--white);
}
p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
a {
color: var(--tertiary-color);
text-decoration: none;
font-weight: 600;
border: 1px solid var(--tertiary-color);
padding: 0.5rem 1rem;
border-radius: 6px;
transition: all 0.2s;
}
a:hover {
background: #2E4F2F;
color: var(--white);
}
</style>
</head>
<body>
<h1>404</h1>
<p>Oops! The page you're looking for doesn't exist.</p>
<a id="back-link" href="/">⬅ Back to Webring</a>
<script>
const isGitHubPages = location.hostname.includes("github.io");
// NOTE: If hosting on GitHub Pages, replace "/webring/" with your repo name
const hubUrl = isGitHubPages ? "/webring/" : "/";
document.getElementById("back-link").href = hubUrl;
</script>
</body>
</html>