-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
312 lines (257 loc) · 18.3 KB
/
index.html
File metadata and controls
312 lines (257 loc) · 18.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sval.tech | By Shaurya Pratap Singh | svalordev</title>
<meta name="description" content="Precision academic tools for JEE, NEET and competitive exam aspirants. Track syllabus, manage backlogs, and analyze consistency.">
<meta name="author" content="Shaurya Pratap Singh">
<!-- Tailwind CSS for styling -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Three.js for 3D Background -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
:root {
--bg-color: #050505;
--text-main: #ffffff;
--text-muted: #888888;
}
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: var(--bg-color);
color: var(--text-main);
overflow: hidden; /* Prevent scrolling for 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 - Dark Mode Adapted */
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; /* Let clicks pass through to UI */
}
#ui-layer {
position: relative;
z-index: 10;
}
/* Glowing text effect */
.text-glow {
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
/* 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);
}
.glass-panel-highlight {
background: rgba(25, 25, 25, 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}
/* Specific link resets */
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 justify-between p-4 md:p-12 pointer-events-none overflow-y-auto sm:overflow-hidden">
<!-- Top Section: Partner & Auth Info -->
<header class="flex justify-end items-start w-full pointer-events-auto shrink-0">
<a href="https://alphajee.online" target="_blank" rel="noopener noreferrer" class="flex flex-col items-end gap-1 group transition-opacity duration-200 hover:opacity-100 opacity-70">
<span class="font-mono text-[8px] sm:text-[10px] font-bold uppercase tracking-[0.3em] text-zinc-500">Partnered With</span>
<div class="flex items-center gap-2">
<img src="https://sval.tech/chaos/alphajee.png" alt="AlphaJEE" class="w-4 h-4 sm:w-5 sm:h-5 object-contain filter grayscale group-hover:grayscale-0 transition-all duration-300">
<span class="text-sm sm:text-base font-bold text-white tracking-tight">AlphaJEE</span>
</div>
</a>
</header>
<!-- Center Section: Title & Products -->
<section class="flex flex-col items-center justify-center flex-grow w-full pointer-events-auto my-6 sm:my-0">
<!-- Branding -->
<div class="text-center mb-6 md:mb-12">
<h1 class="text-5xl sm:text-7xl md:text-9xl font-black tracking-tighter text-white text-glow mb-1 md:mb-4">sval.tech</h1>
</div>
<!-- Product Grid/Row -->
<div class="flex flex-col md:flex-row items-stretch md:items-center justify-center gap-3 md:gap-4 w-full max-w-5xl px-2">
<!-- Product 1: StudyLocus (Secondary) -->
<a href="https://sval.tech/studylocus/" target="_blank" class="w-full md:w-1/4 p-4 glass-panel hover:border-zinc-500 transition-all duration-300 group rounded-lg text-left md:text-center flex flex-row md:flex-col items-center md:items-start justify-between md:justify-start gap-2 md:gap-4 h-auto md:h-full shrink-0">
<div class="flex-grow">
<h2 class="text-base md:text-lg font-bold tracking-tight text-zinc-300 group-hover:text-white mb-0 md:mb-2 flex items-center justify-between md:justify-center w-full">
StudyLocus
</h2>
<p class="text-[10px] md:text-xs text-zinc-500 hidden md:block">Preparation management dashboard.</p>
</div>
<svg class="w-4 h-4 text-zinc-600 group-hover:text-white transition-colors shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2" d="M7 17L17 7M7 7h10v10"></path></svg>
</a>
<!-- Product 2: ChaosPrep (HIGHLIGHTED) -->
<a href="https://sval.tech/chaos" target="_blank" class="w-full md:w-2/4 p-5 sm:p-8 glass-panel-highlight hover:border-white hover:bg-zinc-800/80 transition-all duration-300 transform md:hover:scale-105 group rounded-xl flex flex-col items-center justify-center text-center relative overflow-hidden h-auto md:h-full z-20 shrink-0">
<!-- Subtle glow behind text -->
<div class="absolute inset-0 bg-white/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<h2 class="text-xl sm:text-2xl md:text-3xl font-black tracking-tight text-white mb-1 md:mb-2 flex items-center gap-2">
ChaosPrep
<svg class="w-4 h-4 sm:w-5 sm:h-5 text-white/50 group-hover:text-white transition-colors transform group-hover:translate-x-1 group-hover:-translate-y-1 duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2" d="M7 17L17 7M7 7h10v10"></path></svg>
</h2>
<p class="text-xs sm:text-sm md:text-base text-zinc-300 m-0 max-w-sm hidden sm:block">Master your daily chaos. Focus-optimized task tracking with social accountability.</p>
<p class="text-xs text-zinc-300 m-0 block sm:hidden">Master daily chaos. Focus-optimized task tracking.</p>
</a>
<!-- Product 3: Syllabus Tracker (Secondary with sub-links) -->
<div class="w-full md:w-1/4 p-4 glass-panel rounded-lg flex flex-row md:flex-col items-center md:items-start justify-between gap-2 md:gap-4 h-auto md:h-full pointer-events-auto shrink-0">
<div class="w-full flex md:flex-col items-center md:items-start justify-between md:justify-start">
<h2 class="text-base md:text-lg font-bold tracking-tight text-zinc-300 mb-0 md:mb-4 text-left md:text-center w-auto md:w-full mr-4 md:mr-0 shrink-0">Syllabus Tracker</h2>
<div class="flex flex-row md:flex-col gap-3 font-mono text-[10px] md:text-xs w-full justify-end md:justify-center">
<a href="https://sval.tech/syllabustracker/" target="_blank" class="text-zinc-400 hover:text-white transition-colors flex items-center justify-between w-auto md:w-full group/link border-b border-transparent md:border-zinc-800 pb-0 md:pb-1 gap-1">
<span>JEE</span>
<svg class="w-3 h-3 opacity-0 group-hover/link:opacity-100 transition-opacity hidden md:block" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg>
</a>
<a href="https://sval.tech/neet/" target="_blank" class="text-zinc-400 hover:text-white transition-colors flex items-center justify-between w-auto md:w-full group/link border-b border-transparent md:border-zinc-800 pb-0 md:pb-1 gap-1">
<span>NEET</span>
<svg class="w-3 h-3 opacity-0 group-hover/link:opacity-100 transition-opacity hidden md:block" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="square" stroke-linejoin="miter" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Bottom Section: Footer & Socials -->
<footer class="flex flex-col sm:flex-row justify-between items-center w-full pointer-events-auto font-mono text-[10px] sm:text-xs text-zinc-500 uppercase tracking-widest gap-3 sm:gap-0 mt-4 shrink-0 pb-2 sm:pb-0">
<span class="order-3 sm:order-1 text-zinc-600">© 2026 sval.tech</span>
<nav class="flex gap-6 order-1 sm:order-2">
<a href="https://github.com/svalordev" target="_blank" class="flex items-center gap-1.5 hover:text-white transition-colors">
<svg class="w-4 h-4 fill-current" 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>
<span class="hidden sm:inline">github</span>
</a>
<a href="mailto:contact@sval.tech" class="flex items-center gap-1.5 hover:text-white transition-colors">
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="miter" viewBox="0 0 24 24"><path d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>
<span class="hidden sm:inline">contact</span>
</a>
<a href="https://discord.gg/mKXPpSY6Dz" target="_blank" class="flex items-center gap-1.5 hover:text-white transition-colors">
<svg class="w-4 h-4 fill-current" viewBox="0 0 24 24"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>
<span class="hidden sm:inline">discord</span>
</a>
</nav>
<span class="order-2 sm:order-3 text-zinc-600">By Shaurya Pratap Singh</span>
</footer>
</main>
<script>
window.onload = function() {
initThreeJS();
};
function initThreeJS() {
const container = document.getElementById('canvas-container');
// Scene Setup
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0x050505, 0.003);
// Camera Setup
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 40;
// Renderer Setup
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
// Limit pixel ratio on mobile to save performance/battery
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
container.appendChild(renderer.domElement);
// Group to hold all 3D objects for global rotation
const group = new THREE.Group();
scene.add(group);
// 1. Create abstract geometric core (Icosahedron wireframe)
const coreGeometry = new THREE.IcosahedronGeometry(12, 1);
const coreMaterial = new THREE.LineBasicMaterial({
color: 0x444444,
transparent: true,
opacity: 0.3
});
const core = new THREE.LineSegments(new THREE.WireframeGeometry(coreGeometry), coreMaterial);
group.add(core);
// 2. Ultra-lightweight particles for performance (Drastically reduced count)
const particlesCount = window.innerWidth < 768 ? 300 : 800;
const posArray = new Float32Array(particlesCount * 3);
// Distribute particles in a spherical band
for(let i = 0; i < particlesCount; i++) {
const r = 18 + Math.random() * 20;
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));
// Replaced heavy custom ShaderMaterial with native PointsMaterial
const particleMaterial = new THREE.PointsMaterial({
size: 0.15,
color: 0xaaaaaa,
transparent: true,
opacity: 0.6,
blending: THREE.AdditiveBlending
});
const particlesMesh = new THREE.Points(particlesGeometry, particleMaterial);
group.add(particlesMesh);
// Mouse Interaction Logic
let mouseX = 0;
let mouseY = 0;
let targetX = 0;
let targetY = 0;
const windowHalfX = window.innerWidth / 2;
const windowHalfY = window.innerHeight / 2;
// Added passive: true for scroll/touch performance
document.addEventListener('mousemove', (event) => {
mouseX = (event.clientX - windowHalfX) * 0.05;
mouseY = (event.clientY - windowHalfY) * 0.05;
}, {passive: true});
// Touch support for mobile interaction
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});
// Streamlined Animation Loop without heavy shader uniform updates
function animate() {
requestAnimationFrame(animate);
// Base auto-rotation
group.rotation.y += 0.001;
group.rotation.x += 0.0005;
core.rotation.y -= 0.002;
// Parallax camera movement based on mouse/touch
targetX = mouseX * 0.5;
targetY = mouseY * 0.5;
// Spring-like easing towards pointer position (faster response)
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();
// Handle Window Resize Responsively
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
}
</script>
</body>
</html>