-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcontact.html
More file actions
650 lines (590 loc) Β· 20.9 KB
/
contact.html
File metadata and controls
650 lines (590 loc) Β· 20.9 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
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
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Contact β Sampada Tiwari</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-dark: #0f0f1a;
--bg-light: #f9f9f9;
--card-dark: rgba(255,255,255,0.05);
--card-light: #ffffff;
--primary: #6c5ce7;
--accent: #00eaff;
--text-dark: #222;
--text-light: #f5f5f5;
--text-muted-dark: #a0a0a0;
--text-muted-light: #555;
}
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 5rem 1rem 3rem; /* increased top padding for navbar */
background: radial-gradient(circle at top left, #1e1e2f, var(--bg-dark));
color: var(--text-light);
transition: all 0.4s ease;
}
body.light {
background: radial-gradient(circle at top left, #ffffff, var(--bg-light));
color: var(--text-dark);
}
/* Navbar Styles */
.nav-link {
position: relative;
color: white;
transition: all 0.3s ease;
}
.nav-link::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background-color: #22d3ee;
transition: width 0.3s ease;
}
.nav-link:hover {
color: #22d3ee;
}
.nav-link:hover::after {
width: 100%;
}
/* Light mode navbar */
body.light .nav-link {
color: #1a1a1a;
}
body.light .nav-link:hover {
color: #6c5ce7;
}
body.light .nav-link::after {
background-color: #6c5ce7;
}
body.light header {
background: rgba(249, 249, 249, 0.8) !important;
}
body.light header h1 {
color: #1a1a1a !important;
}
body.light header h1 span {
color: #6c5ce7 !important;
}
body.light #menu-btn svg {
stroke: #1a1a1a;
}
body.light #mobile-menu {
background: rgba(249, 249, 249, 0.95) !important;
}
/* Fix navbar theme toggle visibility in light mode - keep original styling */
body.light #theme-toggle {
color: #6c5ce7 !important;
}
body.light #theme-toggle:hover {
color: #22d3ee !important;
}
body.light #theme-toggle i,
body.light #theme-toggle-icon {
color: #6c5ce7 !important;
}
body.light #theme-toggle:hover i,
body.light #theme-toggle:hover #theme-toggle-icon {
color: #22d3ee !important;
}
.contact-wrapper {
max-width: 1000px;
margin: auto;
padding: 2.5rem;
border-radius: 25px;
background: var(--card-dark);
backdrop-filter: blur(12px);
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
position: relative;
overflow: hidden;
transition: all 0.4s ease;
}
body.light .contact-wrapper {
background: var(--card-light);
box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
/* Floating blobs */
.blob {
position: absolute;
width: 300px;
height: 300px;
background: radial-gradient(circle, var(--primary), transparent 70%);
border-radius: 50%;
filter: blur(90px);
animation: float 12s ease-in-out infinite alternate;
opacity: 0.6;
z-index: -1;
}
.blob:nth-child(1){ top: -50px; left: -80px; }
.blob:nth-child(2){ bottom: -60px; right: -100px; background: radial-gradient(circle, var(--accent), transparent 70%); }
@keyframes float {
0%{ transform: translateY(0) translateX(0);}
100%{ transform: translateY(-40px) translateX(40px);}
}
/* Headings */
.contact-heading {
text-align: center;
margin-bottom: 2rem;
}
.contact-heading h1 {
font-weight: 700;
font-size: 2.8rem;
background: linear-gradient(90deg, var(--accent), var(--primary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.contact-heading p {
color: var(--text-muted-dark);
font-size: 1.1rem;
}
body.light .contact-heading p { color: var(--text-muted-light); }
/* Intro */
.intro {
text-align: center;
margin-bottom: 2rem;
font-size: 1.05rem;
line-height: 1.6;
}
/* Info cards */
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
gap: 1.5rem;
margin-bottom: 2.5rem;
}
.info-card {
padding: 1rem;
border-radius: 15px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
text-align: center;
}
body.light .info-card {
background: #fafafa;
border: 1px solid #ddd;
}
.info-card i {
font-size: 1.6rem;
margin-bottom: 0.5rem;
color: var(--accent);
}
.info-card p { margin: 0; }
/* Email */
.email-box {
text-align: center;
margin-bottom: 2.5rem;
}
.email-box a {
font-size: 1.2rem;
color: var(--text-light);
text-decoration: none;
font-weight: 600;
padding: 0.7rem 1.4rem;
border-radius: 12px;
background: linear-gradient(45deg, var(--primary), var(--accent));
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 0.6rem;
}
body.light .email-box a { color: #fff; }
.email-box a:hover {
transform: scale(1.05);
box-shadow: 0 8px 25px rgba(0, 234, 255, 0.3);
}
/* Social */
.social-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
gap: 1.5rem;
margin-bottom: 2.5rem;
}
.social-card {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.2rem;
border-radius: 15px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
text-decoration: none;
color: var(--text-light);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
body.light .social-card {
background: #fafafa;
color: var(--text-dark);
border: 1px solid #ddd;
}
.social-card i { font-size: 1.6rem; }
.social-card span {
font-size: 1.1rem;
font-weight: 500;
}
.social-card::after {
content: "";
position: absolute;
top: 0; left: -100%;
width: 100%; height: 100%;
background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.6s ease;
}
.social-card:hover::after { left: 100%; }
.social-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
/* Form */
.contact-form {
margin-bottom: 2.5rem;
}
.contact-form h3 {
margin-bottom: 1rem;
font-weight: 600;
}
.contact-form .form-control {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.2);
color: var(--text-light);
}
.contact-form .form-control::placeholder {
color: #ccc;
}
body.light .contact-form .form-control {
background: #fff;
color: var(--text-dark);
border: 1px solid #ccc;
}
.contact-form .btn {
background: linear-gradient(45deg, var(--primary), var(--accent));
border: none;
color: #fff;
font-weight: 600;
transition: all 0.3s ease;
}
.contact-form .btn:hover { transform: scale(1.02); }
/* Scroll top */
.scroll-top {
position: fixed;
bottom: 25px; right: 25px;
width: 48px; height: 48px;
border-radius: 50%;
border: none;
background: linear-gradient(45deg, var(--primary), var(--accent));
color: #fff;
font-size: 1.2rem;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}
.scroll-top.show { opacity: 1; visibility: visible; }
/* Theme toggle */
.theme-toggle {
position: absolute;
top: 20px; right: 20px;
background: none;
border: 2px solid var(--accent);
color: var(--accent);
border-radius: 50%;
width: 42px; height: 42px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.theme-toggle:hover {
background: var(--accent);
color: #fff;
}
/* Light mode theme toggle visibility */
body.light .theme-toggle {
border: 3px solid var(--primary);
color: var(--primary);
background: #ffffff;
box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
font-weight: bold;
}
body.light .theme-toggle:hover {
background: var(--primary);
color: #fff;
box-shadow: 0 6px 25px rgba(108, 92, 231, 0.6);
transform: scale(1.1);
}
/* Responsive adjustments */
@media (max-width: 768px) {
body {
padding: 5rem 1rem 2rem;
}
}
</style>
</head>
<body>
<!-- Navbar -->
<header class="fixed top-0 left-0 w-full bg-[#0f172a]/80 backdrop-blur-md z-50">
<div class="max-w-7xl mx-auto flex items-center justify-between px-6 py-4">
<!-- Brand / Logo -->
<h1 class="text-2xl font-bold text-white">
Sampada <span class="text-cyan-400">Tiwari</span>
</h1>
<!-- Desktop Navigation -->
<nav class="hidden md:flex items-center space-x-6 font-medium">
<a href="index.html" class="nav-link">Home</a>
<a href="about.html" class="nav-link">About</a>
<a href="skills.html" class="nav-link">Skills</a>
<a href="experience.html" class="nav-link">Experience</a>
<a href="project.html" class="nav-link">Projects</a>
<a href="/index.html#testimonials" class="nav-link">Testimonials</a>
<a href="contact.html" class="nav-link">Contact</a>
<!-- Theme Toggle -->
<button id="theme-toggle" class="ml-4 text-white hover:text-cyan-400 transition">
<i id="theme-toggle-icon" class="fas fa-moon text-xl"></i>
</button>
</nav>
<!-- Mobile Menu Button -->
<button id="menu-btn" class="md:hidden text-white focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="hidden md:hidden bg-[#0f172a]/95 backdrop-blur-md">
<nav class="flex flex-col px-6 py-4 space-y-4 font-medium">
<a href="index.html" class="nav-link">Home</a>
<a href="about.html" class="nav-link">About</a>
<a href="skills.html" class="nav-link">Skills</a>
<a href="experience.html" class="nav-link">Experience</a>
<a href="project.html" class="nav-link">Projects</a>
<a href="testimonials" class="nav-link">Testimonials</a>
<a href="contact.html" class="nav-link">Contact</a>
</nav>
</div>
</header>
<div class="contact-wrapper">
<div class="blob"></div>
<div class="blob"></div>
<button class="theme-toggle" id="themeToggle"><i class="fas fa-moon"></i></button>
<div class="contact-heading">
<h1>Let's Connect</h1>
<p>Collaboration, ideas, or questions β I'm always open to meaningful conversations.</p>
</div>
<div class="intro">
<p>
Hi π I'm <strong>Sampada Tiwari</strong>, a passionate developer & designer.
I enjoy building digital products that blend creativity with functionality.
If you'd like to discuss a project, share feedback, or just say hello, feel free to reach out below.
</p>
</div>
<!-- Info cards -->
<div class="info-grid">
<div class="info-card">
<i class="fas fa-map-marker-alt"></i>
<p>New Delhi, India</p>
</div>
<div class="info-card">
<i class="fas fa-phone"></i>
<p>+91 98765 XXXXX</p>
</div>
<div class="info-card">
<i class="fas fa-clock"></i>
<p>Mon - Fri (10AM - 6PM)</p>
</div>
</div>
<!-- Email -->
<div class="email-box">
<a href="mailto:sampada@example.com">
<i class="fa-solid fa-envelope"></i> sampada@example.com
</a>
</div>
<!-- Social links -->
<div class="social-grid">
<a href="#" target="_blank" class="social-card"><i class="fab fa-linkedin"></i> <span>LinkedIn</span></a>
<a href="#" target="_blank" class="social-card"><i class="fab fa-instagram"></i> <span>Instagram</span></a>
<a href="#" target="_blank" class="social-card"><i class="fab fa-github"></i> <span>GitHub</span></a>
<a href="#" target="_blank" class="social-card"><i class="fab fa-twitter"></i> <span>Twitter</span></a>
</div>
<!-- Contact form -->
<div class="contact-form">
<h3>Send Me a Message</h3>
<form>
<div class="mb-3">
<input type="text" class="form-control" placeholder="Your Name" required>
</div>
<div class="mb-3">
<input type="email" class="form-control" placeholder="Your Email" required>
</div>
<div class="mb-3">
<textarea class="form-control" rows="4" placeholder="Your Message" required></textarea>
</div>
<button type="submit" class="btn w-100">Send Message</button>
</form>
</div>
</div>
<!-- ================= FOOTER SECTION ================= -->
<footer class="bg-[#0f172a] text-gray-200 py-16 px-6 md:px-12">
<!-- Footer Container -->
<div class="flex flex-col md:flex-row md:justify-between gap-12 md:gap-8 mb-8">
<!-- Brand / Logo -->
<div class="text-center md:text-left">
<h2 class="text-2xl md:text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-cyan-400 to-purple-500">
Sampada<span class="font-extrabold">Tiwari</span>
</h2>
<p class="text-gray-400 mt-1 text-sm md:text-base">Data Scientist β’ Leader β’ Creator</p>
</div>
<!-- Quick Links -->
<div class="text-center md:text-left">
<h3 class="text-cyan-400 text-lg font-semibold mb-3">Quick Links</h3>
<ul class="flex flex-wrap justify-center md:justify-start gap-3 md:gap-2">
<li><a href="index.html" class="hover:text-cyan-400 transition-colors">Home</a></li>
<li><a href="#about" class="hover:text-cyan-400 transition-colors">About</a></li>
<li><a href="#skills" class="hover:text-cyan-400 transition-colors">Skills</a></li>
<li><a href="#experience" class="hover:text-cyan-400 transition-colors">Experience</a></li>
<li><a href="#projects" class="hover:text-cyan-400 transition-colors">Projects</a></li>
<li><a href="#testimonials" class="hover:text-cyan-400 transition-colors">Testimonials</a></li>
<li><a href="#contact" class="hover:text-cyan-400 transition-colors">Contact</a></li>
</ul>
</div>
<!-- Social Media -->
<div class="text-center md:text-left">
<h3 class="text-cyan-400 text-lg font-semibold mb-3">Follow Me</h3>
<div class="flex justify-center md:justify-start gap-4 text-2xl">
<a href="https://linkedin.com/in/sampada" target="_blank" class="hover:text-cyan-400 transform hover:scale-125 transition-all"><i class="fab fa-linkedin"></i></a>
<a href="https://github.com/sampada" target="_blank" class="hover:text-cyan-400 transform hover:scale-125 transition-all"><i class="fab fa-github"></i></a>
<a href="https://twitter.com/sampada" target="_blank" class="hover:text-cyan-400 transform hover:scale-125 transition-all"><i class="fab fa-twitter"></i></a>
<a href="mailto:sampada@example.com" class="hover:text-cyan-400 transform hover:scale-125 transition-all"><i class="fas fa-envelope"></i></a>
</div>
</div>
</div>
<!-- Bottom Bar -->
<div class="border-t border-gray-700 pt-4 text-center text-sm text-gray-500">
Β© 2025 Sampada Tiwari β’ All Rights Reserved
</div>
</footer>
<button class="scroll-top" id="scrollTop"><i class="fas fa-arrow-up"></i></button>
<script src="https://cdn.tailwindcss.com"></script>
<script>
// Theme Toggle functionality (dual toggles working together)
const scrollBtn = document.getElementById('scrollTop');
const themeToggleMain = document.getElementById('theme-toggle');
const themeToggleContact = document.getElementById('themeToggle');
const body = document.body;
// Function to sync both toggle buttons
function syncThemeToggles(isLight) {
const moonIcon = '<i class="fas fa-moon"></i>';
const sunIcon = '<i class="fas fa-sun"></i>';
if (themeToggleMain) {
const mainIcon = themeToggleMain.querySelector('i');
if (mainIcon) {
mainIcon.className = isLight ? 'fas fa-sun text-xl' : 'fas fa-moon text-xl';
}
}
if (themeToggleContact) {
themeToggleContact.innerHTML = isLight ? sunIcon : moonIcon;
}
}
// Function to toggle theme
function toggleTheme() {
body.classList.toggle('light');
const isLight = body.classList.contains('light');
syncThemeToggles(isLight);
}
// Event listeners for both toggle buttons
if (themeToggleMain) {
themeToggleMain.addEventListener('click', toggleTheme);
}
if (themeToggleContact) {
themeToggleContact.addEventListener('click', toggleTheme);
}
// Mobile menu toggle
const menuBtn = document.getElementById('menu-btn');
const mobileMenu = document.getElementById('mobile-menu');
if (menuBtn && mobileMenu) {
menuBtn.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
}
// Scroll top functionality
window.addEventListener('scroll', () => {
scrollBtn.classList.toggle('show', window.scrollY > 200);
});
scrollBtn.addEventListener('click', () => {
window.scrollTo({top:0, behavior:'smooth'});
});
// Enhanced hover effects for social items
document.querySelectorAll(".social-card").forEach((item) => {
item.addEventListener("mouseenter", function () {
this.style.transform = "translateY(-5px) scale(1.02)";
});
item.addEventListener("mouseleave", function () {
this.style.transform = "translateY(0) scale(1)";
});
});
// Email click tracking
const emailLink = document.querySelector(".email-box a");
if (emailLink) {
emailLink.addEventListener("click", function () {
console.log("Email clicked - opening default email client");
});
}
// Add subtle parallax effect to background
window.addEventListener("scroll", function () {
const scrolled = window.pageYOffset;
const blobs = document.querySelectorAll('.blob');
const rate = scrolled * -0.1;
blobs.forEach(blob => {
blob.style.transform = `translateY(${rate}px)`;
});
});
// Add click ripple effect to social items
document.querySelectorAll(".social-card").forEach((item) => {
item.addEventListener("click", function (e) {
const ripple = document.createElement("span");
const rect = this.getBoundingClientRect();
const size = Math.max(rect.width, rect.height);
const x = e.clientX - rect.left - size / 2;
const y = e.clientY - rect.top - size / 2;
ripple.style.width = ripple.style.height = size + "px";
ripple.style.left = x + "px";
ripple.style.top = y + "px";
ripple.classList.add("ripple");
this.appendChild(ripple);
setTimeout(() => {
ripple.remove();
}, 600);
});
});
// Add ripple effect styles dynamically
const style = document.createElement("style");
style.textContent = `
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(108, 92, 231, 0.3);
transform: scale(0);
animation: ripple-animation 0.6s linear;
pointer-events: none;
}
@keyframes ripple-animation {
to {
transform: scale(4);
opacity: 0;
}
}
`;
document.head.appendChild(style);
</script>
</body>
</html>