-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (36 loc) · 1.46 KB
/
index.html
File metadata and controls
43 lines (36 loc) · 1.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colores Aleatorios</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Encabezado principal -->
<header>
<button class="btn-lista" aria-label="Ver lista de colores guardados">Lista</button>
</header>
<!-- Contenido principal -->
<main class="main">
<section class="container">
<dialog id="color-list-dialog" aria-labelledby="dialog-title">
<h3 id="dialog-title">Lista de Colores que te gustaron</h3>
<ul id="color-list">
<!-- Lista dinámica de colores -->
</ul>
</dialog>
<!-- Código del color -->
<h2 id="color-code" aria-live="polite" aria-label="Código del color actual">#fff</h2>
<h2 id="color-rgb" aria-live="polite" aria-label="RGB del color actual">(rgb(0, 0, 0))</h2>
<!-- Controles -->
<div class="controls">
<button class="btn anterior" aria-label="Ver color anterior">Anterior</button>
<button id="btn" class="btn" aria-label="Generar un nuevo color">Generar Color</button>
<button class="btn agregar" aria-label="Agregar color actual a la lista">Agregar</button>
</div>
</section>
</main>
<script src="main.js"></script>
</body>
</html>