-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorials.html
More file actions
644 lines (580 loc) Β· 23.9 KB
/
tutorials.html
File metadata and controls
644 lines (580 loc) Β· 23.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tutorials - TruckCraft Studio</title>
<meta name="description" content="Step-by-step tutorials to help you master TruckCraft Studio. Learn how to create and customize your VTC website.">
<link rel="icon" href="assets/logo.png">
<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@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/responsive-enhancements.css">
<link rel="stylesheet" href="assets/alignment-fixes.css">
<link rel="stylesheet" href="assets/animations.css">
<style>
.tutorials-hero {
background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
padding: 6rem 0 4rem;
text-align: center;
color: white;
}
.tutorials-hero h1 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
}
.tutorials-hero p {
font-size: 1.25rem;
opacity: 0.95;
max-width: 600px;
margin: 0 auto;
}
.filter-tabs {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin: 3rem 0 2rem;
}
.filter-tab {
padding: 0.75rem 1.5rem;
border: 2px solid #e2e8f0;
background: white;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
color: #64748b;
}
.filter-tab:hover {
border-color: #7c3aed;
color: #7c3aed;
}
.filter-tab.active {
background: #7c3aed;
border-color: #7c3aed;
color: white;
}
.tutorials-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
padding: 2rem 0 4rem;
}
.tutorial-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
display: flex;
flex-direction: column;
}
.tutorial-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.tutorial-thumbnail {
width: 100%;
height: 200px;
background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
position: relative;
overflow: hidden;
}
.tutorial-thumbnail::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
to {
left: 100%;
}
}
.tutorial-duration {
position: absolute;
bottom: 1rem;
right: 1rem;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.375rem 0.75rem;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 600;
}
.tutorial-content {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
}
.tutorial-category {
display: inline-block;
background: #f3e8ff;
color: #7c3aed;
padding: 0.25rem 0.75rem;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.75rem;
width: fit-content;
}
.tutorial-card h3 {
font-size: 1.25rem;
color: #1e293b;
margin-bottom: 0.75rem;
line-height: 1.4;
}
.tutorial-card p {
color: #64748b;
line-height: 1.6;
margin-bottom: 1.25rem;
flex: 1;
}
.tutorial-meta {
display: flex;
gap: 1.5rem;
font-size: 0.875rem;
color: #94a3b8;
margin-bottom: 1rem;
}
.tutorial-meta span {
display: flex;
align-items: center;
gap: 0.375rem;
}
.tutorial-card .btn {
width: 100%;
text-align: center;
padding: 0.75rem;
margin-top: auto;
}
.video-modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 1000;
padding: 2rem;
overflow-y: auto;
}
.video-modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.video-container {
background: white;
border-radius: 16px;
max-width: 1200px;
width: 100%;
padding: 2rem;
position: relative;
}
.video-close {
position: absolute;
top: 1rem;
right: 1rem;
background: #7c3aed;
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}
.video-close:hover {
background: #6d28d9;
transform: scale(1.1);
}
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
background: #1e293b;
border-radius: 8px;
margin-top: 3rem;
}
.video-wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-placeholder {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #94a3b8;
font-size: 1.25rem;
text-align: center;
}
@media (max-width: 768px) {
.tutorials-hero h1 {
font-size: 2rem;
}
.tutorials-hero p {
font-size: 1rem;
}
.tutorials-grid {
grid-template-columns: 1fr;
}
.filter-tabs {
padding: 0 1rem;
}
.filter-tab {
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
}
.video-modal {
padding: 1rem;
}
.video-container {
padding: 1.5rem;
}
}
</style>
</head>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Navigation will be inserted by JavaScript -->
<main id="main-content" role="main">
<!-- Hero Section -->
<section class="tutorials-hero">
<div class="container">
<h1>Video Tutorials</h1>
<p>Learn at your own pace with our step-by-step video guides</p>
</div>
</section>
<!-- Filter Tabs -->
<section class="section">
<div class="container">
<div class="filter-tabs">
<button class="filter-tab active" data-category="all">All Tutorials</button>
<button class="filter-tab" data-category="beginner">Beginner</button>
<button class="filter-tab" data-category="intermediate">Intermediate</button>
<button class="filter-tab" data-category="advanced">Advanced</button>
<button class="filter-tab" data-category="design">Design</button>
<button class="filter-tab" data-category="code">Code</button>
</div>
<!-- Tutorials Grid -->
<div class="tutorials-grid">
<!-- Tutorial 1 -->
<article class="tutorial-card" data-category="beginner">
<div class="tutorial-thumbnail">
π
<span class="tutorial-duration">8:45</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Beginner</span>
<h3>Getting Started with TruckCraft Studio</h3>
<p>Learn the basics of creating your first VTC website. We'll cover choosing a template, basic customization, and publishing.</p>
<div class="tutorial-meta">
<span>ποΈ 12.5K views</span>
<span>π
2 weeks ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial1')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 2 -->
<article class="tutorial-card" data-category="beginner design">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #8b5cf6, #a855f7);">
π¨
<span class="tutorial-duration">12:30</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Beginner</span>
<h3>Choosing the Right Template</h3>
<p>Explore all available templates and learn which one suits your VTC best. Compare features and design styles.</p>
<div class="tutorial-meta">
<span>ποΈ 9.2K views</span>
<span>π
1 week ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial2')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 3 -->
<article class="tutorial-card" data-category="intermediate design">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #a855f7, #d946ef);">
βοΈ
<span class="tutorial-duration">15:20</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Intermediate</span>
<h3>Customizing Colors and Fonts</h3>
<p>Master the art of customizing your website's appearance. Learn how to change colors, fonts, and create a unique brand identity.</p>
<div class="tutorial-meta">
<span>ποΈ 8.7K views</span>
<span>π
3 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial3')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 4 -->
<article class="tutorial-card" data-category="intermediate">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #ec4899, #f97316);">
πΌοΈ
<span class="tutorial-duration">10:15</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Intermediate</span>
<h3>Adding Images and Media</h3>
<p>Learn how to replace placeholder images, optimize photos for the web, and add video content to your VTC website.</p>
<div class="tutorial-meta">
<span>ποΈ 7.1K views</span>
<span>π
5 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial4')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 5 -->
<article class="tutorial-card" data-category="intermediate design">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #f97316, #facc15);">
π±
<span class="tutorial-duration">14:00</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Intermediate</span>
<h3>Making Your Site Mobile-Friendly</h3>
<p>Ensure your website looks perfect on all devices. Learn about responsive design principles and testing tools.</p>
<div class="tutorial-meta">
<span>ποΈ 6.8K views</span>
<span>π
1 week ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial5')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 6 -->
<article class="tutorial-card" data-category="advanced code">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #06b6d4, #3b82f6);">
π»
<span class="tutorial-duration">18:45</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Advanced</span>
<h3>Custom HTML & CSS Editing</h3>
<p>Dive into the code! Learn how to make advanced customizations by editing HTML and CSS directly.</p>
<div class="tutorial-meta">
<span>ποΈ 5.4K views</span>
<span>π
2 weeks ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial6')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 7 -->
<article class="tutorial-card" data-category="advanced code">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #3b82f6, #8b5cf6);">
π§
<span class="tutorial-duration">16:30</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Advanced</span>
<h3>Adding Interactive Elements</h3>
<p>Learn how to add forms, animations, and interactive features using JavaScript to enhance user experience.</p>
<div class="tutorial-meta">
<span>ποΈ 4.9K views</span>
<span>π
4 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial7')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 8 -->
<article class="tutorial-card" data-category="intermediate">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #10b981, #06b6d4);">
π
<span class="tutorial-duration">20:00</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Intermediate</span>
<h3>Publishing to GitHub Pages</h3>
<p>Step-by-step guide to hosting your VTC website for free using GitHub Pages. No hosting fees required!</p>
<div class="tutorial-meta">
<span>ποΈ 11.2K views</span>
<span>π
1 week ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial8')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 9 -->
<article class="tutorial-card" data-category="intermediate">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #f59e0b, #ef4444);">
π
<span class="tutorial-duration">11:20</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Intermediate</span>
<h3>Adding Google Analytics</h3>
<p>Track your website visitors and understand your audience. Learn how to integrate Google Analytics into your VTC site.</p>
<div class="tutorial-meta">
<span>ποΈ 6.3K views</span>
<span>π
6 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial9')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 10 -->
<article class="tutorial-card" data-category="advanced design">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #ef4444, #dc2626);">
β‘
<span class="tutorial-duration">22:15</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Advanced</span>
<h3>Performance Optimization</h3>
<p>Make your website lightning fast! Learn about image optimization, code minification, and loading strategies.</p>
<div class="tutorial-meta">
<span>ποΈ 7.5K views</span>
<span>π
3 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial10')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 11 -->
<article class="tutorial-card" data-category="beginner">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #8b5cf6, #7c3aed);">
π
<span class="tutorial-duration">13:40</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Beginner</span>
<h3>Creating Your First Blog Post</h3>
<p>Learn how to add news and updates to your VTC website. Perfect for keeping your community informed.</p>
<div class="tutorial-meta">
<span>ποΈ 5.8K views</span>
<span>π
1 week ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial11')">Watch Tutorial</button>
</div>
</article>
<!-- Tutorial 12 -->
<article class="tutorial-card" data-category="advanced code">
<div class="tutorial-thumbnail" style="background: linear-gradient(135deg, #a855f7, #ec4899);">
π
<span class="tutorial-duration">17:50</span>
</div>
<div class="tutorial-content">
<span class="tutorial-category">Advanced</span>
<h3>Integrating Discord & TrucksBook</h3>
<p>Connect your website with Discord servers and TrucksBook profiles. Display live stats and community information.</p>
<div class="tutorial-meta">
<span>ποΈ 9.9K views</span>
<span>π
2 days ago</span>
</div>
<button class="btn btn-primary" onclick="openVideo('tutorial12')">Watch Tutorial</button>
</div>
</article>
</div>
</div>
</section>
</main>
<!-- Video Modal -->
<div id="videoModal" class="video-modal">
<div class="video-container">
<button class="video-close" onclick="closeVideo()">β</button>
<h2 id="videoTitle" style="margin-bottom: 1rem; color: #1e293b;"></h2>
<div class="video-wrapper">
<div class="video-placeholder">
<div>
<div style="font-size: 3rem; margin-bottom: 1rem;">π¬</div>
<p>Video tutorial coming soon!</p>
<p style="font-size: 0.9rem; margin-top: 0.5rem;">Check back later for this tutorial.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="site-footer" role="contentinfo"><div class="footer-container"><div class="footer-main"><div class="footer-brand"><a href="index.html" class="footer-logo" aria-label="TruckCraft Studio Home"><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M16 2L3 9v14l13 7 13-7V9L16 2z" fill="currentColor" opacity="0.2"/><path d="M16 8l8 4.5v9L16 26l-8-4.5v-9L16 8z" fill="currentColor"/><circle cx="16" cy="16" r="3" fill="white"/></svg><span>TruckCraft Studio</span></a><p class="footer-tagline">Create stunning VTC websites with ease. Professional tools for virtual trucking companies.</p><div class="footer-socials" role="list"><a href="https://twitter.com/your-handle" class="footer-social-link" aria-label="Follow us on Twitter" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"/></svg></a><a href="https://linkedin.com/company/your-company" class="footer-social-link" aria-label="Connect on LinkedIn" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"/><circle cx="4" cy="4" r="2"/></svg></a><a href="https://github.com/Shriii19/web-maker" class="footer-social-link" aria-label="View on GitHub" target="_blank" rel="noopener noreferrer"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22"/></svg></a></div></div><nav class="footer-links"><ul class="footer-links-list"><li><a href="about.html">About Us</a></li><li><a href="features.html">Features</a></li><li><a href="pricing.html">Pricing</a></li><li><a href="contact.html">Contact</a></li></ul></nav><nav class="footer-links"><ul class="footer-links-list"><li><a href="templates.html">Templates</a></li><li><a href="pro-templates.html">Pro Templates</a></li><li><a href="create.html">Create Website</a></li></ul></nav><nav class="footer-links"><ul class="footer-links-list"><li><a href="help.html">Help Center</a></li><li><a href="documentation.html">Documentation</a></li><li><a href="tutorials.html">Tutorials</a></li></ul></nav></div><div class="footer-bottom"><p class="footer-copyright">Β© <span id="current-year">2025</span> TruckCraft Studio. All rights reserved.</p><nav aria-label="Legal"><ul class="footer-legal"><li><a href="terms.html">Terms of Service</a></li><li><a href="privacy.html">Privacy Policy</a></li></ul></nav></div></div></footer>
<link rel="stylesheet" href="assets/footer.css">
<script src="assets/scroll-animations.js"></script>
<script src="assets/global-error-handler.js"></script>
<script src="assets/main.js"></script>
<script src="assets/footer.js"></script>
<script>
// Filter functionality
const filterTabs = document.querySelectorAll('.filter-tab');
const tutorialCards = document.querySelectorAll('.tutorial-card');
filterTabs.forEach(tab => {
tab.addEventListener('click', () => {
// Update active tab
filterTabs.forEach(t => t.classList.remove('active'));
tab.classList.add('active');
const category = tab.dataset.category;
// Filter cards
tutorialCards.forEach(card => {
if (category === 'all' || card.dataset.category.includes(category)) {
card.style.display = 'flex';
} else {
card.style.display = 'none';
}
});
});
});
// Video modal
const tutorials = {
tutorial1: 'Getting Started with TruckCraft Studio',
tutorial2: 'Choosing the Right Template',
tutorial3: 'Customizing Colors and Fonts',
tutorial4: 'Adding Images and Media',
tutorial5: 'Making Your Site Mobile-Friendly',
tutorial6: 'Custom HTML & CSS Editing',
tutorial7: 'Adding Interactive Elements',
tutorial8: 'Publishing to GitHub Pages',
tutorial9: 'Adding Google Analytics',
tutorial10: 'Performance Optimization',
tutorial11: 'Creating Your First Blog Post',
tutorial12: 'Integrating Discord & TrucksBook'
};
function openVideo(tutorialId) {
const modal = document.getElementById('videoModal');
const title = document.getElementById('videoTitle');
title.textContent = tutorials[tutorialId];
modal.classList.add('active');
document.body.style.overflow = 'hidden';
}
function closeVideo() {
const modal = document.getElementById('videoModal');
modal.classList.remove('active');
document.body.style.overflow = 'auto';
}
// Close on escape key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeVideo();
}
});
// Close on backdrop click
document.getElementById('videoModal').addEventListener('click', (e) => {
if (e.target.id === 'videoModal') {
closeVideo();
}
});
// Update year
document.getElementById('current-year').textContent = new Date().getFullYear();
</script>
</body>
</html>