-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
105 lines (105 loc) · 3.58 KB
/
404.html
File metadata and controls
105 lines (105 loc) · 3.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 | Matthew Hardy</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mr+Dafoe&family=Inter:wght@300;400;500;600;700&family=Saira:wght@700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: #0a0f1a;
color: #e8edf5;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem;
}
.logo {
font-family: 'Mr Dafoe', cursive;
font-size: 1.6rem;
color: #7c3aed;
text-decoration: none;
margin-bottom: 3rem;
}
.code {
font-size: clamp(5rem, 15vw, 10rem);
font-weight: 700;
background: linear-gradient(90deg, #a78bfa, #4c1d95);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
margin-bottom: 1rem;
}
h1 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.8rem;
}
p {
color: #8892a4;
font-size: 1rem;
margin-bottom: 2.5rem;
max-width: 400px;
}
.btn {
display: inline-block;
padding: 0.75rem 2rem;
background: #6d28d9;
color: #fff;
text-decoration: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
transition: all 0.25s;
}
.btn:hover {
background: #7c3aed;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.btn:focus-visible {
outline: 2px solid #7c3aed;
outline-offset: 3px;
}
</style>
</head>
<body>
<a href="/" class="logo">M@H</a>
<div class="code">404</div>
<h1>Page not found</h1>
<p>The page you're looking for doesn't exist or has been moved.</p>
<a href="/" class="btn">Back to Home</a>
<script>
// Favicon
const span = document.createElement('span');
span.style.cssText = "font-family:'Saira';font-weight:700;position:absolute;opacity:0;";
span.textContent = '@';
document.body.appendChild(span);
async function buildFavicon() {
await document.fonts.ready;
await document.fonts.load("bold 42px 'Saira'");
const c = document.createElement('canvas');
c.width = 64; c.height = 64;
const x = c.getContext('2d');
x.beginPath(); x.roundRect(0, 0, 64, 64, 12); x.fillStyle = '#0a0f1a'; x.fill();
x.font = "bold 42px 'Saira'";
x.fillStyle = '#7c3aed';
x.textAlign = 'center';
x.textBaseline = 'middle';
x.fillText('@', 32, 36);
const link = document.querySelector("link[rel='icon']");
if (link) link.href = c.toDataURL('image/png');
}
buildFavicon();
</script>
</body>
</html>