-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
837 lines (745 loc) · 36.2 KB
/
index.html
File metadata and controls
837 lines (745 loc) · 36.2 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
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodeImag.in - Base de Conhecimento Dev</title>
<meta name="description"
content="Busque rapidamente documentação, exemplos de código e conceitos fundamentais de diversas linguagens e tecnologias. Sua base de conhecimento dev rápida e intuitiva.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://henriquesilva.dev/imersao-dev-2025/aula-2/">
<meta property="og:title" content="CodeImag.in - Base de Conhecimento Dev">
<meta property="og:description"
content="Busque rapidamente documentação, exemplos de código e conceitos fundamentais de diversas linguagens e tecnologias.">
<meta property="og:image" content="https://henriquesilva.dev/imersao-dev-2025/aula-2/assets/images/imersao-bg.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://henriquesilva.dev/imersao-dev-2025/aula-2/">
<meta property="twitter:title" content="CodeImag.in - Base de Conhecimento Dev">
<meta property="twitter:description"
content="Busque rapidamente documentação, exemplos de código e conceitos fundamentais de diversas linguagens e tecnologias.">
<meta property="twitter:image"
content="https://henriquesilva.dev/imersao-dev-2025/aula-2/assets/images/imersao-bg.png">
<!-- Performance: Preconnect -->
<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=Roboto:wght@400;500;700&family=Inter:wght@400;500;700&display=swap"
rel="stylesheet">
<!-- Cor da barra do navegador / splash -->
<meta name="theme-color" content="#242614">
<!-- Manifest PWA -->
<link rel="manifest" href="/manifest.json">
<!-- Stylesheets -->
<link rel="stylesheet" href="assets/stylesheet/styles.css">
<link rel="stylesheet" href="assets/stylesheet/themes.css">
<link rel="stylesheet" href="assets/stylesheet/stats.css">
<link rel="stylesheet" href="assets/stylesheet/github-corner.css">
<link rel="stylesheet" href="assets/stylesheet/chatbot.css">
<link rel="stylesheet" href="assets/stylesheet/auth.css">
<link rel="stylesheet" href="assets/stylesheet/benchmark.css">
<!-- Google Sign-In -->
<script src="https://accounts.google.com/gsi/client" async></script>
<!-- Ícone padrão -->
<link rel="icon" href="assets/images/icon-192.png" sizes="192x192" type="image/png">
<!-- iOS / Safari -->
<link rel="apple-touch-icon" href="assets/images/icon-192.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Base de Conhecimento">
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/icon-192.png" type="image/png">
<link rel="stylesheet" href="assets/stylesheet/styles.css">
</head>
<body>
<!-- GitHub Corner Ribbon -->
<a href="https://github.com/henriquesilvadev/codeimagin" target="_blank" rel="noopener noreferrer"
class="github-corner" aria-label="View source on GitHub">
<svg width="80" height="80" viewBox="0 0 250 250"
style="fill:#822B8C; color:#fff; position: fixed; top: 0; border: 0; right: 0; z-index: 9999;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
<nav class="navbar">
<div class="navbar-content">
<div class="navbar-brand">
<h1 class="navbar-logo">CodeImag.in</h1>
</div>
<div class="navbar-links">
<a href="#hero" class="navbar-link">Início</a>
<a href="#about" class="navbar-link">Sobre</a>
<div id="authContainer"></div>
</div>
</div>
</nav>
<header>
<div class="search-bar">
<input type="text" placeholder="Digite uma linguagem de programação">
<button>Buscar</button>
</div>
</header>
<main>
<!-- HERO -->
<article id="hero" class="content-item hero hero-layout" id="initial-content">
<div class="hero-copy">
<p class="hero-kicker">
Projeto demo · Imersão Dev com Google Gemini · 10ª Edição
</p>
<h2 id="about-codeimagin-title">Bem-vindo ao <span>CodeImag.in</span>!</h2>
<p class="hero-lead">
<strong>Explore facilmente</strong> qualquer linguagem ou tecnologia de programação.<br />
Digite seu termo na barra de busca acima e pressione <b>Enter</b> ou clique em <b>Buscar</b>.<br />
Ou, se preferir, <b>escolha</b> uma das tecnologias mais populares logo abaixo para começar.
</p>
</div>
<div class="hero-video-wrapper">
<video class="hero-video" autoplay muted playsinline>
<source src="assets/movies/hero.mp4" type="video/mp4">
Seu navegador não suporta o elemento de vídeo.
</video>
</div>
</article>
<br /><br />
<!-- TAGS DE TECNOLOGIA -->
<div class="language-tags" aria-label="Acessos rápidos">
<!-- Botões pré-carregados via script.js -->
</div>
<!-- Recommended Books Carousel -->
<section class="books-section" aria-label="Livros Recomendados">
<div id="booksCarousel" class="books-carousel"></div>
</section>
<script src="assets/javascript/books-carousel.js"></script>
<br /><br />
<!-- Tech Creators Map -->
<section class="map-section" aria-label="Mapa de Criadores">
<p class="section-subtitle">Onde nasceram as grandes ideias: Criadores pelo mundo</p>
<div class="map-controls">
<div class="map-search-container">
<input type="text" id="mapSearchInput" class="map-search-input"
placeholder="Buscar criador, linguagem ou país...">
<svg class="map-search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</div>
</div>
<div class="map-wrapper">
<div id="creatorsMap" class="creators-map"></div>
</div>
<!-- Google Maps & Custom Scripts -->
<link rel="stylesheet" href="assets/stylesheet/creators-map.css">
<script src="assets/javascript/creators-data.js"></script>
<script src="assets/javascript/creators-map.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAd9n7kP37PaWq8m3KtFk57EkyQSXTBeuY&callback=initMap">
</script>
</section>
<br /><br />
<!-- Programming Language Benchmark -->
<section class="benchmark-section" aria-label="Benchmark de Linguagens de Programação">
<div class="benchmark-container">
<div class="benchmark-header">
<h2 class="benchmark-title">Evolução das Linguagens</h2>
<p class="benchmark-subtitle">Análise temporal da popularidade (2020-2025)</p>
</div>
<div class="benchmark-dashboard">
<div class="benchmark-sidebar">
<h3 class="sidebar-title">Linguagens</h3>
<div id="benchmarkSidebarList" class="sidebar-list">
<!-- List items generated by JS -->
</div>
</div>
<div class="benchmark-chart-wrapper">
<div id="benchmarkChart">
<!-- Line chart will be dynamically generated here -->
</div>
</div>
</div>
</div>
</section>
<!-- SEÇÃO: ESTATÍSTICAS DO PROJETO -->
<section class="stats-section" aria-label="Estatísticas do Projeto">
<div class="stats-container">
<div class="stat-card">
<div class="stat-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
</div>
<div class="stat-number" data-target="48">0</div>
<div class="stat-label">Horas de Código</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path>
<path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path>
<line x1="6" y1="1" x2="6" y2="4"></line>
<line x1="10" y1="1" x2="10" y2="4"></line>
<line x1="14" y1="1" x2="14" y2="4"></line>
</svg>
</div>
<div class="stat-number" data-target="53">0</div>
<div class="stat-label">Xícaras de Café</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
</svg>
</div>
<div class="stat-number" data-target="8928">0</div>
<div class="stat-label">Linhas de Código</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<line x1="3" y1="12" x2="9" y2="12"></line>
<line x1="15" y1="12" x2="21" y2="12"></line>
</svg>
</div>
<div class="stat-number" data-target="203">0</div>
<div class="stat-label">Commits</div>
</div>
</div>
</section>
<br /><br />
<!-- SEÇÃO: DE ONDE NASCEU <!-- About Section -->
<section id="about" class="hero-section" aria-labelledby="about-codeimagin-title">
<div class="hero-inner">
<!-- Bloco da imagem / arte -->
<div class="hero-media">
<div class="hero-image-frame">
<a href="https://www.alura.com.br/imersao-dev-google?srsltid=AfmBOooztTU39NUj2O7qlqw4D2LKrfwTDV13x5GbGgrZ5PFF8w58L1KD"
class="sr-only-focusable" target="_blank">
<img src="assets/images/imersao-bg.png" alt="Arte do CodeImag.in e Imersão Dev com Google Gemini"
class="hero-image" loading="lazy" />
</a>
</div>
</div>
<!-- Bloco de texto tipo revista -->
<div class="hero-copy">
<p class="hero-kicker">
Projeto demo · Imersão Dev com Google Gemini · 10ª Edição
</p>
<h2 id="about-codeimagin-title">De onde nasceu o CodeImag.in?</h2>
<p class="hero-lead">
O <strong>CodeImag.in</strong> nasceu como um projeto demo criado para a
<strong>Imersão Dev com Google Gemini – 10ª Edição</strong>, unindo
experimentação em front-end, consumo de APIs e o poder da IA generativa.
</p>
<p>
A proposta é oferecer um ambiente rápido e intuitivo, onde você encontra
exemplos de código, documentação oficial e conceitos fundamentais de
diversas tecnologias em um só lugar — com uma interface inspirada em
ferramentas profissionais de estudo, referência e prática contínua.
</p>
<!-- Substack CTA -->
<div class="substack-cta">
<div class="substack-icon">
<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
<path d="M764.166 348.371H236.319V419.402H764.166V348.371Z" fill="currentColor" />
<path d="M236.319 483.752V813.999L500.231 646.248L764.166 813.999V483.752H236.319Z"
fill="currentColor" />
<path d="M764.166 213H236.319V284.031H764.166V213Z" fill="currentColor" />
</svg>
</div>
<div class="substack-text">
<p class="substack-title">Quer saber mais sobre minha jornada?</p>
<p class="substack-description">
Saiba como foi minha semana de imersão e acompanhe outros projetos no meu Substack
</p>
</div>
<a href="https://henriquesilva.substack.com" target="_blank" rel="noopener noreferrer"
class="substack-button">
Visitar Substack
<span class="arrow">→</span>
</a>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="footer-container">
<!-- Main Footer Content -->
<div class="footer-main">
<!-- Brand -->
<div class="footer-brand">
<h3 class="footer-logo">CodeImag.in</h3>
<p class="footer-description">
Plataforma educacional para aprender programação de forma visual e interativa.
</p>
</div>
<!-- Navigation Grid -->
<div class="footer-nav">
<div class="footer-column">
<h4>Navegação</h4>
<ul>
<li><a href="#hero">Início</a></li>
<li><a href="#about">Sobre</a></li>
<li><a href="#books">Livros</a></li>
<li><a href="#map">Universidades</a></li>
</ul>
</div>
<div class="footer-column">
<h4>Recursos</h4>
<ul>
<li><a href="https://cursos.alura.com.br/imersao" target="_blank" rel="noopener">Imersão Dev</a></li>
<li><a href="https://www.alura.com.br/" target="_blank" rel="noopener">Alura</a></li>
<li><a href="https://developer.mozilla.org/" target="_blank" rel="noopener">MDN Docs</a></li>
</ul>
</div>
<div class="footer-column">
<h4>Conecte-se</h4>
<ul>
<li><a href="https://github.com/henriquehsilva" target="_blank" rel="noopener">GitHub</a></li>
<li><a href="https://www.linkedin.com/in/henriquesilvadev/" target="_blank" rel="noopener">LinkedIn</a>
</li>
<li><a href="https://henriquesilva.dev/" target="_blank" rel="noopener">Portfolio</a></li>
</ul>
</div>
</div>
</div>
<!-- Footer Bottom -->
<div class="footer-bottom">
<p class="footer-copy">© 2025 CodeImag.in</p>
<p class="footer-dev">
Feito com <span class="heart">💜</span> por
<a href="https://henriquesilva.dev/" target="_blank" rel="noopener">Henrique Silva</a>
</p>
<p class="footer-note">Aplicação demo • Dados locais</p>
</div>
</div>
</footer>
<!-- Floating Actions Group (iPhone Style) -->
<div class="floating-actions">
<button class="floating-btn" id="codeEditorFab" aria-label="Abrir Editor de Código" title="Code Editor">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 6L4 10L8 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M16 6L20 10L16 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M12 4L10 20" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</button>
<button class="floating-btn" id="codeDojoToggle" aria-label="Abrir Code Dojo" title="Code Dojo">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</button>
</div>
<!-- Code Dojo Sidebar -->
<aside class="codedojo-sidebar" id="codeDojoSidebar">
<div class="sidebar-header">
<div class="sidebar-title">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="dojo-icon">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
<h3>Code Dojo</h3>
</div>
<button class="sidebar-close" id="sidebarClose" aria-label="Fechar Sidebar">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</button>
</div>
<div class="sidebar-content">
<!-- What is Code Dojo -->
<section class="dojo-section">
<h4 class="section-title">O que é Code Dojo?</h4>
<p class="section-description">
Code Dojo é uma prática colaborativa onde desenvolvedores se reúnem para resolver
desafios de programação (katas) em conjunto, focando em aprendizado e melhoria contínua.
</p>
<p class="section-description">
É um ambiente seguro para experimentar, errar e aprender com outros desenvolvedores,
praticando TDD, pair programming e outras técnicas ágeis.
</p>
</section>
<section class="dojo-section">
<a href="https://codingdojo.org" target="_blank" rel="noopener noreferrer" class="dojo-link-card">
<div class="link-icon">🥋</div>
<div class="link-content">
<h5>Visite CodingDojo.org</h5>
<p>Explore mais katas e recursos para praticar</p>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="link-arrow">
<path d="M5 12h14M12 5l7 7-7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</a>
</section>
<!-- Katas List -->
<section class="dojo-section">
<h4 class="section-title">Katas Populares</h4>
<p class="section-subtitle">Pratique com estes desafios clássicos:</p>
<ul class="kata-list">
<li class="kata-item">
<a href="https://codingdojo.org/kata/christmas-delivery" target="_blank" rel="noopener noreferrer"
class="kata-link">
<span class="kata-icon">🎄</span>
<div class="kata-info">
<span class="kata-name">Christmas Delivery</span>
<span class="kata-desc">Otimize entregas de Natal</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
<li class="kata-item">
<a href="https://codingdojo.org/kata/FizzBuzz" target="_blank" rel="noopener noreferrer" class="kata-link">
<span class="kata-icon">🔢</span>
<div class="kata-info">
<span class="kata-name">FizzBuzz</span>
<span class="kata-desc">Clássico de entrevistas</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
<li class="kata-item">
<a href="https://codingdojo.org/kata/RomanNumerals" target="_blank" rel="noopener noreferrer"
class="kata-link">
<span class="kata-icon">🏛️</span>
<div class="kata-info">
<span class="kata-name">Roman Numerals</span>
<span class="kata-desc">Conversão de números romanos</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
<li class="kata-item">
<a href="https://codingdojo.org/kata/GildedRose" target="_blank" rel="noopener noreferrer"
class="kata-link">
<span class="kata-icon">🌹</span>
<div class="kata-info">
<span class="kata-name">Gilded Rose</span>
<span class="kata-desc">Refatoração de código legado</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
<li class="kata-item">
<a href="https://codingdojo.org/kata/StringCalculator" target="_blank" rel="noopener noreferrer"
class="kata-link">
<span class="kata-icon">🧮</span>
<div class="kata-info">
<span class="kata-name">String Calculator</span>
<span class="kata-desc">Calculadora de strings</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
<li class="kata-item">
<a href="https://codingdojo.org/kata/Tennis" target="_blank" rel="noopener noreferrer" class="kata-link">
<span class="kata-icon">🎾</span>
<div class="kata-info">
<span class="kata-name">Tennis Game</span>
<span class="kata-desc">Sistema de pontuação de tênis</span>
</div>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="external-icon">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</a>
</li>
</ul>
</section>
<!-- Footer Note -->
<div class="sidebar-footer">
<p>💡 Pratique regularmente para melhorar suas habilidades!</p>
</div>
</div>
</aside>
<!-- Code Editor Modal -->
<div class="code-editor-modal hidden" id="codeEditorModal">
<div class="code-editor-overlay"></div>
<div class="code-editor-container">
<!-- Header -->
<div class="code-editor-header">
<div class="code-editor-title">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="code-icon">
<path d="M8 6L4 10L8 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M16 6L20 10L16 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
<path d="M12 4L10 20" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
<h3>CodeX - Editor Interativo</h3>
</div>
<button class="code-editor-close" id="codeEditorClose" aria-label="Fechar Editor">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</button>
</div>
<!-- Split Panes -->
<div class="code-editor-panes">
<!-- Editor Pane -->
<div class="code-editor-pane editor-pane">
<div class="pane-header">
<span class="pane-title">Editor</span>
<span class="pane-hint">Ctrl+Enter para executar</span>
</div>
<div class="code-editor-wrapper">
<div class="line-numbers" id="lineNumbers"></div>
<textarea class="code-editor-textarea" id="codeEditorTextarea" spellcheck="false"
placeholder="// Digite seu código JavaScript aqui... console.log('Hello, World!');"></textarea>
</div>
</div>
<!-- Output Pane -->
<div class="code-editor-pane output-pane">
<div class="pane-header">
<span class="pane-title">Console</span>
<button class="clear-console-btn" id="clearConsoleBtn" title="Limpar Console">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 6h18M8 6V4a1 1 0 011-1h6a1 1 0 011 1v2m3 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6h14z"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
</button>
</div>
<div class="code-editor-output" id="codeEditorOutput">
<div class="output-welcome">
<p>👋 Bem-vindo ao CodeX!</p>
<p>Execute seu código JavaScript e veja os resultados aqui.</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="code-editor-footer">
<button class="code-editor-btn run-btn" id="runCodeBtn">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5 3l14 9-14 9V3z" fill="currentColor" />
</svg>
Executar Código
</button>
<button class="code-editor-btn clear-btn" id="clearCodeBtn">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 6h18M8 6V4a1 1 0 011-1h6a1 1 0 011 1v2m3 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6h14z"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Limpar Editor
</button>
</div>
</div>
</div>
<!-- Authentication Modals -->
<!-- Signup Modal -->
<div class="auth-modal" id="signupModal">
<div class="modal-overlay"></div>
<div class="modal-content">
<button class="modal-close" aria-label="Fechar">×</button>
<div class="modal-header">
<h2>Criar Conta</h2>
<p>Junte-se à comunidade CodeImag.in</p>
</div>
<div class="privacy-disclaimer">
<strong>⚠️ AVISO DE PRIVACIDADE</strong>
Seus dados são armazenados APENAS no seu navegador (localStorage).
Não enviamos nenhuma informação para servidores externos.
Esta é uma aplicação demo para fins educacionais.
</div>
<form class="auth-form" id="signupForm">
<div class="form-group">
<label for="signupName">Nome Completo</label>
<input type="text" id="signupName" name="name" required placeholder="Seu nome">
</div>
<div class="form-group">
<label for="signupEmail">Email</label>
<input type="email" id="signupEmail" name="email" required placeholder="seu@email.com">
</div>
<div class="form-group">
<label for="signupPassword">Senha</label>
<input type="password" id="signupPassword" name="password" required placeholder="Mínimo 6 caracteres"
minlength="6">
</div>
<div class="form-group">
<label>Foto de Perfil (opcional)</label>
<div class="photo-upload-container">
<div class="photo-upload-btn">
<input type="file" id="photoUpload" accept="image/*">
<label for="photoUpload" class="photo-upload-label">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<circle cx="8.5" cy="8.5" r="1.5" />
<polyline points="21 15 16 10 5 21" />
</svg>
Escolher foto
</label>
</div>
<div class="photo-preview"></div>
</div>
<small style="color: var(--text-secondary); font-size: 0.8rem;">
Sem foto? Vamos gerar um emoji divertido para você! 😊
</small>
</div>
<button type="submit" class="submit-btn">Criar Conta</button>
<div class="auth-divider">
<span>ou</span>
</div>
<button type="button" class="google-btn" id="googleSignupBtn">
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path
d="M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z"
fill="#4285F4" />
<path
d="M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.837.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.438 15.983 5.482 18 9.003 18z"
fill="#34A853" />
<path
d="M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z"
fill="#FBBC05" />
<path
d="M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.426 0 9.003 0 5.482 0 2.438 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z"
fill="#EA4335" />
</svg>
Continuar com Google
</button>
</form>
<div class="auth-switch">
Já tem uma conta? <a href="#"
onclick="document.getElementById('signupModal').classList.remove('show'); document.getElementById('signinModal').classList.add('show'); return false;">Entrar</a>
</div>
</div>
</div>
<!-- Signin Modal -->
<div class="auth-modal" id="signinModal">
<div class="modal-overlay"></div>
<div class="modal-content">
<button class="modal-close" aria-label="Fechar">×</button>
<div class="modal-header">
<h2>Entrar</h2>
<p>Bem-vindo de volta!</p>
</div>
<div class="privacy-disclaimer">
<strong>⚠️ AVISO DE PRIVACIDADE</strong>
Seus dados estão armazenados localmente no seu navegador.
Nenhuma informação é enviada para servidores externos.
Esta é uma aplicação demo para fins educacionais.
</div>
<form class="auth-form" id="signinForm">
<div class="form-group">
<label for="signinEmail">Email</label>
<input type="email" id="signinEmail" name="email" required placeholder="seu@email.com">
</div>
<div class="form-group">
<label for="signinPassword">Senha</label>
<input type="password" id="signinPassword" name="password" required placeholder="Sua senha">
</div>
<button type="submit" class="submit-btn">Entrar</button>
<div class="auth-divider">
<span>ou</span>
</div>
<button type="button" class="google-btn" id="googleSigninBtn">
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path
d="M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z"
fill="#4285F4" />
<path
d="M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.837.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.438 15.983 5.482 18 9.003 18z"
fill="#34A853" />
<path
d="M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z"
fill="#FBBC05" />
<path
d="M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.426 0 9.003 0 5.482 0 2.438 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z"
fill="#EA4335" />
</svg>
Continuar com Google
</button>
</form>
<div class="auth-switch">
Não tem uma conta? <a href="#"
onclick="document.getElementById('signinModal').classList.remove('show'); document.getElementById('signupModal').classList.add('show'); return false;">Criar
conta</a>
</div>
</div>
</div>
<!-- Scripts -->
<script src="assets/javascript/emoji-avatar.js"></script>
<script src="assets/javascript/auth.js"></script>
<script src="assets/javascript/script.js"></script>
<script src="assets/javascript/stats-counter.js"></script>
<script src="assets/javascript/config.js"></script>
<script src="assets/javascript/chatbot.js"></script>
<script src="assets/javascript/theme-switcher.js"></script>
<script src="assets/javascript/effects.js"></script>
<script src="assets/javascript/video-transition.js"></script>
<script src="assets/javascript/code-editor.js"></script>
<script src="assets/data/benchmark-data.js"></script>
<script src="assets/javascript/benchmark-chart.js"></script>
<script>
// Code Dojo Sidebar Toggle
(function () {
const toggle = document.getElementById('codeDojoToggle');
const sidebar = document.getElementById('codeDojoSidebar');
const closeBtn = document.getElementById('sidebarClose');
if (toggle && sidebar && closeBtn) {
toggle.addEventListener('click', () => {
sidebar.classList.add('active');
});
closeBtn.addEventListener('click', () => {
sidebar.classList.remove('active');
});
// Close on Escape key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && sidebar.classList.contains('active')) {
sidebar.classList.remove('active');
}
});
}
})();
</script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker
.register('/sw.js')
.then(reg => console.log('Service Worker registrado:', reg.scope))
.catch(err => console.error('Erro ao registrar SW:', err));
});
}
</script>
<script src="assets/javascript/cookies.js"></script>
</body>
</html>