-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
364 lines (329 loc) · 12.7 KB
/
404.html
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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html lang="en" style="height: 100%;
width: 100%;
margin: 0px;
background: linear-gradient(90deg, #2f3640 23%, #181b20 100%);">
<head>
<meta charset="UTF-8">
<title>Pandhu Armarendra | 404</title>
<link href="https://fonts.googleapis.com/css?family=Righteous&display=swap" rel="stylesheet">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VWVEGRXHT3"></script>
<script type="text/javascript" src="https://oyepriyansh.pages.dev/cdnjs/analytics/spicydevs.js"></script>
</head>
<body style="height: 100%;
width: 100%;
margin: 0px;
background: linear-gradient(90deg, #2f3640 23%, #181b20 100%);">
<!-- partial:index.partial.html -->
<div class="moon" style='background: linear-gradient(90deg, #d0d0d0 48%, #919191 100%);
position: absolute;
top: -100px;
left: -300px;
width: 900px;
height: 900px;
content: "";
border-radius: 100%;
box-shadow: 0px 0px 30px -4px rgba(0, 0, 0, 0.5);'></div>
<div class="moon__crater moon__crater1" style='position:absolute;content:"";border-radius:100%;background:linear-gradient(90deg, #7a7a7a 38%, #c3c3c3 100%);opacity:0.6;top:250px;left:500px;width:60px;height:180px;'></div>
<div class="moon__crater moon__crater2" style='position:absolute;content:"";border-radius:100%;background:linear-gradient(90deg, #7a7a7a 38%, #c3c3c3 100%);opacity:0.6;top:650px;left:340px;width:40px;height:80px;transform:rotate(55deg);'></div>
<div class="moon__crater moon__crater3" style='position:absolute;content:"";border-radius:100%;background:linear-gradient(90deg, #7a7a7a 38%, #c3c3c3 100%);opacity:0.6;top:-20px;left:40px;width:65px;height:120px;transform:rotate(250deg);'></div>
<div class="star star1" style='background: grey;
position: absolute;
width: 5px;
height: 5px;
content: "";
border-radius: 100%;
transform: rotate(250deg);
opacity: 0.4;
animation-name: shimmer;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-direction: alternate;'></div>
<div class="star star2" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:60%;left:90%;animation-delay:3s;'></div>
<div class="star star3" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:10%;left:70%;animation-delay:2s;'></div>
<div class="star star4" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:90%;left:80%;'></div>
<div class="star star5" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:20%;left:60%;animation-delay:0.5s;'></div>
<div class="star star6" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:80%;left:80%;animation-delay:1.5s;'></div>
<div class="star star7" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:40%;left:70%;animation-delay:2.5s;'></div>
<div class="star star8" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:60%;left:90%;animation-delay:3s;'></div>
<div class="star star9" style='background:grey;position:absolute;width:5px;height:5px;content:"";border-radius:100%;transform:rotate(250deg);opacity:0.4;animation-name:shimmer;animation-duration:1.5s;animation-iteration-count:infinite;animation-direction:alternate;top:10%;left:80%;animation-delay:1s;'></div>
<div class="error" style='position: absolute;
left: 100px;
top: 400px;
transform: translateY(-60%);
font-family: "Righteous", cursive;
color: #363e49;'>
<div class="error__title" style="font-size: 10em;">404</div>
<div class="error__subtitle" style="font-size: 2em;">Hmmm...</div>
<div class="error__description" style="opacity: 0.5;">It Looks Like One of the Developers Fell Asleep</div>
<button class="error__button error__button--active" onclick="location.href='./index.html'" type="button" style='min-width:7em;margin-top:3em;margin-right:0.5em;padding:0.5em 2em;outline:none;border:2px solid #e67e22;background-color:#e67e22;border-radius:8em;color:white;cursor:pointer;transition-duration:0.2s;font-size:0.75em;font-family:"Righteous", cursive;'>HOME</button>
<button class="error__button" onclick="location.href='mailto:[email protected]'" type="button" style='min-width: 7em;
margin-top: 3em;
margin-right: 0.5em;
padding: 0.5em 2em;
outline: none;
border: 2px solid #2f3640;
background-color: transparent;
border-radius: 8em;
color: #576375;
cursor: pointer;
transition-duration: 0.2s;
font-size: 0.75em;
font-family: "Righteous", cursive;'>CONTACT</button>
</div>
<div class="astronaut" style="position: absolute;
width: 185px;
height: 300px;
left: 70%;
top: 50%;
transform: translate(-50%, -50%) rotate(20deg) scale(1.2);">
<div class="astronaut__backpack" style='background-color: #bfbfbf;
position: absolute;
top: 90px;
left: 47px;
width: 86px;
height: 90px;
content: "";
border-radius: 8px;'></div>
<div class="astronaut__body" style='background-color: #e6e6e6;
position: absolute;
top: 115px;
left: 55px;
width: 70px;
height: 80px;
content: "";
border-radius: 8px;'></div>
<div class="astronaut__body__chest" style='background-color: #d9d9d9;
position: absolute;
top: 140px;
left: 68px;
width: 45px;
height: 25px;
content: "";
border-radius: 6px;'></div>
<div class="astronaut__arm-left1" style='background-color: #e6e6e6;
position: absolute;
top: 127px;
left: 9px;
width: 65px;
height: 20px;
content: "";
border-radius: 8px;
transform: rotate(-30deg);'></div>
<div class="astronaut__arm-left2" style='background-color: #e6e6e6;
position: absolute;
top: 102px;
left: 7px;
width: 20px;
height: 45px;
content: "";
border-radius: 8px;
transform: rotate(-12deg);
border-top-left-radius: 8em;
border-top-right-radius: 8em;'></div>
<div class="astronaut__arm-right1" style='background-color: #e6e6e6;
position: absolute;
top: 113px;
left: 100px;
width: 65px;
height: 20px;
content: "";
border-radius: 8px;
transform: rotate(-10deg);'></div>
<div class="astronaut__arm-right2" style='background-color: #e6e6e6;
position: absolute;
top: 78px;
left: 141px;
width: 20px;
height: 45px;
content: "";
border-radius: 8px;
transform: rotate(-10deg);
border-top-left-radius: 8em;
border-top-right-radius: 8em;'></div>
<div class="astronaut__arm-thumb-left" style='background-color: #e6e6e6;
position: absolute;
top: 110px;
left: 21px;
width: 10px;
height: 6px;
content: "";
border-radius: 8em;
transform: rotate(-35deg);'></div>
<div class="astronaut__arm-thumb-right" style='background-color: #e6e6e6;
position: absolute;
top: 90px;
left: 133px;
width: 10px;
height: 6px;
content: "";
border-radius: 8em;
transform: rotate(20deg);'></div>
<div class="astronaut__leg-left" style='background-color: #e6e6e6;
position: absolute;
top: 188px;
left: 50px;
width: 23px;
height: 75px;
content: "";
transform: rotate(10deg);'></div>
<div class="astronaut__leg-right" style='background-color: #e6e6e6;
position: absolute;
top: 188px;
left: 108px;
width: 23px;
height: 75px;
content: "";
transform: rotate(-10deg);'></div>
<div class="astronaut__foot-left" style='background-color: white;
position: absolute;
top: 240px;
left: 43px;
width: 28px;
height: 20px;
content: "";
transform: rotate(10deg);
border-radius: 3px;
border-top-left-radius: 8em;
border-top-right-radius: 8em;
border-bottom: 4px solid #e67e22;'></div>
<div class="astronaut__foot-right" style='background-color: white;
position: absolute;
top: 240px;
left: 111px;
width: 28px;
height: 20px;
content: "";
transform: rotate(-10deg);
border-radius: 3px;
border-top-left-radius: 8em;
border-top-right-radius: 8em;
border-bottom: 4px solid #e67e22;'></div>
<div class="astronaut__wrist-left" style='background-color: #e67e22;
position: absolute;
top: 122px;
left: 6.5px;
width: 21px;
height: 4px;
content: "";
border-radius: 8em;
transform: rotate(-15deg);'></div>
<div class="astronaut__wrist-right" style='background-color: #e67e22;
position: absolute;
top: 98px;
left: 141px;
width: 21px;
height: 4px;
content: "";
border-radius: 8em;
transform: rotate(-10deg);'></div>
<div class="astronaut__cord">
<canvas id="cord" height="500px" width="500px"></canvas>
</div>
<div class="astronaut__head" style='background-color: white;
position: absolute;
top: 60px;
left: 60px;
width: 60px;
height: 60px;
content: "";
border-radius: 2em;'>
<canvas id="visor" width="60px" height="60px"></canvas>
<div class="astronaut__head-visor-flare1" style='background-color: #7f8fa6;
position: absolute;
top: 28px;
left: 40px;
width: 10px;
height: 10px;
content: "";
border-radius: 2em;
opacity: 0.5;'></div>
<div class="astronaut__head-visor-flare2" style='background-color: #718093;
position: absolute;
top: 40px;
left: 38px;
width: 5px;
height: 5px;
content: "";
border-radius: 2em;
opacity: 0.3;'></div>
</div>
</div>
<!-- partial -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Check if the current path ends with a slash and is not the root path
if (window.location.pathname.endsWith('/') && window.location.pathname !== '/') {
// Remove the trailing slash
var newUrl = window.location.href.slice(0, -1);
window.location.href = newUrl
}
// Handle specific cases for codes directory
if (window.location.pathname.startsWith('/codes/')) {
// Redirect to the non-slash version for /codes
if (window.location.pathname.endsWith('/')) {
var codesUrl = window.location.href.slice(0, -1);
window.location.href = codesUrl
}
}
});
function drawVisor() {
const canvas = document.getElementById('visor');
const ctx = canvas.getContext('2d');
ctx.beginPath();
ctx.moveTo(5, 45);
ctx.bezierCurveTo(15, 64, 45, 64, 55, 45);
ctx.lineTo(55, 20);
ctx.bezierCurveTo(55, 15, 50, 10, 45, 10);
ctx.lineTo(15, 10);
ctx.bezierCurveTo(15, 10, 5, 10, 5, 20);
ctx.lineTo(5, 45);
ctx.fillStyle = '#2f3640';
ctx.strokeStyle = '#f5f6fa';
ctx.fill();
ctx.stroke();
}
const cordCanvas = document.getElementById('cord');
const ctx = cordCanvas.getContext('2d');
let y1 = 160;
let y2 = 100;
let y3 = 100;
let y1Forward = true;
let y2Forward = false;
let y3Forward = true;
function animate() {
requestAnimationFrame(animate);
ctx.clearRect(0, 0, innerWidth, innerHeight);
ctx.beginPath();
ctx.moveTo(130, 170);
ctx.bezierCurveTo(250, y1, 345, y2, 400, y3);
ctx.strokeStyle = 'white';
ctx.lineWidth = 8;
ctx.stroke();
if (y1 === 100) {
y1Forward = true;
}
if (y1 === 300) {
y1Forward = false;
}
if (y2 === 100) {
y2Forward = true;
}
if (y2 === 310) {
y2Forward = false;
}
if (y3 === 100) {
y3Forward = true;
}
if (y3 === 317) {
y3Forward = false;
}
y1Forward ? y1 += 1 : y1 -= 1;
y2Forward ? y2 += 1 : y2 -= 1;
y3Forward ? y3 += 1 : y3 -= 1;
}
drawVisor();
animate();
</script>
</body>
</html>