Repository navigation
Expand file tree
/
Copy pathindex-old.html
More file actions
589 lines (551 loc) · 24.6 KB
/
Copy pathindex-old.html
File metadata and controls
589 lines (551 loc) · 24.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Da-Coders-135 | Professional Software Development Services</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- 3D Cube Styles -->
<style>
.cube-wrapper {
perspective: 1200px;
margin: 2rem 0;
}
.cube-container {
width: 100%;
max-width: 600px;
height: 400px;
position: relative;
margin: 0 auto;
transform-style: preserve-3d;
transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.cube-face {
position: absolute;
width: 100%;
height: 100%;
background: white;
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
backface-visibility: hidden;
overflow-y: auto;
}
.cube-face-front {
transform: translateZ(200px);
}
.cube-face-back {
transform: rotateY(180deg) translateZ(200px);
background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.cube-face-right {
transform: rotateY(90deg) translateZ(200px);
background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.cube-face-left {
transform: rotateY(-90deg) translateZ(200px);
background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}
.cube-container.show-back {
transform: translateZ(-200px) rotateY(-180deg);
}
.cube-container.show-right {
transform: translateZ(-200px) rotateY(-90deg);
}
.cube-container.show-left {
transform: translateZ(-200px) rotateY(90deg);
}
.cube-nav {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}
.cube-btn {
padding: 0.5rem 1.5rem;
background: linear-gradient(135deg, #64748b, #94a3b8);
color: white;
border: none;
border-radius: 2rem;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
box-shadow: 0 4px 6px rgba(100, 116, 139, 0.3);
}
.cube-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(100, 116, 139, 0.4);
}
.cube-btn.active {
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
box-shadow: 0 6px 12px rgba(30, 58, 138, 0.4);
}
.face-label {
display: inline-block;
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
color: white;
padding: 0.25rem 1rem;
border-radius: 2rem;
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 1rem;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Set progress bar widths dynamically (used in Services)
const progressBars = document.querySelectorAll('.progress-bar');
progressBars.forEach(bar => {
const width = bar.getAttribute('data-width');
if (width) bar.style.setProperty('--progress-width', width);
});
});
</script>
</head>
<body>
<header>
<div class="header-content">
<img src="logo.png" alt="Da-coders-135 Logo" class="logo">
<div class="header-text">
<h1 class="typewriter">Da-Coders-135</h1>
<p class="subtitle-animation">Elite Software Development Team | Transforming Ideas into Scalable Solutions</p>
<div class="cta-badge">
<span class="badge-text">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
style="display: inline-block; vertical-align: middle; margin-right: 6px;">
<path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"
fill="currentColor" />
</svg>
Available for Contract Work
</span>
</div>
</div>
</div>
</header>
<!-- Navigation -->
<nav class="main-nav">
<ul>
<li><a href="#home" class="nav-link active">Home</a></li>
<li><a href="#services" class="nav-link">Services</a></li>
<li><a href="#samples" class="nav-link">Samples</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
</ul>
</nav>
<!-- Sections -->
<main>
<section id="home">
<h2>Why Choose Da-Coders-135?</h2>
<div class="value-proposition">
<div class="value-card">
<div class="value-icon">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#1e3a8a;stop-opacity:1" />
<stop offset="100%" style="stop-color:#3b82f6;stop-opacity:1" />
</linearGradient>
</defs>
<circle cx="12" cy="12" r="10" stroke="url(#grad1)" stroke-width="2" fill="none" />
<circle cx="12" cy="12" r="6" stroke="url(#grad1)" stroke-width="2" fill="none" />
<circle cx="12" cy="12" r="2" fill="url(#grad1)" />
</svg>
</div>
<h3>Results-Driven Approach</h3>
<p>We don't just write code—we deliver solutions that drive your business forward. Every line of code is
crafted with your success in mind.</p>
</div>
<div class="value-card">
<div class="value-icon">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#64748b;stop-opacity:1" />
<stop offset="100%" style="stop-color:#94a3b8;stop-opacity:1" />
</linearGradient>
</defs>
<path d="M13 2L3 14h8l-1 8 10-12h-8l1-8z" fill="url(#grad2)" />
</svg>
</div>
<h3>Rapid Development</h3>
<p>Time is money. Our streamlined development process ensures your project launches faster without
compromising quality.</p>
</div>
<div class="value-card">
<div class="value-icon">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="grad3" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#2563eb;stop-opacity:1" />
<stop offset="100%" style="stop-color:#60a5fa;stop-opacity:1" />
</linearGradient>
</defs>
<path
d="M12 2L4 6v6c0 5.5 3.8 10.7 8 12 4.2-1.3 8-6.5 8-12V6l-8-4zm0 18c-3.2-1-6-5.2-6-9V7.3l6-3 6 3V11c0 3.8-2.8 8-6 9z"
fill="url(#grad3)" />
<path d="M10 12l2 2 4-4" stroke="url(#grad3)" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" fill="none" />
</svg>
</div>
<h3>Enterprise-Grade Security</h3>
<p>Your data and your users' data are sacred. We implement industry-leading security practices from day one.
</p>
</div>
</div>
<div class="about-description">
<p>
<strong>Da-Coders-135</strong> is a premier software development team specializing in high-performance backend
systems and interactive applications. We transform complex business requirements into elegant, scalable
solutions using cutting-edge technologies like Django REST Framework, Python, and Unity.
</p>
<p>
Our expertise spans from robust API architectures that handle millions of requests to immersive gaming
experiences that captivate users. We've successfully delivered projects for clients ranging from startups to
established enterprises, always exceeding expectations.
</p>
</div>
</section>
<section id="services">
<h2>Our Expertise</h2>
<div class="service-intro">
<p>We deliver world-class software solutions that scale with your business. Our comprehensive services are
designed to accelerate your digital transformation.</p>
</div>
<div class="skills-list">
<!-- ...existing service cards... -->
<div class="skill-card floating-card" data-delay="0">
<div class="skill-icon">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="gradRocket" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#1e3a8a;stop-opacity:1" />
<stop offset="100%" style="stop-color:#3b82f6;stop-opacity:1" />
</linearGradient>
</defs>
<path d="M12 2C12 2 7 5 7 11v7l5 4 5-4v-7c0-6-5-9-5-9z" fill="url(#gradRocket)" />
<circle cx="12" cy="11" r="2" fill="white" />
</svg>
</div>
<h3>Backend API Development</h3>
<div class="skill-progress">
<div class="progress-bar" data-width="95%"></div>
<span class="progress-label">Expert Level</span>
</div>
<div class="service-description">
<p>Build robust, scalable APIs that power your applications</p>
</div>
<ul>
<li>✅ Django REST Framework Architecture</li>
<li>✅ High-Performance Database Design</li>
<li>✅ JWT Authentication & Authorization</li>
<li>✅ Real-time WebSocket Integration</li>
<li>✅ API Documentation & Testing</li>
</ul>
<div class="service-cta">
<span class="cta-text">Perfect for: SaaS platforms, mobile app backends, enterprise systems</span>
</div>
</div>
<div class="skill-card floating-card" data-delay="200">
<div class="skill-icon">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="gradGame" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#64748b;stop-opacity:1" />
<stop offset="100%" style="stop-color:#475569;stop-opacity:1" />
</linearGradient>
</defs>
<path d="M6 9h12a5 5 0 015 5 5 5 0 01-5 5H6a5 5 0 01-5-5 5 5 0 015-5z" fill="url(#gradGame)" />
<circle cx="8" cy="14" r="1.5" fill="white" />
<circle cx="16" cy="14" r="1.5" fill="white" />
</svg>
</div>
<h3>Interactive Application Development</h3>
<div class="skill-progress">
<div class="progress-bar" data-width="90%"></div>
<span class="progress-label">Advanced Level</span>
</div>
<div class="service-description">
<p>Create engaging, interactive experiences that captivate users</p>
</div>
<ul>
<li>✅ Unity 3D/2D Development</li>
<li>✅ Cross-Platform Deployment</li>
<li>✅ Advanced Physics & Animation</li>
<li>✅ Custom UI/UX Implementation</li>
<li>✅ Performance Optimization</li>
</ul>
<div class="service-cta">
<span class="cta-text">Perfect for: Training simulators, interactive demos, gamification</span>
</div>
</div>
<div class="skill-card floating-card" data-delay="400">
<div class="skill-icon">
<svg width="50" height="50" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="gradDevops" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#1e3a8a;stop-opacity:1" />
<stop offset="100%" style="stop-color:#2563eb;stop-opacity:1" />
</linearGradient>
</defs>
<path d="M13 2L3 14h8l-1 8 10-12h-8l1-8z" fill="url(#gradDevops)" />
</svg>
</div>
<h3>DevOps & Integration</h3>
<div class="skill-progress">
<div class="progress-bar" data-width="88%"></div>
<span class="progress-label">Professional Level</span>
</div>
<div class="service-description">
<p>Streamline your development workflow and deployment pipeline</p>
</div>
<ul>
<li>✅ CI/CD Pipeline Setup</li>
<li>✅ Version Control & Code Review</li>
<li>✅ API Testing & Documentation</li>
<li>✅ Performance Monitoring</li>
<li>✅ Security Best Practices</li>
</ul>
<div class="service-cta">
<span class="cta-text">Perfect for: Team collaboration, automated deployments, quality assurance</span>
</div>
</div>
</div>
</section>
<section id="samples">
<h2>Featured Case Study - 3D Interactive View</h2>
<div class="case-study-intro">
<p>Explore our project from different angles using the interactive 3D cube below</p>
</div>
<div class="cube-wrapper">
<div class="cube-container" id="projectCube">
<!-- Front Face - Overview -->
<div class="cube-face cube-face-front">
<span class="face-label">Overview</span>
<h4>Enterprise Appointment Management Platform</h4>
<p><strong>Client:</strong> Healthcare SaaS Provider</p>
<p><strong>Duration:</strong> 6 months</p>
<p><strong>Team Size:</strong> 4 developers</p>
<p><strong>Status:</strong> Successfully Delivered</p>
<p><strong>Active Users:</strong> 10,000+</p>
<p style="margin-top: 2rem;"><em>Click the buttons below to explore different aspects of this project</em>
</p>
</div>
<!-- Back Face - Challenge & Solution -->
<div class="cube-face cube-face-back">
<span class="face-label">Challenge & Solution</span>
<h4>The Challenge</h4>
<p>Our client needed a comprehensive appointment management system that could handle complex scheduling,
real-time communication, and seamless integration with existing business tools.</p>
<h4 style="margin-top: 1.5rem;">Our Solution</h4>
<p>We architected and developed a robust Django REST Framework API with advanced features including JWT
authentication, role-based permissions, calendar integration, real-time notifications, and integrated
video conferencing capabilities.</p>
</div>
<!-- Right Face - Tech Stack -->
<div class="cube-face cube-face-right">
<span class="face-label">Technology Stack</span>
<h4>Technologies Used</h4>
<ul style="list-style: none; padding: 0;">
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Backend:</strong> Django REST Framework, Python 3.9
</li>
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Database:</strong> PostgreSQL with Redis caching
</li>
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Authentication:</strong> JWT + OAuth 2.0
</li>
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Real-time:</strong> WebSocket + WebRTC
</li>
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Task Queue:</strong> Celery with RabbitMQ
</li>
<li
style="padding: 0.5rem; background: white; margin: 0.5rem 0; border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<strong>Deployment:</strong> Docker, Kubernetes, AWS
</li>
</ul>
</div>
<!-- Left Face - Results -->
<div class="cube-face cube-face-left">
<span class="face-label">Results & Impact</span>
<h4>Measurable Results</h4>
<div style="text-align: center; margin: 2rem 0;">
<div
style="display: inline-block; margin: 1rem; padding: 1.5rem; background: white; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
<div style="font-size: 3rem; font-weight: bold; color: #3b82f6;">99.9%</div>
<div style="color: #64748B;">Uptime</div>
</div>
<div
style="display: inline-block; margin: 1rem; padding: 1.5rem; background: white; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
<div style="font-size: 3rem; font-weight: bold; color: #1e3a8a;">40%</div>
<div style="color: #64748B;">Faster Booking</div>
</div>
<div
style="display: inline-block; margin: 1rem; padding: 1.5rem; background: white; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
<div style="font-size: 3rem; font-weight: bold; color: #64748b;">10K+</div>
<div style="color: #64748B;">Daily Users</div>
</div>
</div>
<p style="margin-top: 2rem;"><strong>Client Feedback:</strong> "The platform exceeded our expectations and
has become essential to our daily operations."</p>
</div>
</div>
<!-- Cube Navigation Buttons -->
<div class="cube-nav">
<button class="cube-btn active" onclick="rotateCube('')">Overview</button>
<button class="cube-btn" onclick="rotateCube('back')">Challenge</button>
<button class="cube-btn" onclick="rotateCube('right')">Tech Stack</button>
<button class="cube-btn" onclick="rotateCube('left')">Results</button>
</div>
</div>
</section>
<section id="contact">
<h2>Ready to Transform Your Ideas?</h2>
<div class="contact-hero">
<p class="contact-headline">Let's discuss how we can accelerate your project and deliver exceptional results.
</p>
<div class="contact-benefits">
<div class="benefit-item">
<span class="benefit-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M13 2L3 14h8l-1 8 10-12h-8l1-8z" fill="#3b82f6" />
</svg>
</span>
<span class="benefit-text">Fast turnaround times</span>
</div>
<div class="benefit-item">
<span class="benefit-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M12 2L9 9 2 10.5 7 15.5 5.5 22 12 18.5 18.5 22 17 15.5 22 10.5 15 9z" fill="#3b82f6" />
</svg>
</span>
<span class="benefit-text">Premium quality code</span>
</div>
<div class="benefit-item">
<span class="benefit-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
d="M17 11c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-2.3 0-7 1.2-7 3.5V19h14v-2.5c0-2.3-4.7-3.5-7-3.5z"
fill="#3b82f6" />
<path d="M17 13c-1 0-1.8.2-2.5.5.8.8 1.5 1.8 1.5 3V19h6v-2.5c0-2.3-2.7-3.5-5-3.5z" fill="#3b82f6" />
</svg>
</span>
<span class="benefit-text">Transparent communication</span>
</div>
<div class="benefit-item">
<span class="benefit-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M12 2L4 6v6c0 5.5 3.8 10.7 8 12 4.2-1.3 8-6.5 8-12V6l-8-4z" fill="#3b82f6" />
</svg>
</span>
<span class="benefit-text">100% confidentiality</span>
</div>
</div>
</div>
<div class="contact-info">
<div class="contact-card primary">
<div class="contact-icon">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<path d="M12 2C12 2 7 5 7 11v7l5 4 5-4v-7c0-6-5-9-5-9z" fill="white" />
<circle cx="12" cy="11" r="2" fill="#3b82f6" />
</svg>
</div>
<h3>Start Your Project</h3>
<p>Get a free consultation and project estimate within 24 hours</p>
<a href="mailto:darren77theone@gmail.com?subject=Project Inquiry - Contract Work&body=Hi Da-Coders-135,%0D%0A%0D%0AI'm interested in discussing a project with your team.%0D%0A%0D%0AProject Type: [Please describe]%0D%0ATimeline: [Your preferred timeline]%0D%0ABudget Range: [Your budget range]%0D%0A%0D%0APlease let me know your availability for a consultation.%0D%0A%0D%0AThank you!"
class="contact-link primary">Get Free Consultation</a>
</div>
<div class="contact-card secondary">
<div class="contact-icon">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<defs>
<linearGradient id="gradBriefcase" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#64748b;stop-opacity:1" />
<stop offset="100%" style="stop-color:#475569;stop-opacity:1" />
</linearGradient>
</defs>
<rect x="2" y="7" width="20" height="14" rx="2" fill="url(#gradBriefcase)" />
<path d="M16 7V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v2" stroke="url(#gradBriefcase)" stroke-width="2"
fill="none" />
</svg>
</div>
<h3>View Our Work</h3>
<p>Explore our development approach and coding standards</p>
<a href="" target="_blank" class="contact-link secondary">Browse Portfolio</a>
</div>
</div>
<div class="contact-guarantee">
<div class="guarantee-badge">
<span class="guarantee-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="10" fill="#3b82f6" />
<path d="M8 12l3 3 5-5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
fill="none" />
</svg>
</span>
<div class="guarantee-text">
<strong>Our Guarantee:</strong> If you're not completely satisfied with our initial consultation and project
proposal, we'll refund your time with a detailed technical roadmap at no cost.
</div>
</div>
</div>
</section>
</main>
<script>
// 3D Cube Rotation Script
function rotateCube(face) {
const cube = document.getElementById('projectCube');
const buttons = document.querySelectorAll('.cube-btn');
// Remove all show classes
cube.className = 'cube-container';
// Add the appropriate class
if (face) {
cube.classList.add('show-' + face);
}
// Update active button
buttons.forEach((btn, index) => {
btn.classList.remove('active');
if ((face === '' && index === 0) ||
(face === 'back' && index === 1) ||
(face === 'right' && index === 2) ||
(face === 'left' && index === 3)) {
btn.classList.add('active');
}
});
}
// Simple scrollspy to update active nav link based on scroll position
document.addEventListener('DOMContentLoaded', function () {
const sections = document.querySelectorAll('main section');
const navLinks = document.querySelectorAll('.main-nav a');
function setActiveLink() {
let index = sections.length;
while (--index && window.scrollY + 120 < sections[index].offsetTop) { }
navLinks.forEach(link => link.classList.remove('active'));
const id = sections[index].id;
const active = document.querySelector(`.main-nav a[href="#${id}"]`);
if (active) active.classList.add('active');
}
setActiveLink();
window.addEventListener('scroll', setActiveLink);
// Smooth scrolling for nav links
document.querySelectorAll('.main-nav a').forEach(link => {
link.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) target.scrollIntoView({ behavior: 'smooth', block: 'start' });
});
});
});
</script>
<footer>
© 2025 Da-coders-135. All Rights Reserved.
</footer>
</body>
</html>