-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (88 loc) · 3.78 KB
/
index.html
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Work+Sans:ital,wght@0,300;1,300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/normalize.css">
<link rel="stylesheet" href="./styles/style.css">
<link rel="icon" href="icon.png"/>
<title>Mis notas</title>
</head>
<body>
<nav>
<ul><a href="./index.html"><h1>Notas</h1></a></ul>
<ul>
<li>
<input type="checkbox" name="darkMode" id="activar">
<label for="activar" class="switch"></label>
</li>
</ul>
</nav>
<main class="container">
<label for="filtrar"> <img src="./assets/icons/search.svg" alt="buscar"> </label>
<input type="text" name="filtro" id="filtrar" placeholder="buscar">
<!--create a new note-->
<button class="openModal">+</button>
<section class="wrapper">
</section>
<!--ventana para crear nueva nota-->
<section class="windowModal hidden" id="crearNota">
<article class="modal">
<div class="content">
<h2>Crear una nueva nota</h2>
<form class="form">
<div class="field">
<label for="titulo">Titulo</label>
<input id="titulo" name="titulo" type="text" placeholder="Agrege un titulo">
<p id="errorTitulo" class="alerta hidden">El titulo no puede estar vacío</p>
</div>
<div class="field">
<label for="text">Nota</label>
<textarea name="textoNota" id="text" class="textarea" placeholder="Escribe aquí"></textarea>
<p id="errorTexto" class="alerta hidden">El texto no puede estar vacío</p>
</div>
<div class="buttons">
<button id="closeModal">Cerrar</button>
<button id="new" class="primary-button">Crear</button>
</div>
</form>
</div>
</article>
</section>
<!--ventana para editar una nota-->
<section class="windowModal hidden" id="modalEditor">
<article class="modal" >
<div class="content">
<h2>Editar nota</h2>
<form class="form">
<p id="alertaEditor" class="alerta hidden">Algo esta vacío</p>
<div class="field">
<label for="editorTitulo">Titulo</label>
<input id="editorTitulo" name="titulo" type="text">
</div>
<div class="field">
<label for="editorText">Nota</label>
<textarea name="textoNota" id="editorText" class="textarea"></textarea>
</div>
<div class="buttons">
<button id="cerrarEditor">Cancelar</button>
<button id="editado" class="primary-button">Editar</button>
</div>
</form>
</div>
</article>
</section>
</main>
<script src="./scripts/app.js"></script>
<script src="./scripts/eliminar.js"></script>
<script src="./scripts/modoOscuro.js"></script>
<script src="./scripts/buscar.js"></script>
<script src="./scripts/localStorage.js"></script>
<script src="./scripts/favoritos.js"></script>
<script src="./scripts/editar.js"></script>
</body>
</html>