-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path404.html
More file actions
276 lines (232 loc) · 7.71 KB
/
404.html
File metadata and controls
276 lines (232 loc) · 7.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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<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;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: #000;
color: #fff;
font-family: 'Arial', sans-serif;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
#canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.content {
position: relative;
z-index: 2;
text-align: center;
padding: 20px;
max-width: 90%;
}
@media (max-width: 480px) {
.content {
padding: 15px;
}
}
.glitch {
font-size: clamp(60px, 15vw, 120px);
font-weight: bold;
letter-spacing: clamp(5px, 1vw, 10px);
margin-bottom: 20px;
animation: glitch 1s infinite;
text-shadow:
2px 2px 0 #00ffff,
-2px -2px 0 #ff00ff;
}
@keyframes glitch {
0%, 100% {
text-shadow:
2px 2px 0 #00ffff,
-2px -2px 0 #ff00ff;
}
25% {
text-shadow:
-2px 2px 0 #00ffff,
2px -2px 0 #ff00ff;
}
50% {
text-shadow:
2px -2px 0 #00ffff,
-2px 2px 0 #ff00ff;
}
75% {
text-shadow:
-2px -2px 0 #00ffff,
2px 2px 0 #ff00ff;
}
}
h2 {
font-size: clamp(20px, 4vw, 32px);
margin-bottom: 15px;
color: #00ffff;
}
p {
font-size: clamp(14px, 2.5vw, 18px);
margin-bottom: 30px;
color: #ccc;
padding: 0 20px;
}
.logo {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 3;
max-width: clamp(80px, 15vw, 120px);
opacity: 0.9;
transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
.logo {
bottom: 15px;
left: 15px;
}
}
.logo:hover {
opacity: 1;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<img src="https://www.nolangraysongames.com/Logo.png" alt="Nolan Grayson Games" class="logo">
<div class="content">
<h1 class="glitch">404</h1>
<h2>Page Not Found</h2>
<p>The page you're looking for seems to have drifted into the void.</p>
</div>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let mouse = {
x: null,
y: null,
radius: 100
};
canvas.addEventListener('mousemove', (e) => {
mouse.x = e.x;
mouse.y = e.y;
});
canvas.addEventListener('mouseleave', () => {
mouse.x = null;
mouse.y = null;
});
let ripples = [];
canvas.addEventListener('click', (e) => {
ripples.push({
x: e.x,
y: e.y,
radius: 0,
maxRadius: 150,
speed: 3,
opacity: 1
});
});
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
initMatrix();
});
const fontSize = 14;
let columns;
let drops = [];
// Characters for the matrix effect - mix of code symbols and Japanese katakana
const matrixChars = 'ハミヒーウシナモニサワツオリアホテマケメエカキムユラセネスタヌヘ01234567890!@#$%^&*(){}[]<>?/|\\';
function initMatrix() {
columns = Math.floor(canvas.width / fontSize);
drops = [];
for (let i = 0; i < columns; i++) {
drops[i] = {
y: Math.random() * -100,
speed: Math.random() * 0.5 + 0.5,
offset: 0
};
}
}
initMatrix();
function drawMatrix() {
// Semi-transparent black to create fade effect
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.font = fontSize + 'px monospace';
for (let i = 0; i < drops.length; i++) {
const x = i * fontSize;
const y = drops[i].y * fontSize;
// Calculate distance from mouse
let offsetX = 0;
if (mouse.x && mouse.y) {
const dx = x - mouse.x;
const dy = y - mouse.y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < mouse.radius) {
const force = (mouse.radius - distance) / mouse.radius;
offsetX = (dx / distance) * force * 30;
drops[i].offset = offsetX;
} else {
drops[i].offset *= 0.95; // Gradually return to position
}
} else {
drops[i].offset *= 0.95;
}
// Random character
const char = matrixChars[Math.floor(Math.random() * matrixChars.length)];
// Alternate between cyan and magenta
const color = Math.random() > 0.5 ? '#00ffff' : '#ff00ff';
// Brighter at the head of the drop
ctx.fillStyle = color;
ctx.fillText(char, x + drops[i].offset, y);
// Add a bright glow at the leading character
if (y > 0 && y < canvas.height) {
ctx.shadowBlur = 10;
ctx.shadowColor = color;
ctx.fillText(char, x + drops[i].offset, y);
ctx.shadowBlur = 0;
}
// Reset drop to top randomly after it goes off screen
if (y > canvas.height && Math.random() > 0.975) {
drops[i].y = 0;
}
drops[i].y += drops[i].speed;
}
// Draw and update ripples
ripples = ripples.filter(ripple => {
ctx.strokeStyle = `rgba(0, 255, 255, ${ripple.opacity})`;
ctx.lineWidth = 2;
ctx.beginPath();
ctx.arc(ripple.x, ripple.y, ripple.radius, 0, Math.PI * 2);
ctx.stroke();
ctx.strokeStyle = `rgba(255, 0, 255, ${ripple.opacity})`;
ctx.beginPath();
ctx.arc(ripple.x, ripple.y, ripple.radius - 10, 0, Math.PI * 2);
ctx.stroke();
ripple.radius += ripple.speed;
ripple.opacity -= 0.01;
return ripple.opacity > 0 && ripple.radius < ripple.maxRadius;
});
}
function animate() {
drawMatrix();
requestAnimationFrame(animate);
}
animate();
</script>
</body>
</html>