Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
673 lines (593 loc) · 24.4 KB
/
Copy pathindex.html
File metadata and controls
673 lines (593 loc) · 24.4 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
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Charles Silva | Consultor de TI, Redes, Design Gráfico e SEO</title>
<meta name="description" content="Consultor de TI especializado em infraestrutura de redes, design gráfico e SEO. Conheça meu trabalho e entre em contato.">
<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@400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1LYMH9M7K6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1LYMH9M7K6');
</script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #111111;
--bg-card: #1a1a1a;
--text-primary: #ededed;
--text-secondary: #a1a1a1;
--accent: #10b981;
--accent-hover: #059669;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
/* Header */
header {
padding: 24px 0;
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(10, 10, 10, 0.9);
backdrop-filter: blur(10px);
z-index: 1000;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
text-decoration: none;
}
.logo span {
color: var(--accent);
}
nav {
display: flex;
gap: 32px;
}
nav a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
nav a:hover {
color: var(--accent);
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding-top: 80px;
}
.hero-content {
max-width: 800px;
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 800;
line-height: 1.1;
margin-bottom: 24px;
}
.hero h1 .highlight {
color: var(--accent);
}
.hero-tagline {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 16px;
}
.hero-description {
font-size: 1.125rem;
color: var(--text-secondary);
margin-bottom: 40px;
max-width: 600px;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 16px 32px;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
text-decoration: none;
transition: all 0.3s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background: var(--accent);
color: var(--bg-primary);
}
.btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-2px);
}
.btn-secondary {
background: transparent;
color: var(--text-primary);
border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
border-color: var(--accent);
color: var(--accent);
}
.btn-group {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
/* Social Links */
.social-links {
display: flex;
gap: 16px;
margin-top: 48px;
}
.social-link {
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--bg-card);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
transition: all 0.3s ease;
}
.social-link:hover {
background: var(--accent);
color: var(--bg-primary);
transform: translateY(-4px);
}
.social-link svg {
width: 24px;
height: 24px;
}
/* Section */
section {
padding: 100px 0;
}
.section-header {
text-align: center;
margin-bottom: 64px;
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 16px;
}
.section-subtitle {
color: var(--text-secondary);
font-size: 1.125rem;
max-width: 600px;
margin: 0 auto;
}
/* About Section */
.about {
background: var(--bg-secondary);
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
}
.about-text h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 24px;
}
.about-text h2 span {
color: var(--accent);
}
.about-text p {
color: var(--text-secondary);
margin-bottom: 16px;
}
/* Services */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}
.service-card {
background: var(--bg-card);
padding: 32px;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.05);
transition: all 0.3s ease;
}
.service-card:hover {
border-color: var(--accent);
transform: translateY(-4px);
}
.service-icon {
width: 56px;
height: 56px;
background: rgba(16, 185, 129, 0.1);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
}
.service-icon svg {
width: 28px;
height: 28px;
color: var(--accent);
}
.service-card h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 12px;
}
.service-card p {
color: var(--text-secondary);
font-size: 0.95rem;
}
/* CTA Section */
.cta {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
border-top: 1px solid rgba(16, 185, 129, 0.2);
border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.cta-content {
text-align: center;
max-width: 700px;
margin: 0 auto;
}
.cta h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 16px;
}
.cta p {
color: var(--text-secondary);
font-size: 1.125rem;
margin-bottom: 32px;
}
/* Footer */
footer {
padding: 48px 0 24px;
background: var(--bg-secondary);
border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 24px;
margin-bottom: 32px;
}
.footer-brand {
font-size: 1.25rem;
font-weight: 700;
}
.footer-brand span {
color: var(--accent);
}
.footer-links {
display: flex;
gap: 32px;
}
.footer-links a {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: var(--accent);
}
.footer-bottom {
text-align: center;
padding-top: 24px;
border-top: 1px solid rgba(255,255,255,0.05);
color: var(--text-secondary);
font-size: 0.875rem;
}
/* Mobile Menu */
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 8px;
}
.mobile-menu-btn svg {
width: 28px;
height: 28px;
}
/* Responsive */
@media (max-width: 768px) {
nav {
display: none;
}
.mobile-menu-btn {
display: block;
}
.hero h1 {
font-size: 2.5rem;
}
.about-content {
grid-template-columns: 1fr;
}
.btn-group {
flex-direction: column;
}
.btn {
width: 100%;
justify-content: center;
}
.footer-content {
flex-direction: column;
text-align: center;
}
.section-title {
font-size: 2rem;
}
.cta h2 {
font-size: 1.75rem;
}
}
@media (max-width: 480px) {
.container {
padding: 0 16px;
}
.social-links {
justify-content: center;
}
}
</style>
</head>
<body>
<!-- Header -->
<header>
<div class="container">
<a href="#" class="logo">Charles Silva<span>.</span></a>
<nav>
<a href="#sobre">Sobre</a>
<a href="#servicos">Serviços</a>
<a href="#contato">Contato</a>
</nav>
<button class="mobile-menu-btn" aria-label="Menu">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>
Transformando ideias em<br>
<span class="highlight">soluções digitais</span>
</h1>
<p class="hero-tagline">Consultor de TI | Redes | Design Gráfico | SEO</p>
<p class="hero-description">
Especialista em infraestrutura de redes, consultoria tecnológica, design gráfico e estratégias de SEO. Ajudo empresas a alcançar seus objetivos com tecnologia e criatividade.
</p>
<div class="btn-group">
<a href="https://www.rootsys.com.br" target="_blank" rel="noopener" class="btn btn-primary">
Conheça a RootSys
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</a>
<a href="#contato" class="btn btn-secondary">Entre em Contato</a>
</div>
<div class="social-links">
<a href="https://linkedin.com/in/charlessilva-br" target="_blank" rel="noopener" class="social-link" aria-label="LinkedIn">
<svg fill="currentColor" viewBox="0 0 24 24">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
</svg>
</a>
<a href="https://github.com/silvacharles" target="_blank" rel="noopener" class="social-link" aria-label="GitHub">
<svg fill="currentColor" 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>
</a>
<a href="https://instagram.com/charlessilva" target="_blank" rel="noopener" class="social-link" aria-label="Instagram">
<svg fill="currentColor" viewBox="0 0 24 24">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="sobre" class="about">
<div class="container">
<div class="about-content">
<div class="about-text">
<h2>Olá, sou <span>Charles Silva</span></h2>
<p>
Com anos de experiência no mercado de tecnologia, desenvolvo soluções completas que combinam infraestrutura robusta, design impactante e visibilidade digital.
</p>
<p>
Minha missão é ajudar empresas a se transformarem digitalmente, oferecendo serviços de consultoria de TI, implantação e manutenção de redes, design gráfico profissional e estratégias de SEO que geram resultados reais.
</p>
<p>
Através da RootSys, minha empresa, ofereço soluções personalizadas para cada cliente, sempre com foco em qualidade, inovação e atendimento excepcional.
</p>
</div>
<div class="about-stats">
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;">
<div style="background: var(--bg-card); padding: 32px; border-radius: 16px; text-align: center;">
<div style="font-size: 3rem; font-weight: 800; color: var(--accent);">10+</div>
<div style="color: var(--text-secondary);">Anos de Experiência</div>
</div>
<div style="background: var(--bg-card); padding: 32px; border-radius: 16px; text-align: center;">
<div style="font-size: 3rem; font-weight: 800; color: var(--accent);">50+</div>
<div style="color: var(--text-secondary);">Projetos Realizados</div>
</div>
<div style="background: var(--bg-card); padding: 32px; border-radius: 16px; text-align: center;">
<div style="font-size: 3rem; font-weight: 800; color: var(--accent);">30+</div>
<div style="color: var(--text-secondary);">Clientes Satisfeitos</div>
</div>
<div style="background: var(--bg-card); padding: 32px; border-radius: 16px; text-align: center;">
<div style="font-size: 3rem; font-weight: 800; color: var(--accent);">100%</div>
<div style="color: var(--text-secondary);">Compromisso</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section id="servicos">
<div class="container">
<div class="section-header">
<h2 class="section-title">Serviços</h2>
<p class="section-subtitle">
Soluções completas em tecnologia para impulsionar seu negócio
</p>
</div>
<div class="services-grid">
<!-- Consultoria de TI -->
<div class="service-card">
<div class="service-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
</svg>
</div>
<h3>Consultoria de TI</h3>
<p>Assessoria especializada para otimizar sua infraestrutura tecnológica, reduzir custos e implementar as melhores práticas do mercado.</p>
</div>
<!-- Infraestrutura de Redes -->
<div class="service-card">
<div class="service-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.14 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"/>
</svg>
</div>
<h3>Infraestrutura de Redes</h3>
<p>Projetamos e implementamos redes seguras e eficientes, desde pequenas redes até infraestruturas corporativas completas.</p>
</div>
<!-- Design Gráfico -->
<div class="service-card">
<div class="service-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/>
</svg>
</div>
<h3>Design Gráfico</h3>
<p>Criação de identidades visuais, materiais gráficos, logotipos e peças de comunicação que destacaram sua marca no mercado.</p>
</div>
<!-- SEO -->
<div class="service-card">
<div class="service-icon">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
</svg>
</div>
<h3>SEO - Otimização para Buscas</h3>
<p>Estratégias de otimização para mecanismos de busca que melhoram seu posicionamento no Google e atraem mais visitantes qualificados.</p>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section id="contato" class="cta">
<div class="container">
<div class="cta-content">
<h2>Pronto para transformar seu negócio?</h2>
<p>
Vamos discutir como posso ajudar sua empresa a alcançar seus objetivos com tecnologia e inovação.
</p>
<div class="btn-group" style="justify-content: center;">
<a href="https://www.rootsys.com.br" target="_blank" rel="noopener" class="btn btn-primary">
Visite a RootSys
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</a>
<a href="https://www.linkedin.com/in/charlessilva-br/" target="_blank" rel="noopener" class="btn btn-secondary">
Fale pelo LinkedIn
</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-brand">Charles<span>.</span>Silva</div>
<div class="footer-links">
<a href="#sobre">Sobre</a>
<a href="#servicos">Serviços</a>
<a href="https://www.rootsys.com.br" target="_blank" rel="noopener">RootSys</a>
</div>
</div>
<div class="footer-bottom">
<p>© 2026 Charles Silva. Todos os direitos reservados.</p>
</div>
</div>
</footer>
<!-- Mobile Menu Script -->
<script>
const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
const nav = document.querySelector('nav');
mobileMenuBtn.addEventListener('click', () => {
if (nav.style.display === 'flex') {
nav.style.display = 'none';
} else {
nav.style.display = 'flex';
nav.style.flexDirection = 'column';
nav.style.position = 'absolute';
nav.style.top = '100%';
nav.style.left = '0';
nav.style.right = '0';
nav.style.background = 'rgba(10, 10, 10, 0.98)';
nav.style.padding = '24px';
nav.style.gap = '16px';
}
});
// Close mobile menu when clicking a link
nav.querySelectorAll('a').forEach(link => {
link.addEventListener('click', () => {
nav.style.display = 'none';
});
});
</script>
</body>
</html>