-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
476 lines (443 loc) · 18.7 KB
/
index.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
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
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Garvit Pandey - Tech Enthusiast</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:[email protected]&display=swap" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Merriweather:wght@700&family=Playfair+Display:wght@700&family=Dancing+Script:wght@700&family=Pacifico&family=Architects+Daughter&family=Cinzel:wght@900&family=Raleway:wght@100&family=Quicksand:wght@300&family=Lobster&family=Press+Start+2P&family=Bungee+Shade&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:[email protected]&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monofett&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SUSE&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+CU&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:[email protected]&display=swap');
body, html {
margin: 0;
padding: 0;
font-family: "Kode Mono", monospace;
background-color: #000000;
color: #e0e0e0;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
transition: margin-left 0.3s;
position: relative;
z-index: 1;
}
.title-container {
background-color: rgba(40, 40, 40, 0.7);
backdrop-filter: blur(15px);
padding: 20px;
border-radius: 10px;
margin-bottom: 30px;
cursor: pointer;
transition: all 0.7s ease;
}
h1 {
font-size: 4.5em;
text-align: center;
margin: 0;
color: #ffffff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
transition: all 0.3s ease;
}
.section {
margin-bottom: 30px;
padding: 20px;
background-color: rgba(30, 30, 30, 0.6);
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.section h2 {
font-family: 'Playfair Display', serif;
margin-top: 0;
color: #4ECDC4;
}
ul {
list-style-type: none;
padding-left: 0;
}
li {
margin-bottom: 10px;
}
#particleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.interactive {
cursor: pointer;
}
.interactive:hover {
transform: scale(1.02);
}
.sidebar {
height: 100%;
width: 0;
position: fixed;
z-index: 2;
top: 0;
left: 0;
background-color: rgba(30, 30, 30, 0.9);
overflow-x: hidden;
transition: 0.3s;
padding-top: 60px;
backdrop-filter: blur(10px);
}
.sidebar a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 18px;
color: #4ECDC4;
display: block;
transition: 0.3s;
}
.sidebar a:hover {
background-color: rgba(44, 44, 44, 0.7);
}
.sidebar .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
.openbtn {
font-size: 30px;
cursor: pointer;
background-color: rgba(30, 30, 30, 0.7);
color: #4ECDC4;
padding: 10px 15px;
border: none;
position: fixed;
top: 10px;
right: 10px;
z-index: 2;
backdrop-filter: blur(5px);
}
.openbtn:hover {
background-color: rgba(44, 44, 44, 0.7);
}
@media screen and (max-height: 450px) {
.sidebar {padding-top: 15px;}
.sidebar a {font-size: 18px;}
}
.loading-animation {
width: 100%;
height: 4px;
background-color: rgba(30, 30, 30, 0.7);
position: fixed;
top: 0;
left: 0;
z-index: 1000;
}
.loading-bar {
height: 100%;
width: 0;
background-color: #4ECDC4;
transition: width 0.5s ease;
}
.contact-link {
color: #4ECDC4;
text-decoration: none;
transition: color 0.3s ease;
}
.contact-link:hover {
color: #FF6B6B;
}
</style>
</head>
<body>
<div class="loading-animation">
<div class="loading-bar"></div>
</div>
<div id="particleCanvas"></div>
<div id="mySidebar" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="#about">About</a>
<a href="#education">Education</a>
<a href="#experience">Experience</a>
<a href="#skills">Skills</a>
<a href="#hobbies">Hobbies</a>
<a href="#contact">Contact</a>
</div>
<button class="openbtn" onclick="openNav()">☰</button>
<div class="container">
<div class="title-container">
<h1>Garvit Pandey</h1>
</div>
<div id="about" class="section interactive">
<h2>About Me</h2>
<p>I'm Garvit, a highly motivated and tech-savvy individual with a passion for continuous learning. I have a proven ability to rapidly acquire new skills and consistently exceed expectations in academic projects and extracurricular activities.</p>
<p>I'm team-oriented, collaborative, and have excellent communication and problem-solving skills. I'm eager to apply my technical aptitude and proactive mindset to contribute to a high-performing team and gain valuable real-world experience.</p>
</div>
<div id="education" class="section interactive">
<h2>Education</h2>
<ul>
<li>Chhatrapati Shahu Ji Maharaj University (2023 - CURRENT)<br>Dr. Virendra Swarup Institute of Computer</li>
<li>Puranchandra Vidyaniketan<br>Highschool: 95%<br>Inter: 78% (1st Division)</li>
</ul>
</div>
<div id="experience" class="section interactive">
<h2>Work Experience</h2>
<h3>ADITYA CYBERCAFE, KANPUR (February 2023 - April 2024)</h3>
<ul>
<li>Customer Service and Support: Ensured positive customer interactions and high satisfaction rates.</li>
<li>Technical Troubleshooting: Efficiently addressed and solved hardware and software issues on the spot, minimizing downtime.</li>
<li>Financial Management: Handled daily cash transactions accurately, contributing to a 100% error-free financial reconciliation record over six months.</li>
<li>Organizational Maintenance: Kept the cybercafe clean and well-organized, increasing customer visits due to improved ambiance and usability.</li>
</ul>
</div>
<div id="skills" class="section interactive">
<h2>Skills</h2>
<ul>
<li>Technical Skills: Proficient in basic troubleshooting and problem-solving, experienced with maintaining computer systems</li>
<li>Interpersonal Skills: Strong communication abilities, excellent customer service skills</li>
<li>Management Skills: Financial transaction handling, effective organizational practices</li>
</ul>
</div>
<div id="hobbies" class="section interactive">
<h2>Hobbies</h2>
<ul>
<li>Music listening</li>
<li>Light Reading</li>
<li>Learning About New Tech</li>
</ul>
</div>
<div id="contact" class="section interactive">
<h2>Get in Touch</h2>
<p>Want to collaborate on a project or just chat about the latest tech trends? Reach out!</p>
<p>Phone: <a href="tel:638818245" class="contact-link">638818245</a></p>
<p>Email: <a href="mailto:[email protected]" class="contact-link">[email protected]</a></p>
</div>
</div>
<script>
let particles = [];
function setup() {
let canvas = createCanvas(windowWidth, windowHeight);
canvas.parent('particleCanvas');
for (let i = 0; i < 150; i++) {
particles.push(new Particle());
}
}
function draw() {
clear();
for (let particle of particles) {
particle.update();
particle.display();
}
}
class Particle {
constructor() {
this.pos = createVector(random(width), random(height));
this.vel = createVector(random(-1, 1), random(-1, 1));
this.size = random(10, 30);
this.color = color(random(shapeColors)); // Using the colors array you defined
this.shapeType = random(['hexagon', 'circle', 'triangle', 'wavyLine', 'wavyCircle']);
this.isOutline = random() > 0.5; // Determine if the shape should be an outline or filled
}
update() {
this.pos.add(this.vel);
if (this.pos.x < 0 || this.pos.x > width) this.vel.x *= -1;
if (this.pos.y < 0 || this.pos.y > height) this.vel.y *= -1;
}
display() {
push();
translate(this.pos.x, this.pos.y);
rotate(frameCount / 200); // You can adjust rotation speed if needed
if (this.shapeType === 'hexagon') {
// Hexagon drawing code
if (this.isOutline) {
stroke(this.color);
noFill();
} else {
noStroke();
fill(this.color);
}
beginShape();
for (let i = 0; i < 6; i++) {
let angle = TWO_PI / 6 * i;
let sx = cos(angle) * this.size;
let sy = sin(angle) * this.size;
vertex(sx, sy);
}
endShape(CLOSE);
} else if (this.shapeType === 'circle') {
// Circle drawing code
if (this.isOutline) {
stroke(this.color);
noFill();
} else {
noStroke();
fill(this.color);
}
ellipse(0, 0, this.size, this.size);
} else if (this.shapeType === 'triangle') {
// Triangle drawing code
if (this.isOutline) {
stroke(this.color);
noFill();
} else {
noStroke();
fill(this.color);
}
triangle(0, -this.size, -this.size * 0.866, this.size / 2, this.size * 0.866, this.size / 2);
} else if (this.shapeType === 'wavyLine') {
// Wavy line drawing code
stroke(this.color);
noFill();
beginShape();
for (let x = -this.size; x <= this.size; x++) {
let y = sin(x * 0.2) * this.size / 4; // Adjust amplitude and frequency as needed
vertex(x, y);
}
endShape();
}
else if (this.shapeType === 'wavyCircle') {
// Wavy circle drawing code (modified for a smoother, more circular shape)
stroke(this.color);
noFill();
beginShape();
let n = 10; // Number of waves
let a = 45; // Angle for curvature (in degrees)
for (let i = 0; i < TWO_PI; i += 0.1) {
let r = this.size / 2 + sin(i * n) * this.size / (4 * n); // Adjust amplitude and frequency
let x = r * cos(i + radians(a));
let y = r * sin(i + radians(a));
vertex(x, y);
}
endShape(CLOSE); }
pop();
}
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}
const colors = [
'rgba(48, 155, 126, 0.8)', // Darker Teal
'rgba(205, 57, 57, 0.8)', // Darker Red
'rgba(205, 180, 59, 0.8)', // Darker Yellow
'rgba(29, 133, 159, 0.8)', // Darker Blue
'rgba(205, 100, 36, 0.8)', // Darker Orange
'rgba(108, 0, 171, 0.8)', // Darker Violet
'rgba(45, 0, 100, 0.8)', // Darker Indigo
'rgba(0, 0, 205, 0.8)', // Darker Blue
'rgba(205, 205, 0, 0.6)', // Darker Yellow
'rgba(205, 115, 0, 0.8)', // Darker Orange
'rgba(205, 0, 0, 0.8)', // Darker Red
'rgba(98, 0, 98, 0.8)', // Darker Purple
'rgba(0, 205, 0, 0.6)', // Darker Lime
'rgba(0, 205, 205, 0.8)', // Darker Cyan
'rgba(205, 0, 107, 0.8)', // Darker Deep Pink
'rgba(205, 142, 153, 0.8)', // Darker Pink
'rgba(205, 90, 0, 0.8)', // Darker Dark Orange
'rgba(134, 84, 0, 0.8)', // Darker Dark Goldenrod
'rgba(139, 133, 57, 0.8)', // Darker Dark Khaki
'rgba(99, 39, 0, 0.8)', // Darker Saddle Brown
'rgba(160, 55, 0, 0.8)', // Darker Chocolate
'rgba(194, 114, 46, 0.8)', // Darker Sandy Brown
'rgba(168, 115, 0, 0.8)' // Darker Goldenrod
];
const shapeColors = [
'rgba(255, 0, 0, 0.6)', // Lighter Red
'rgba(0, 255, 0, 0.6)', // Lighter Lime
'rgba(0, 0, 255, 0.6)', // Lighter Blue
'rgba(255, 255, 0, 0.4)', // Lighter Yellow
'rgba(255, 0, 255, 0.6)', // Lighter Magenta
'rgba(0, 255, 255, 0.6)', // Lighter Cyan
'rgba(255, 165, 0, 0.6)', // Lighter Orange
'rgba(128, 0, 128, 0.6)', // Lighter Purple
'rgba(255, 20, 147, 0.6)', // Lighter Deep Pink
'rgba(0, 128, 128, 0.6)', // Lighter Teal
'rgba(255, 69, 0, 0.6)', // Lighter Orange Red
'rgba(124, 252, 0, 0.6)', // Lighter Lawn Green
'rgba(0, 191, 255, 0.6)', // Lighter Deep Sky Blue
'rgba(255, 250, 205, 0.6)', // Lighter Lemon Chiffon
'rgba(255, 105, 180, 0.6)', // Lighter Hot Pink
'rgba(255, 228, 196, 0.6)', // Lighter Bisque
'rgba(175, 238, 238, 0.6)', // Lighter Pale Turquoise
'rgba(255, 255, 224, 0.6)', // Lighter Light Yellow
'rgba(255, 218, 185, 0.6)', // Lighter Peach Puff
'rgba(250, 250, 210, 0.6)' // Lighter Light Goldenrod Yellow
];
document.querySelectorAll('.interactive').forEach(el => {
el.addEventListener('click', () => {
let newColor;
do {
newColor = colors[Math.floor(Math.random() * colors.length)];
} while (newColor === el.style.backgroundColor);
el.style.backgroundColor = newColor;
let titleColor = newColor === 'rgba(247, 255, 247, 0.6)' ? '#121212' : '#e0e0e0';
el.querySelector('h2').style.color = titleColor;
});
});
function openNav() {
document.getElementById("mySidebar").style.width = "250px";
document.querySelector('.container').style.marginLeft = "250px";
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.querySelector('.container').style.marginLeft = "0";
}
document.querySelectorAll('.sidebar a').forEach(link => {
link.addEventListener('click', closeNav);
});
window.addEventListener('load', () => {
const loadingBar = document.querySelector('.loading-bar');
loadingBar.style.width = '100%';
setTimeout(() => {
document.querySelector('.loading-animation').style.display = 'none';
}, 500);
});
// Updated title interaction code with new fonts
const titleContainer = document.querySelector('.title-container');
const title = document.querySelector('h1');
const fonts = [
{ family: "'Noto Sans JP', sans-serif", weight: "700", style: "normal", size: "4.5em" },
{ family: "'Bodoni Moda', serif", weight: "900", style: "italic", size: "4em" },
{ family: "'MuseoModerno', cursive", weight: "400", style: "normal", size: "5em" },
{ family: "'VT323', monospace", weight: "400", style: "normal", size: "3.8em" },
{ family: "'Syne Mono', monospace", weight: "700", style: "normal", size: "4em" },
{ family: "'Kode Mono', monospace", weight: "500", style: "normal", size: "4.2em" },
{ family: "'Monofett', monospace", weight: "400", style: "normal", size: "4.5em" },
{ family: "'Poppins', sans-serif", weight: "600", style: "normal", size: "4.5em" },
{ family: "'SUSE', sans-serif", weight: "700", style: "normal", size: "4.8em" },
{ family: "'Playwrite CU', serif", weight: "400", style: "normal", size: "5em" },
{ family: "'Pixelify Sans', sans-serif", weight: "400", style: "normal", size: "4em" },
{ family: "'Silkscreen', cursive", weight: "400", style: "normal", size: "3.5em" }
];
let currentFontIndex = 0;
titleContainer.addEventListener('click', () => {
currentFontIndex = (currentFontIndex + 1) % fonts.length;
const font = fonts[currentFontIndex];
title.style.fontFamily = font.family;
title.style.fontWeight = font.weight;
title.style.fontStyle = font.style;
title.style.fontSize = font.size;
// Add a subtle scale effect
titleContainer.style.transform = 'scale(1.05)';
setTimeout(() => {
titleContainer.style.transform = 'scale(1)';
}, 200);
});
</script>
</body>
</html>