-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (90 loc) · 4.74 KB
/
index.html
File metadata and controls
102 lines (90 loc) · 4.74 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Generador de Rutas de Aprendizaje</title>
<!-- Vincula el archivo CSS -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- BARRA DE NAVEGACIÓN -->
<nav class="navbar">
<div class="nav-content">
<div class="logo" onclick="resetApp()">
<div class="logo-icon">
<!-- Icono SVG: Red/Grafo -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="16" y="16" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="9" y="2" width="6" height="6" rx="1"/><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"/><path d="M12 12V8"/></svg>
</div>
<span class="logo-text">Graph<span class="highlight">Academy</span></span>
</div>
<!-- Botones de Pestaña (Ocultos al inicio) -->
<div id="view-tabs" class="nav-tabs hidden">
<button class="tab-btn active" onclick="switchTab('roadmap')" id="btn-roadmap">Ruta (Roadmap)</button>
<button class="tab-btn" onclick="switchTab('graph')" id="btn-graph">Ver Grafo</button>
</div>
</div>
</nav>
<!-- CONTENIDO PRINCIPAL -->
<main class="main-container">
<!-- VISTA 1: INICIO (BUSCADOR) -->
<section id="view-home" class="view-section active">
<div class="hero-content">
<h1>Genera tu Ruta de <span class="text-gradient">Aprendizaje</span></h1>
<p class="subtitle">Ingresa un tema y nuestro algoritmo de grafos diseñará el camino óptimo para ti.</p>
<div class="search-box">
<input type="text" id="search-input" placeholder="¿Qué quieres aprender? (ej. Python, Marketing...)" onkeypress="handleEnter(event)">
<button class="search-btn" onclick="startSearch()">
<!-- Icono Lupa SVG -->
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
</button>
</div>
<div class="tags-container">
<span class="tag" onclick="quickSearch('Python')">Python</span>
<span class="tag" onclick="quickSearch('Data Science')">Data Science</span>
<span class="tag" onclick="quickSearch('Marketing')">Marketing</span>
</div>
</div>
</section>
<!-- VISTA 2: CARGANDO (LOADING) -->
<section id="view-loading" class="view-section hidden">
<div class="loader-container">
<div class="spinner"></div>
<h2>Analizando Nodos...</h2>
<p>Calculando pesos y dirección del grafo</p>
</div>
</section>
<!-- VISTA 3: RESULTADOS -->
<section id="view-results" class="view-section hidden">
<header class="results-header">
<h2 id="result-title">Ruta para: <span class="highlight">Tema</span></h2>
<p class="meta-info">Algoritmo optimizado por: <strong>Calidad (Reviews)</strong></p>
</header>
<!-- CONTENEDOR ROADMAP (Aquí JS inyecta las tarjetas) -->
<div id="tab-roadmap" class="tab-content active">
<div class="roadmap-timeline" id="roadmap-container">
<!-- Inyección dinámica -->
</div>
</div>
<!-- CONTENEDOR GRAFO (Aquí JS dibuja el SVG) -->
<div id="tab-graph" class="tab-content hidden">
<div class="graph-card">
<div class="graph-header">
<h3>Visualización del Grafo Dirigido</h3>
<div class="graph-legend">
<span class="legend-item"><span class="dot beginner"></span>Inicio</span>
<span class="legend-item"><span class="dot intermediate"></span>Proceso</span>
<span class="legend-item"><span class="dot expert"></span>Meta</span>
</div>
</div>
<div id="graph-svg-container" class="svg-wrapper">
<!-- Inyección dinámica SVG -->
</div>
</div>
</div>
</section>
</main>
<!-- Vincula el archivo JS -->
<script src="app.js"></script>
</body>
</html>