-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
73 lines (66 loc) · 1.79 KB
/
404.html
File metadata and controls
73 lines (66 loc) · 1.79 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 | Page not found</title>
<style>
*{
margin: 0;
font-size: 20px;
}
html {
background: #f1f1f1;
color: #152f4b;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main {
height: 100dvh;
width: 100dvw;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
main * {
text-align: center;
text-wrap: balance;
width: 80vh;
max-width: 90vw;
}
p {
margin: 0.6rem 0;
line-height: 1.6;
}
h1 {
font-size: 3rem;
font-weight: 100;
}
a {
text-decoration: none;
color: #1452be;
font-weight: bold;
}
span {
text-wrap: nowrap;
font-style: italic;
}
</style>
<script>
window.onload = () => {
currentURL = window.location.href;
lowerCaseURL = currentURL.toLowerCase();
if(currentURL != lowerCaseURL) location.replace(lowerCaseURL);
document.getElementById('url').textContent = currentURL;
}
</script>
</head>
<body>
<main>
<h1>404</h1>
<p style="font-weight: bold">Oops! It seems the page you were looking for doesn't exist.</p>
<p>The URL you tried: <span id="url"></span> couldn't be found on this server.</p>
<p>But don't worry! Let's get you back on track.</p>
<a href="/">Go to Home</a>
</main>
</body>
</html>