-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroadmap-visualizer.html
More file actions
769 lines (662 loc) · 25.7 KB
/
Copy pathroadmap-visualizer.html
File metadata and controls
769 lines (662 loc) · 25.7 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flutter/Vue/Node: Semi-Senior → Senior Roadmap</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
header {
background: white;
border-radius: 12px;
padding: 40px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
text-align: center;
}
header h1 {
color: #667eea;
font-size: 2.5em;
margin-bottom: 10px;
}
header p {
color: #666;
font-size: 1.1em;
margin-bottom: 20px;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-top: 30px;
}
.stat {
background: #f5f7fa;
padding: 15px;
border-radius: 8px;
text-align: center;
}
.stat-value {
font-size: 1.8em;
font-weight: bold;
color: #667eea;
}
.stat-label {
color: #666;
font-size: 0.9em;
margin-top: 5px;
}
.progress-bar-container {
background: white;
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-weight: 600;
}
.progress-bar {
width: 100%;
height: 20px;
background: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea, #764ba2);
transition: width 0.3s ease;
border-radius: 10px;
}
.phases-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
margin-bottom: 40px;
}
.phase-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.phase-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.phase-card.expanded {
grid-column: 1 / -1;
}
.phase-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.phase-card.blue .phase-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.phase-card.teal .phase-header {
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.phase-card.amber .phase-header {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.phase-card.purple .phase-header {
background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}
.phase-title {
font-size: 1.3em;
font-weight: 600;
}
.phase-subtitle {
font-size: 0.85em;
opacity: 0.9;
margin-top: 5px;
}
.phase-duration {
background: rgba(255,255,255,0.3);
padding: 5px 12px;
border-radius: 20px;
font-size: 0.85em;
white-space: nowrap;
}
.phase-body {
padding: 20px;
display: none;
max-height: 500px;
overflow-y: auto;
}
.phase-card.expanded .phase-body {
display: block;
}
.topics-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.topic-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 10px;
background: #f9fafb;
border-radius: 6px;
transition: background 0.2s;
}
.topic-item:hover {
background: #f3f4f6;
}
.topic-item.completed {
opacity: 0.6;
}
.topic-item.completed .topic-text {
text-decoration: line-through;
color: #999;
}
.topic-checkbox {
width: 20px;
height: 20px;
margin-top: 2px;
cursor: pointer;
flex-shrink: 0;
accent-color: #667eea;
}
.topic-text {
flex: 1;
line-height: 1.4;
}
.topic-title {
font-weight: 600;
color: #333;
margin-bottom: 4px;
}
.topic-description {
font-size: 0.85em;
color: #666;
}
.phase-progress {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #e5e7eb;
font-size: 0.85em;
color: #666;
}
.controls {
display: flex;
gap: 10px;
justify-content: center;
margin-bottom: 30px;
flex-wrap: wrap;
}
button {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-size: 0.95em;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: white;
color: #667eea;
border: 2px solid #667eea;
}
.btn-secondary:hover {
background: #f0f4ff;
}
.btn-danger {
background: #ef4444;
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.checklist {
background: white;
border-radius: 12px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.checklist h2 {
color: #667eea;
margin-bottom: 20px;
font-size: 1.5em;
}
.checklist-items {
display: grid;
gap: 12px;
}
.checklist-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background: #f9fafb;
border-radius: 6px;
}
.checklist-item input {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: #667eea;
}
.checklist-item.completed label {
text-decoration: line-through;
color: #999;
}
.checklist-item label {
cursor: pointer;
flex: 1;
margin: 0;
}
footer {
background: white;
border-radius: 12px;
padding: 30px;
text-align: center;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.toggle-icon {
font-size: 1.2em;
transition: transform 0.3s;
}
.phase-card.expanded .toggle-icon {
transform: rotate(180deg);
}
.phase-info {
flex: 1;
}
.phase-progress-circle {
background: rgba(255,255,255,0.3);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 0.9em;
}
@media (max-width: 768px) {
header h1 {
font-size: 1.8em;
}
.phases-grid {
grid-template-columns: 1fr;
}
.phase-card.expanded {
grid-column: 1;
}
.stats {
grid-template-columns: repeat(2, 1fr);
}
}
.expand-all-btn {
display: flex;
gap: 10px;
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<header>
<h1>🚀 Flutter/Vue/Node: Semi-Senior → Senior</h1>
<p>18-month roadmap to reach Senior Developer level</p>
<div class="stats">
<div class="stat">
<div class="stat-value">18</div>
<div class="stat-label">Meses</div>
</div>
<div class="stat">
<div class="stat-value">72</div>
<div class="stat-label">Semanas</div>
</div>
<div class="stat">
<div class="stat-value">4</div>
<div class="stat-label">Fases</div>
</div>
<div class="stat">
<div class="stat-value">10-12h</div>
<div class="stat-label">Por Semana</div>
</div>
</div>
</header>
<!-- Progress Bar -->
<div class="progress-bar-container">
<div class="progress-label">
<span>Progreso General</span>
<span id="progressPercent">0%</span>
</div>
<div class="progress-bar">
<div class="progress-fill" id="progressFill" style="width: 0%"></div>
</div>
<div style="margin-top: 10px; text-align: right; font-size: 0.9em; color: #666;">
<span id="completedCount">0</span> / <span id="totalCount">0</span> completados
</div>
</div>
<!-- Controls -->
<div class="controls">
<button class="btn-primary" onclick="expandAllPhases()">📖 Expandir Todo</button>
<button class="btn-secondary" onclick="collapseAllPhases()">📁 Colapsar Todo</button>
<button class="btn-secondary" onclick="downloadProgress()">📥 Descargar Progreso</button>
<button class="btn-danger" onclick="resetProgress()">🔄 Resetear</button>
</div>
<!-- Phases Grid -->
<div class="phases-grid" id="phasesContainer"></div>
<!-- Final Checklist -->
<div class="checklist">
<h2>✅ Eres Senior Cuando...</h2>
<div class="checklist-items" id="finalChecklistContainer"></div>
</div>
<!-- Footer -->
<footer>
<p>💡 <strong>Tip:</strong> Descarga tu progreso regularmente. Usa este roadmap como tu guía durante los próximos 18 meses.</p>
<p style="margin-top: 15px; color: #999; font-size: 0.9em;">Roadmap personalizado para Flutter, Vue.js y Node.js developers</p>
</footer>
</div>
<script>
// Data
const roadmapData = {
phases: [
{
id: 'phase1',
title: 'Solid Foundations',
duration: '4 meses (Semanas 1-16)',
description: 'Llena gaps teóricos de CS, domina estructuras de datos y algoritmos',
color: 'blue',
topics: [
{ id: 't1-1', title: 'Algoritmos & Big O', desc: 'Complejidad de tiempo/espacio' },
{ id: 't1-2', title: 'Data Structures Fundamentales', desc: 'Arrays, Linked Lists, Stacks, Queues' },
{ id: 't1-3', title: 'Advanced Data Structures', desc: 'HashMaps, Trees, Graph' },
{ id: 't1-4', title: 'Sorting Algorithms', desc: 'Merge Sort, Quick Sort, Heap Sort' },
{ id: 't1-5', title: 'Graph Search & DP', desc: 'BFS, DFS, Dynamic Programming' },
{ id: 't1-6', title: 'LeetCode Sprint', desc: '10 problemas medianos' },
{ id: 't1-7', title: 'Testing & Code Quality', desc: 'Jest, unit tests, coverage' },
{ id: 't1-8', title: 'Capstone Phase 1', desc: 'Task Manager con Data Structures' }
]
},
{
id: 'phase2',
title: 'Architecture & Design',
duration: '4 meses (Semanas 17-32)',
description: 'Escribe código escalable siguiendo SOLID y design patterns',
color: 'teal',
topics: [
{ id: 't2-1', title: 'SOLID Principles', desc: 'Todos los 5 principios en profundidad' },
{ id: 't2-2', title: 'Creational Patterns', desc: 'Factory, Builder, Singleton' },
{ id: 't2-3', title: 'Structural Patterns', desc: 'Adapter, Decorator, Facade, Proxy' },
{ id: 't2-4', title: 'Behavioral Patterns', desc: 'Observer, Strategy, State, Command' },
{ id: 't2-5', title: 'Clean Architecture', desc: 'Entities, Use Cases, Controllers' },
{ id: 't2-6', title: 'RESTful API Design', desc: 'Versioning, status codes, docs' },
{ id: 't2-7', title: 'Capstone Phase 2', desc: 'Refactorizar con Clean Architecture' }
]
},
{
id: 'phase3',
title: 'Systems & Scalability',
duration: '4 meses (Semanas 33-48)',
description: 'Entiende sistemas distribuidos, caching, y production readiness',
color: 'amber',
topics: [
{ id: 't3-1', title: 'Advanced Database Design', desc: 'SQL avanzado, normalization, indexing' },
{ id: 't3-2', title: 'Caching & Redis', desc: 'Estrategias de cache, Redis patterns' },
{ id: 't3-3', title: 'Message Queues', desc: 'BullMQ, event-driven architecture' },
{ id: 't3-4', title: 'Advanced Testing', desc: 'Integration, E2E, test containers' },
{ id: 't3-5', title: 'Monitoring & Logging', desc: 'Structured logging, Prometheus metrics' },
{ id: 't3-6', title: 'Capstone Phase 3', desc: 'Production-ready system con Docker' }
]
},
{
id: 'phase4',
title: 'Technical Leadership',
duration: '6 meses (Semanas 49-72)',
description: 'Soft skills, mentoring, decisiones arquitectónicas e impacto',
color: 'purple',
topics: [
{ id: 't4-1', title: 'Code Review Excellence', desc: 'Feedback constructivo, mentoring' },
{ id: 't4-2', title: 'Open Source Contributions', desc: 'Features significativas, liderazgo' },
{ id: 't4-3', title: 'Technical Documentation', desc: 'ADRs, architecture docs' },
{ id: 't4-4', title: 'Mentoring & Teaching', desc: 'Ayuda a otros crecer' },
{ id: 't4-5', title: 'Strategic Thinking', desc: 'Tech debt, roadmaps, decisions' }
]
}
],
finalChecklist: [
'Entiendes fundamentals profundamente',
'Escribes código clean y mantenible',
'Aplicas design patterns apropiadamente',
'Entiendes arquitectura de sistemas',
'Optimizas sistemas (cache, índices, queues)',
'Testes comprehensivamente',
'Das feedback valioso en code reviews',
'Documentes decisiones claramente',
'Resuelves problemas complejos',
'Elevas a otros en el equipo',
'Piensas estratégicamente'
]
};
// Initialize
function init() {
loadProgress();
renderPhases();
renderFinalChecklist();
updateStats();
}
// Render Phases
function renderPhases() {
const container = document.getElementById('phasesContainer');
container.innerHTML = '';
roadmapData.phases.forEach((phase, index) => {
const phaseEl = document.createElement('div');
phaseEl.className = `phase-card ${phase.color}`;
phaseEl.id = phase.id;
const completedTopics = phase.topics.filter(t => {
const checkbox = document.querySelector(`#${t.id}`);
return checkbox && checkbox.checked;
}).length;
const progressPercent = Math.round((completedTopics / phase.topics.length) * 100);
phaseEl.innerHTML = `
<div class="phase-header" onclick="togglePhase('${phase.id}')">
<div class="phase-info">
<div class="phase-title">${phase.title}</div>
<div class="phase-subtitle">${phase.duration}</div>
</div>
<div class="phase-progress-circle" title="${completedTopics}/${phase.topics.length}">
${progressPercent}%
</div>
<div class="toggle-icon">▼</div>
</div>
<div class="phase-body">
<p style="color: #666; margin-bottom: 15px;">${phase.description}</p>
<div class="topics-list">
${phase.topics.map(topic => `
<div class="topic-item" id="item-${topic.id}">
<input type="checkbox" id="${topic.id}" class="topic-checkbox"
onchange="updateStats(); saveProgress()">
<div class="topic-text">
<div class="topic-title">${topic.title}</div>
<div class="topic-description">${topic.desc}</div>
</div>
</div>
`).join('')}
</div>
<div class="phase-progress">
📊 Completado: <strong>${completedTopics}/${phase.topics.length}</strong> tópicos
</div>
</div>
`;
container.appendChild(phaseEl);
});
loadProgress();
}
// Render Final Checklist
function renderFinalChecklist() {
const container = document.getElementById('finalChecklistContainer');
container.innerHTML = roadmapData.finalChecklist.map((item, idx) => `
<div class="checklist-item" id="final-${idx}">
<input type="checkbox" id="final-check-${idx}" onchange="saveProgress()">
<label for="final-check-${idx}">${item}</label>
</div>
`).join('');
}
// Toggle Phase
function togglePhase(phaseId) {
const phase = document.getElementById(phaseId);
phase.classList.toggle('expanded');
saveProgress();
}
// Expand All
function expandAllPhases() {
document.querySelectorAll('.phase-card').forEach(p => p.classList.add('expanded'));
saveProgress();
}
// Collapse All
function collapseAllPhases() {
document.querySelectorAll('.phase-card').forEach(p => p.classList.remove('expanded'));
saveProgress();
}
// Update Stats
function updateStats() {
const allCheckboxes = document.querySelectorAll('.topic-checkbox');
const checkedCheckboxes = document.querySelectorAll('.topic-checkbox:checked');
const finalChecks = document.querySelectorAll('.checklist-item input:checked');
const total = allCheckboxes.length + roadmapData.finalChecklist.length;
const completed = checkedCheckboxes.length + finalChecks.length;
const percent = Math.round((completed / total) * 100);
document.getElementById('progressFill').style.width = percent + '%';
document.getElementById('progressPercent').textContent = percent + '%';
document.getElementById('completedCount').textContent = completed;
document.getElementById('totalCount').textContent = total;
// Update topic item styling
document.querySelectorAll('.topic-item').forEach(item => {
const checkbox = item.querySelector('input');
if (checkbox.checked) {
item.classList.add('completed');
} else {
item.classList.remove('completed');
}
});
// Update checklist item styling
document.querySelectorAll('.checklist-item').forEach(item => {
const checkbox = item.querySelector('input');
if (checkbox.checked) {
item.classList.add('completed');
} else {
item.classList.remove('completed');
}
});
}
// Save Progress
function saveProgress() {
const state = {
expandedPhases: Array.from(document.querySelectorAll('.phase-card.expanded')).map(p => p.id),
checkedTopics: Array.from(document.querySelectorAll('.topic-checkbox:checked')).map(cb => cb.id),
checkedFinal: Array.from(document.querySelectorAll('.checklist-item input:checked')).map((cb, idx) => idx).filter(idx => document.getElementById(`final-check-${idx}`).checked)
};
localStorage.setItem('roadmapProgress', JSON.stringify(state));
}
// Load Progress
function loadProgress() {
const saved = localStorage.getItem('roadmapProgress');
if (!saved) return;
const state = JSON.parse(saved);
// Restore expanded phases
state.expandedPhases.forEach(phaseId => {
const phase = document.getElementById(phaseId);
if (phase) phase.classList.add('expanded');
});
// Restore checked topics
state.checkedTopics.forEach(topicId => {
const checkbox = document.getElementById(topicId);
if (checkbox) checkbox.checked = true;
});
// Restore checked final items
state.checkedFinal.forEach(idx => {
const checkbox = document.getElementById(`final-check-${idx}`);
if (checkbox) checkbox.checked = true;
});
updateStats();
}
// Reset Progress
function resetProgress() {
if (confirm('¿Estás seguro? Esto borrará todo tu progreso.')) {
localStorage.removeItem('roadmapProgress');
document.querySelectorAll('input[type="checkbox"]').forEach(cb => cb.checked = false);
collapseAllPhases();
updateStats();
}
}
// Download Progress
function downloadProgress() {
const saved = localStorage.getItem('roadmapProgress');
const state = saved ? JSON.parse(saved) : {};
const allCheckboxes = document.querySelectorAll('.topic-checkbox');
const checkedCheckboxes = document.querySelectorAll('.topic-checkbox:checked');
const percent = Math.round((checkedCheckboxes.length / allCheckboxes.length) * 100);
const content = `
# Mi Progreso: Flutter/Vue/Node → Senior Developer
**Completado:** ${checkedCheckboxes.length}/${allCheckboxes.length} (${percent}%)
**Fecha:** ${new Date().toLocaleDateString('es-ES')}
## Fases Completadas
${roadmapData.phases.map((phase, idx) => {
const phaseTopics = phase.topics.filter(t => state.checkedTopics?.includes(t.id) || false);
return `### ${phase.title}
Completado: ${phaseTopics.length}/${phase.topics.length}
`;
}).join('\n')}
## Checklist Final
${roadmapData.finalChecklist.map((item, idx) => {
const isChecked = state.checkedFinal?.includes(idx);
return `${isChecked ? '✅' : '⬜'} ${item}`;
}).join('\n')}
---
*Descargado el ${new Date().toLocaleString('es-ES')}*
`;
const blob = new Blob([content], { type: 'text/markdown' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `roadmap-progreso-${new Date().toISOString().split('T')[0]}.md`;
a.click();
}
// Initialize on load
window.addEventListener('DOMContentLoaded', init);
</script>
</body>
</html>