-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
409 lines (350 loc) · 19 KB
/
index.html
File metadata and controls
409 lines (350 loc) · 19 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
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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!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>sval.tech | By Shaurya Pratap Singh | svalordev</title>
<!-- Advanced SEO -->
<meta name="description" content="Precision academic tools for JEE Main, Advanced & NEET aspirants. Track syllabus, manage backlogs, and analyze consistency with StudyLocus and Zenith.">
<meta name="author" content="Shaurya Pratap Singh">
<!-- Fonts: Inter for readability, Space Grotesk for technical/modern headings -->
<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;500;600;700;800;900&family=Space+Grotesk:wght@400;600;700;800;900&display=swap" rel="stylesheet">
<!-- Icons & Frameworks -->
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- Tailwind Config -->
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
display: ['Space Grotesk', 'sans-serif'],
},
colors: {
quantum: {
bg: '#030305',
card: 'rgba(10, 10, 15, 0.4)',
border: 'rgba(255, 255, 255, 0.08)',
violet: '#7c3aed',
cyan: '#06b6d4',
glow: 'rgba(124, 58, 237, 0.5)'
}
},
animation: {
'fade-in-up': 'fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
keyframes: {
fadeInUp: {
'0%': { opacity: '0', transform: 'translateY(20px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
}
}
}
}
}
</script>
<style>
body {
background-color: #030305;
color: #ffffff;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
/* --- 3D CANVAS BACKGROUND --- */
#webgl-canvas {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
z-index: -2;
pointer-events: none;
}
/* Ambient subtle gradient overlay for depth */
.ambient-glow {
position: fixed;
top: 0; left: 0; width: 100vw; height: 100vh;
background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
z-index: -1;
pointer-events: none;
}
/* --- PREMIUM GLASSMORPHISM CARDS --- */
.glass-card {
background: var(--quantum-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--quantum-border);
border-radius: 24px;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}
/* Hover Glow Effect inside card */
.glass-card::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
opacity: 0;
transition: opacity 0.5s;
pointer-events: none;
z-index: 1;
}
.glass-card:hover::before { opacity: 1; }
/* Animated Gradient Border on Hover */
.glass-card::after {
content: "";
position: absolute;
inset: 0;
border-radius: 24px;
padding: 1px;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(6, 182, 212, 0.8));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}
.glass-card:hover::after { opacity: 1; }
.glass-card:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px -5px rgba(124, 58, 237, 0.2);
}
/* Inner Content 3D Pop */
.card-content {
position: relative;
z-index: 10;
transform: translateZ(30px);
}
/* Staggered Animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030305; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }
</style>
</head>
<body class="min-h-screen flex flex-col items-center selection:bg-quantum-violet/30 selection:text-white">
<!-- 3D Environment -->
<canvas id="webgl-canvas"></canvas>
<div class="ambient-glow"></div>
<!-- Main Content -->
<div class="w-full max-w-5xl px-6 py-16 md:py-24 flex flex-col items-center relative z-10">
<!-- Header Section -->
<header class="w-full text-center flex flex-col items-center mb-16 opacity-0 animate-fade-in-up">
<h1 class="text-5xl md:text-7xl font-black font-display tracking-tighter mb-4">
sval.tech
</h1>
<!-- Original Style Links -->
<nav class="flex flex-wrap justify-center gap-3 mt-4">
<a href="https://github.com/svalordev" target="_blank" class="flex items-center gap-2 px-4 py-2 rounded-xl bg-zinc-900/50 border border-zinc-800 hover:border-quantum-violet/50 hover:bg-zinc-800 text-sm font-bold text-zinc-400 hover:text-white transition-all backdrop-blur-md group">
<i data-lucide="github" class="w-4 h-4 group-hover:text-quantum-violet transition-colors"></i> /github
</a>
<a href="/cdn-cgi/l/email-protection" class="flex items-center gap-2 px-4 py-2 rounded-xl bg-zinc-900/50 border border-zinc-800 hover:border-quantum-cyan/50 hover:bg-zinc-800 text-sm font-bold text-zinc-400 hover:text-white transition-all backdrop-blur-md group">
<i data-lucide="mail" class="w-4 h-4 group-hover:text-quantum-cyan transition-colors"></i> /contact
</a>
<a href="https://discord.gg/mKXPpSY6Dz" target="_blank" class="flex items-center gap-2 px-4 py-2 rounded-xl bg-zinc-900/50 border border-zinc-800 hover:border-white/50 hover:bg-zinc-800 text-sm font-bold text-zinc-400 hover:text-white transition-all backdrop-blur-md group">
<i data-lucide="message-square" class="w-4 h-4 group-hover:text-white transition-colors"></i> /discord
</a>
</nav>
</header>
<!-- Tools Grid -->
<main class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 w-full perspective-[2000px]">
<!-- ChaosPrep -->
<a href="https://sval.tech/chaos" target="_blank" class="glass-card tilt-card p-6 md:p-8 group opacity-0 animate-fade-in-up delay-100 decoration-none block">
<div class="card-content flex flex-col h-full pointer-events-none">
<div class="flex justify-between items-start mb-5">
<div class="w-12 h-12 rounded-2xl bg-zinc-800/50 border border-zinc-700/50 flex items-center justify-center text-zinc-400 group-hover:bg-quantum-violet/20 group-hover:text-quantum-violet group-hover:border-quantum-violet/30 transition-all duration-300">
<i data-lucide="calendar-days" class="w-6 h-6"></i>
</div>
<i data-lucide="arrow-up-right" class="w-5 h-5 text-zinc-600 group-hover:text-quantum-violet transition-colors"></i>
</div>
<h2 class="text-xl font-black text-white tracking-tight mb-2">ChaosPrep</h2>
<p class="text-sm font-medium text-zinc-400 leading-relaxed flex-grow">Master your daily chaos. Day/Week wise task tracking in a calendar grid. Optimized for Focus.</p>
</div>
</a>
<!-- StudyLocus -->
<a href="https://sval.tech/studylocus/" target="_blank" class="glass-card tilt-card p-6 md:p-8 group opacity-0 animate-fade-in-up delay-200 decoration-none block">
<div class="card-content flex flex-col h-full pointer-events-none">
<div class="flex justify-between items-start mb-5">
<div class="w-12 h-12 rounded-2xl bg-zinc-800/50 border border-zinc-700/50 flex items-center justify-center text-zinc-400 group-hover:bg-quantum-cyan/20 group-hover:text-quantum-cyan group-hover:border-quantum-cyan/30 transition-all duration-300">
<i data-lucide="target" class="w-6 h-6"></i>
</div>
<i data-lucide="arrow-up-right" class="w-5 h-5 text-zinc-600 group-hover:text-quantum-cyan transition-colors"></i>
</div>
<h2 class="text-xl font-black text-white tracking-tight mb-2">StudyLocus</h2>
<p class="text-sm font-medium text-zinc-400 leading-relaxed flex-grow">A functional, highly aesthetic dashboard for complete preparation management & analytics.</p>
</div>
</a>
<!-- Syllabus Tracker -->
<div class="glass-card tilt-card p-6 md:p-8 group opacity-0 animate-fade-in-up delay-300 flex flex-col relative">
<div class="card-content flex flex-col flex-grow pointer-events-none">
<div class="flex justify-between items-start mb-5">
<div class="w-12 h-12 rounded-2xl bg-zinc-800/50 border border-zinc-700/50 flex items-center justify-center text-zinc-400 group-hover:text-white transition-all duration-300">
<i data-lucide="book-open" class="w-6 h-6"></i>
</div>
</div>
<h2 class="text-xl font-black text-white tracking-tight mb-2">Syllabus Tracker</h2>
<p class="text-sm font-medium text-zinc-400 leading-relaxed mb-6 flex-grow">Chapter & topic wise tracking. The ultimate tool for syllabus mastery and readiness scores.</p>
</div>
<!-- Interactive Buttons -->
<div class="relative z-20 flex gap-3 mt-auto">
<a href="https://sval.tech/syllabustracker/" target="_blank" class="flex-1 flex items-center justify-center gap-2 py-3 rounded-xl bg-zinc-800 border border-zinc-700 hover:bg-quantum-violet hover:border-quantum-violet text-white font-bold text-sm transition-all shadow-sm active:scale-95 group/btn">
JEE <i data-lucide="arrow-right" class="w-3 h-3 group-hover/btn:translate-x-1 transition-transform"></i>
</a>
<a href="https://sval.tech/neet/" target="_blank" class="flex-1 flex items-center justify-center gap-2 py-3 rounded-xl bg-zinc-800 border border-zinc-700 hover:bg-quantum-cyan hover:border-quantum-cyan text-white font-bold text-sm transition-all shadow-sm active:scale-95 group/btn">
NEET <i data-lucide="arrow-right" class="w-3 h-3 group-hover/btn:translate-x-1 transition-transform"></i>
</a>
</div>
</div>
</main>
<!-- Footer -->
<footer class="mt-24 pt-8 w-full border-t border-zinc-800/50 flex flex-col md:flex-row justify-between items-center gap-4 text-xs font-bold uppercase tracking-widest text-zinc-500 opacity-0 animate-fade-in-up delay-300">
<span>© 2026 sval.tech</span>
<div class="flex items-center gap-2">
<i data-lucide="code-2" class="w-4 h-4 text-quantum-violet"></i>
<span class="text-zinc-400">By Shaurya Pratap Singh</span>
</div>
</footer>
</div>
<script>
// Initialize Icons
lucide.createIcons();
// --- PREMIUM 3D TILT & MOUSE GLOW ---
const cards = document.querySelectorAll('.glass-card');
cards.forEach(card => {
card.addEventListener('mousemove', e => {
const rect = card.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
card.style.setProperty('--mouse-x', `${x}px`);
card.style.setProperty('--mouse-y', `${y}px`);
const centerX = rect.width / 2;
const centerY = rect.height / 2;
const rotateX = ((y - centerY) / centerY) * -5;
const rotateY = ((x - centerX) / centerX) * 5;
card.style.transform = `perspective(2000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(1.02, 1.02, 1.02)`;
});
card.addEventListener('mouseleave', () => {
card.style.transform = `perspective(2000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`;
card.style.transition = 'transform 0.5s cubic-bezier(0.16, 1, 0.3, 1)';
});
card.addEventListener('mouseenter', () => {
card.style.transition = 'none';
});
});
// --- EXTREME 3D ANIMATION: "HOLOGRAPHIC GEOMETRIC NEXUS" ---
const canvas = document.getElementById('webgl-canvas');
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0x030305, 0.015);
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.set(0, 0, 40);
const renderer = new THREE.WebGLRenderer({ canvas: canvas, antialias: true, alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
// Group to hold our massive structures
const nexusGroup = new THREE.Group();
scene.add(nexusGroup);
// 1. Inner Core (Complex Wireframe Icosahedron)
const coreGeo = new THREE.IcosahedronGeometry(12, 2);
const coreMat = new THREE.MeshBasicMaterial({
color: 0x7c3aed,
wireframe: true,
transparent: true,
opacity: 0.15
});
const coreMesh = new THREE.Mesh(coreGeo, coreMat);
nexusGroup.add(coreMesh);
// 2. Outer Geometric Cage (Larger, different rotation)
const cageGeo = new THREE.IcosahedronGeometry(20, 1);
const cageMat = new THREE.MeshBasicMaterial({
color: 0x06b6d4,
wireframe: true,
transparent: true,
opacity: 0.08
});
const cageMesh = new THREE.Mesh(cageGeo, cageMat);
nexusGroup.add(cageMesh);
// 3. Drifting Data Particles (Starfield)
const particleCount = window.innerWidth < 768 ? 500 : 1500;
const particleGeo = new THREE.BufferGeometry();
const posArray = new Float32Array(particleCount * 3);
const speeds = new Float32Array(particleCount); // Unique speed for each particle
for(let i = 0; i < particleCount; i++) {
// Distribute particles in a large sphere
const radius = 25 + Math.random() * 50;
const theta = Math.random() * 2 * Math.PI;
const phi = Math.acos((Math.random() * 2) - 1);
posArray[i*3] = radius * Math.sin(phi) * Math.cos(theta);
posArray[i*3+1] = radius * Math.sin(phi) * Math.sin(theta);
posArray[i*3+2] = radius * Math.cos(phi);
speeds[i] = Math.random() * 0.02 + 0.005;
}
particleGeo.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
const particleMat = new THREE.PointsMaterial({
size: 0.15,
color: 0xffffff,
transparent: true,
opacity: 0.4,
blending: THREE.AdditiveBlending
});
const particleMesh = new THREE.Points(particleGeo, particleMat);
nexusGroup.add(particleMesh);
// Animation Loop Variables
let mouseX = 0;
let mouseY = 0;
const target = new THREE.Vector3();
const clock = new THREE.Clock();
// Mouse tracking for parallax
document.addEventListener('mousemove', (event) => {
mouseX = (event.clientX - window.innerWidth / 2) * 0.05;
mouseY = (event.clientY - window.innerHeight / 2) * 0.05;
});
function animate() {
requestAnimationFrame(animate);
const delta = clock.getDelta();
// Rotate the Geometric Cores in opposite directions
coreMesh.rotation.x += 0.1 * delta;
coreMesh.rotation.y += 0.15 * delta;
cageMesh.rotation.x -= 0.05 * delta;
cageMesh.rotation.y += 0.08 * delta;
cageMesh.rotation.z -= 0.03 * delta;
// Slowly rotate the entire nexus group
nexusGroup.rotation.y += 0.02 * delta;
// Animate particles moving towards the camera slightly
const positions = particleGeo.attributes.position.array;
for(let i = 0; i < particleCount; i++) {
positions[i*3+2] += speeds[i]; // move on Z axis
// Reset particle if it gets too close to camera
if(positions[i*3+2] > 30) {
positions[i*3+2] = -50;
}
}
particleGeo.attributes.position.needsUpdate = true;
// Smooth Camera Parallax Tracking
target.x = mouseX;
target.y = -mouseY;
target.z = 40;
camera.position.lerp(target, 0.02);
camera.lookAt(0, 0, 0);
renderer.render(scene, camera);
}
// Handle Resize
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
// Start animation
animate();
</script>
</body>
</html>