-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
285 lines (236 loc) · 13.4 KB
/
404.html
File metadata and controls
285 lines (236 loc) · 13.4 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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>404 - Page Not Found | sval.tech</title>
<!-- Match Fonts from main site -->
<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=Inter:wght@400;700;900&display=swap" rel="stylesheet">
<!-- Icons & Tailwind -->
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Three.js for 3D Background (matching main site) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: #050505;
color: #ffffff;
overflow: hidden; /* Prevent scrolling, keep it a single screen */
font-family: 'Inter', -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Custom Precision Default Cursor - Dark Mode Adapted */
cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='4' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, auto;
}
.font-mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
/* Custom Precision Pointer Cursor for Interactive Elements */
a, button, [role="button"], .cursor-pointer {
cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='6' fill='black' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='2' fill='white'/%3E%3C/svg%3E") 12 12, pointer !important;
}
#canvas-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
#ui-layer {
position: relative;
z-index: 10;
}
/* Glowing text effect */
.text-glow {
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.text-glow-red {
text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}
/* Glassmorphism utilities */
.glass-panel {
background: rgba(15, 15, 15, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
a { text-decoration: none; }
</style>
</head>
<body class="selection:bg-white selection:text-black">
<!-- 3D Canvas Background -->
<div id="canvas-container"></div>
<!-- Main UI Overlay -->
<main id="ui-layer" class="w-full h-full flex flex-col items-center justify-center p-4 md:p-8 pointer-events-none overflow-y-auto sm:overflow-hidden">
<div class="w-full max-w-3xl flex flex-col items-center pointer-events-auto">
<!-- 404 Header -->
<div class="text-center mb-8">
<h1 class="text-7xl sm:text-9xl md:text-[12rem] font-black tracking-tighter text-white text-glow-red leading-none mb-2">
404
</h1>
<h2 class="text-xl sm:text-2xl md:text-3xl font-bold tracking-tight text-zinc-300">
Page Not Found.
</h2>
</div>
<!-- Primary Action -->
<a href="https://sval.tech" class="inline-flex items-center gap-2 px-8 py-4 rounded-full bg-white text-black font-bold text-sm sm:text-base hover:bg-zinc-200 hover:scale-105 transition-all mb-12 shadow-[0_0_30px_rgba(255,255,255,0.2)]">
<i data-lucide="home" class="w-5 h-5"></i> Return to Base (sval.tech)
</a>
<!-- Links Directory Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4 w-full">
<!-- Tools Column -->
<div class="p-5 sm:p-6 rounded-xl glass-panel hover:border-zinc-500 transition-colors">
<h3 class="font-mono text-[10px] sm:text-xs font-bold text-zinc-500 uppercase tracking-widest mb-4 flex items-center gap-2">
<i data-lucide="wrench" class="w-3 h-3"></i> Available Tools
</h3>
<ul class="space-y-3">
<li>
<a href="https://sval.tech/chaos" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="calendar-days" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> ChaosPrep
</a>
</li>
<li>
<a href="https://sval.tech/studylocus/" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="target" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> StudyLocus
</a>
</li>
<li>
<a href="https://sval.tech/syllabustracker/" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="book-open" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> Syllabus Tracker (JEE)
</a>
</li>
<li>
<a href="https://sval.tech/neet/" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="activity" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> Syllabus Tracker (NEET)
</a>
</li>
</ul>
</div>
<!-- Connect Column -->
<div class="p-5 sm:p-6 rounded-xl glass-panel hover:border-zinc-500 transition-colors">
<h3 class="font-mono text-[10px] sm:text-xs font-bold text-zinc-500 uppercase tracking-widest mb-4 flex items-center gap-2">
<i data-lucide="link" class="w-3 h-3"></i> Connect
</h3>
<ul class="space-y-3">
<li>
<a href="https://github.com/svalordev" target="_blank" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<svg class="w-4 h-4 fill-current text-zinc-500 group-hover:text-white transition-colors" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg> GitHub
</a>
</li>
<li>
<a href="https://discord.gg/mKXPpSY6Dz" target="_blank" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="message-square" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> Discord Server
</a>
</li>
<li>
<a href="mailto:contact@sval.tech" class="flex items-center gap-3 text-sm font-bold text-zinc-300 hover:text-white transition-colors group">
<i data-lucide="mail" class="w-4 h-4 text-zinc-500 group-hover:text-white transition-colors"></i> Email Contact
</a>
</li>
</ul>
</div>
</div>
</div>
</main>
<script>
// Initialize Lucide Icons
lucide.createIcons();
// Initialize Three.js Background (Matching main site logic)
window.onload = function() {
initThreeJS();
};
function initThreeJS() {
const container = document.getElementById('canvas-container');
const scene = new THREE.Scene();
// Using a slightly reddish fog for the 404 page aesthetic
scene.fog = new THREE.FogExp2(0x0a0000, 0.003);
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 40;
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
container.appendChild(renderer.domElement);
const group = new THREE.Group();
scene.add(group);
// Broken/Distorted Core for 404
const coreGeometry = new THREE.IcosahedronGeometry(10, 0); // Less detailed, more sharp
const coreMaterial = new THREE.LineBasicMaterial({
color: 0xaa3333, // Reddish tint
transparent: true,
opacity: 0.4
});
const core = new THREE.LineSegments(new THREE.WireframeGeometry(coreGeometry), coreMaterial);
group.add(core);
// Particles
const particlesCount = window.innerWidth < 768 ? 300 : 800;
const posArray = new Float32Array(particlesCount * 3);
for(let i = 0; i < particlesCount; i++) {
// More chaotic distribution for 404
const r = 10 + Math.random() * 40;
const theta = Math.random() * Math.PI * 2;
const phi = Math.acos((Math.random() * 2) - 1);
posArray[i*3] = r * Math.sin(phi) * Math.cos(theta);
posArray[i*3+1] = r * Math.sin(phi) * Math.sin(theta);
posArray[i*3+2] = r * Math.cos(phi);
}
const particlesGeometry = new THREE.BufferGeometry();
particlesGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
const particleMaterial = new THREE.PointsMaterial({
size: 0.15,
color: 0x888888,
transparent: true,
opacity: 0.6,
blending: THREE.AdditiveBlending
});
const particlesMesh = new THREE.Points(particlesGeometry, particleMaterial);
group.add(particlesMesh);
// Mouse Interaction
let mouseX = 0;
let mouseY = 0;
let targetX = 0;
let targetY = 0;
const windowHalfX = window.innerWidth / 2;
const windowHalfY = window.innerHeight / 2;
document.addEventListener('mousemove', (event) => {
mouseX = (event.clientX - windowHalfX) * 0.05;
mouseY = (event.clientY - windowHalfY) * 0.05;
}, {passive: true});
document.addEventListener('touchmove', (event) => {
if(event.touches.length > 0) {
mouseX = (event.touches[0].clientX - windowHalfX) * 0.05;
mouseY = (event.touches[0].clientY - windowHalfY) * 0.05;
}
}, {passive: true});
function animate() {
requestAnimationFrame(animate);
// Slightly faster/erratic rotation for 404
group.rotation.y += 0.002;
group.rotation.x += 0.001;
core.rotation.y -= 0.003;
core.rotation.z += 0.001;
targetX = mouseX * 0.5;
targetY = mouseY * 0.5;
camera.position.x += (targetX - camera.position.x) * 0.05;
camera.position.y += (-targetY - camera.position.y) * 0.05;
camera.lookAt(scene.position);
renderer.render(scene, camera);
}
animate();
// Resize Handler
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
}
</script>
</body>
</html>