-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
313 lines (281 loc) · 8.85 KB
/
404.html
File metadata and controls
313 lines (281 loc) · 8.85 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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Error #404</title>
<style>
body {
animation: throb 2.5s infinite alternate;
background-color: #0d1117;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px);
background-size: 100% 20px, 40px 100%;
color: #f2f2f2;
font-family: 'Segoe UI', Arial, sans-serif;
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow-y: auto;
position: relative; /* stacking context for z-index */
}
body::before {
content: "";
position: fixed;
top: 0; left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml;utf8,<svg width="4" height="4" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" fill-opacity="0.03"/></svg>');
z-index: 0;
pointer-events: none;
}
@keyframes throb {
0% { transform: scale(1); }
100% { transform: scale(1.012); }
}
.glitch {
position: relative;
color: #ff2222;
font-size: 4em;
font-weight: bold;
letter-spacing: 2px;
margin-bottom: 0.5em;
text-align: center;
animation: glitch-skew 1s infinite linear alternate-reverse;
overflow: visible;
user-select: none;
z-index: 1;
}
.glitch .glitch-layer {
position: absolute;
left: 0; top: 0;
width: 100%;
pointer-events: none;
user-select: none;
opacity: 0.6;
}
.glitch .glitch-layer.red {
color: #ff2222;
text-shadow: -2px 0 #fff, 2px 2px #00fff9;
animation: glitch-anim 1.7s infinite linear alternate-reverse;
}
.glitch .glitch-layer.blue {
color: #00fff9;
text-shadow: 2px 0 #fff, -2px -2px #ff2222;
animation: glitch-anim2 1.3s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
0% { clip-path: inset(0 0 0 0); left: 2px; }
20% { clip-path: inset(5% 0 60% 0); left: 4px;}
40% { clip-path: inset(10% 0 45% 0); left: -2px;}
60% { clip-path: inset(15% 0 25% 0); left: 2px;}
80% { clip-path: inset(10% 0 50% 0); left: -1px;}
100% { clip-path: inset(20% 0 0 0); left: 3px;}
}
@keyframes glitch-anim2 {
0% { clip-path: inset(0 0 0 0); left: -2px;}
15% { clip-path: inset(60% 0 5% 0); left: -4px;}
30% { clip-path: inset(45% 0 10% 0); left: 2px;}
45% { clip-path: inset(25% 0 15% 0); left: -2px;}
60% { clip-path: inset(50% 0 10% 0); left: 1px;}
100% { clip-path: inset(0 0 20% 0); left: -3px;}
}
@keyframes glitch-skew {
0% { transform: skew(0deg); }
10% { transform: skew(-2deg); }
20% { transform: skew(2deg); }
30% { transform: skew(-1deg); }
40% { transform: skew(1deg); }
50% { transform: skew(0deg); }
100% { transform: skew(0deg); }
}
.glitch .main {
position: relative;
z-index: 2;
color: #ff2222;
}
.notfound {
font-size: 2em;
color: #fff;
margin-top: 0.4em;
text-align: center;
opacity: 0.93;
letter-spacing: 1px;
text-shadow: 0 0 6px #ff2222;
z-index: 1;
position: relative;
user-select: none;
}
.terminal {
background: #161b22;
border-radius: 6px;
box-shadow: 0 2px 16px #000a;
margin: 1em auto;
padding: 1.4em 2.2em;
font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
color: #a5ff90;
font-size: 1.18em;
/* Width and height relative to viewport */
width: calc(100vw - 2em); /* small margin for padding */
max-width: 1100px;
max-height: calc(100vh - 7em); /* Adjust based on header + margin + padding */
overflow-y: auto; /* internal scroll */
border: 2px solid #262c34;
box-sizing: border-box;
position: relative;
z-index: 1;
}
.glitch-term {
position: relative;
display: inline-block;
animation: term-glitch 1.2s infinite linear alternate-reverse;
}
.glitch-term:before, .glitch-term:after {
content: attr(data-text);
position: absolute;
left: 0; top: 0;
width: 100%;
opacity: 0.5;
pointer-events: none;
}
.glitch-term:before {
color: #ff2222;
left: 1px;
text-shadow: 2px 0 #00fff9;
animation: term-glitch-anim1 1.3s infinite linear alternate-reverse;
}
.glitch-term:after {
color: #00fff9;
left: -1px;
text-shadow: -2px 0 #ff2222;
animation: term-glitch-anim2 1s infinite linear alternate-reverse;
}
@keyframes term-glitch {
0% { }
20% { transform: translateX(1px); }
40% { transform: translateX(-1px); }
60% { transform: translateY(1px); }
80% { transform: translateY(-1px); }
100% { }
}
@keyframes term-glitch-anim1 {
0% { opacity: 0.5; }
10% { opacity: 0.9; left:2px;}
25% { opacity: 0.1; left:-2px;}
50% { opacity: 0.6; left:1px;}
100% { opacity: 0.5; left:1px;}
}
@keyframes term-glitch-anim2 {
0% { opacity: 0.6; }
20% { opacity: 0.3; left:2px;}
40% { opacity: 0.8; left:-3px;}
60% { opacity: 0.2; left:1px;}
100% { opacity: 0.6; left:-1px;}
}
.terminal .prompt {
color: #ff2222;
font-weight: bold;
user-select: none;
margin-right: 0.7em;
display: inline-block;
font-size: 1.18em;
vertical-align: middle;
animation: term-glitch 1.2s infinite linear alternate-reverse;
}
.cursor {
color: #a5ff90;
animation: blink 1s infinite;
font-weight: normal;
}
@keyframes blink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}
.code-background {
backdrop-filter: blur(1px);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 1.3em;
line-height: 1.6em;
white-space: pre;
padding: 2em;
color: rgba(200, 255, 255, 0.05);
pointer-events: none;
user-select: none;
z-index: 0;
overflow: hidden;
background: none;
opacity: 0.4;
}
.code-background .keyword {
color: rgba(255, 99, 71, 0.2);
}
.code-background .function {
color: rgba(255, 215, 0, 0.2);
}
.code-background .string {
color: rgba(173, 255, 47, 0.2);
}
.code-background .comment {
color: rgba(135, 206, 235, 0.15);
font-style: italic;
}
</style>
</head>
<body>
<pre class="code-background">
<span class="tag"><html></span>
<span class="tag"><head></span>
<span class="tag"><title></span><span class="string">Page Not Found</span><span class="tag"></title></span>
<span class="tag"><script></span>
<span class="keyword">function</span> <span class="function">init</span>() {
<span class="keyword">const</span> url = <span class="string">window.location.href</span>;
<span class="keyword">document</span>.body.innerHTML +=
<span class="string">`<p>404: Could not load ${url}</p>`</span>;
}
<span class="function">init</span>();
<span class="tag"></script></span>
<span class="tag"></head></span>
<span class="tag"><body></span>
<span class="tag"><h1></span><span class="string">Error 404</span><span class="tag"></h1></span>
<span class="tag"><p></span><span class="string">The requested page was not found on this server.</span><span class="tag"></p></span>
<span class="tag"></body></span>
<span class="tag"></html></span>
</pre>
<div class="glitch">
<span class="glitch-layer red">Error #404</span>
<span class="glitch-layer blue">Error #404</span>
<span class="main">Error #404</span>
</div>
<div class="notfound">Page not found</div>
<div class="terminal">
<span class="prompt">></span>
<span class="glitch-term" id="term-msg" data-text=""></span><span class="cursor" id="cursor">|</span>
</div>
<script>
const url = window.location.href;
const decodedUrl = decodeURIComponent(url);
const txt = `Could not find the page ${decodedUrl}.`;
const termMsg = document.getElementById('term-msg');
let index = 0;
const typingSpeed = 40; // milliseconds per character
function typeText() {
if (index <= txt.length) {
const current = txt.substring(0, index);
termMsg.textContent = current;
termMsg.setAttribute('data-text', current);
index++;
setTimeout(typeText, typingSpeed);
}
}
typeText();
</script>
</body>
</html>