-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (68 loc) · 3.17 KB
/
index.html
File metadata and controls
76 lines (68 loc) · 3.17 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
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Colombia Data Explorer</title>
<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=Manrope:wght@400;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="bg-orb orb-1"></div>
<div class="bg-orb orb-2"></div>
<header class="hero container">
<h1>Colombia Data Explorer</h1>
<p>Información general del país y directorio de departamentos usando asincronía con JavaScript vainilla.</p>
</header>
<main class="container">
<section class="panel" aria-labelledby="country-title">
<div class="panel-head">
<h2 id="country-title">Resumen del País</h2>
<button id="reloadBtn" class="btn" type="button">Actualizar datos</button>
</div>
<div id="countryStatus" class="status" role="status" aria-live="polite"></div>
<div id="countryContent"></div>
</section>
<section class="panel" aria-labelledby="departments-title">
<div class="panel-head wrap">
<h2 id="departments-title">Departamentos</h2>
<div class="controls">
<input id="searchInput" class="search" type="search" placeholder="Buscar departamento..." autocomplete="off" />
<select id="sortSelect" class="select" aria-label="Ordenar departamentos">
<option value="name-asc">Nombre (A-Z)</option>
<option value="population-desc">Población (mayor-menor)</option>
<option value="municipalities-desc">Municipios (mayor-menor)</option>
</select>
<input id="chatbotInput" class="chatbot-input" type="text" placeholder="Chatbot: comparación de 3 departamentos" autocomplete="off" value="comparación de 3 departamentos" />
<button id="chatbotBtn" class="btn chatbot-btn" type="button">Preguntar</button>
</div>
</div>
<div id="departmentsStatus" class="status" role="status" aria-live="polite"></div>
<article class="chatbot-panel" aria-live="polite">
<h3>Asistente LLM</h3>
<div id="chatbotStatus" class="status"></div>
<p id="chatbotResponse" class="chatbot-response">Escribe una pregunta para generar un resumen en lenguaje natural con los datos cargados.</p>
</article>
<div id="stats" class="stats"></div>
<div id="departmentsGrid" class="departments-grid"></div>
</section>
</main>
<template id="departmentCardTemplate">
<article class="card">
<div class="card-top">
<h3 class="card-title"></h3>
<span class="chip"></span>
</div>
<p class="card-desc"></p>
<ul class="card-meta">
<li><strong>Capital:</strong> <span data-field="capital"></span></li>
<li><strong>Población:</strong> <span data-field="population"></span></li>
<li><strong>Municipios:</strong> <span data-field="municipalities"></span></li>
</ul>
</article>
</template>
<script type="module" src="js/main.js"></script>
</body>
</html>