-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (42 loc) · 1.54 KB
/
index.html
File metadata and controls
49 lines (42 loc) · 1.54 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Buscador GitHub</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<header class="app-header">
<h1>🔎 Buscador de GitHub</h1>
<p class="subtitle">¡Busca <strong>usuarios</strong> o <strong>repositorios</strong>!</p>
</header>
<main class="container">
<form id="search-form" class="search-bar" autocomplete="off">
<input
id="query"
name="query"
type="text"
placeholder="Escribe un término: ej. react, ivancalero…"
aria-label="Término de búsqueda"
required
/>
<select id="type" name="type" aria-label="Tipo de búsqueda">
<option value="repositories">Repositorios</option>
<option value="users">Usuarios</option>
</select>
<button type="submit" id="search-btn">Buscar</button>
</form>
<div id="status" role="status" aria-live="polite" class="status"></div>
<div id="error" role="alert" class="error" hidden></div>
<section id="results" class="grid"></section>
<div id="loading" class="loading" hidden>Cargando…</div>
<div id="end" class="end" hidden>No se encuentra ningún usuario/repositorio más con esos factores de búsqueda.</div>
<div id="sentinel" class="sentinel" aria-hidden="true"></div>
</main>
<footer class="app-footer">
<p>Iván Calero - 2025</p>
</footer>
<script src="js/script.js" type="module"></script>
</body>
</html>