-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
132 lines (128 loc) · 4.85 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!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" />
<title>Pawland - Tu mascoteria Favorita</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"
/>
<link rel="stylesheet" href="./src/styles.css" />
</head>
<body>
<nav class="navbar navbar-expand-md">
<div class="container-fluid">
<a
class="navbar-brand d-flex align-items-center gap-3 fw-bold"
href="#/"
>
<svg
class="navbar__icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
,
style="width: 30px"
>
<path
d="M256 224c-79.37 0-191.1 122.7-191.1 200.2C64.02 459.1 90.76 480 135.8 480C184.6 480 216.9 454.9 256 454.9C295.5 454.9 327.9 480 376.2 480c44.1 0 71.74-20.88 71.74-55.75C447.1 346.8 335.4 224 256 224zM108.8 211.4c-10.37-34.62-42.5-57.12-71.62-50.12S-7.104 202 3.27 236.6C13.64 271.3 45.77 293.8 74.89 286.8S119.1 246 108.8 211.4zM193.5 190.6c30.87-8.125 46.37-49.1 34.5-93.37s-46.5-71.1-77.49-63.87c-30.87 8.125-46.37 49.1-34.5 93.37C127.9 170.1 162.5 198.8 193.5 190.6zM474.9 161.3c-29.12-6.1-61.25 15.5-71.62 50.12c-10.37 34.63 4.75 68.37 33.87 75.37c29.12 6.1 61.12-15.5 71.62-50.12C519.1 202 503.1 168.3 474.9 161.3zM318.5 190.6c30.1 8.125 65.62-20.5 77.49-63.87c11.87-43.37-3.625-85.25-34.5-93.37c-30.1-8.125-65.62 20.5-77.49 63.87C272.1 140.6 287.6 182.5 318.5 190.6z"
/>
</svg>
Pawland</a
>
<div class="d-flex gap-3 order-md-2">
<a
href="#/carrito"
class="btn btn-carrito"
type="button"
aria-controls="navbarSupportedContent"
aria-expanded="false"
>
Carrito
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" href="#/tienda">Productos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/tienda?category=perro">Perro</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/tienda?category=gato">Gato</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/tienda?category=alimento">Alimento</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/tienda?category=accesorios"
>Accesorios</a
>
</li>
</ul>
</div>
</div>
</nav>
<!-- MAIN CONTENT -->
<main id="root" class=""></main>
<footer class="footer">
<nav>
<ul class="footer__links">
<li>
<a class="link" href="#/tienda">
<p>Tienda</p>
</a>
</li>
<li>
<a class="link" href="#/nosotros">
<p>Nosotros</p>
</a>
</li>
<li>
<a class="link" href="#/historia">
<p>Nuestra Historia</p>
</a>
</li>
</ul>
</nav>
<form id="formularioRegistro">
<label for="email">
Registra tu email y accede a un codigo de descuento para tu primera
compra!
</label>
<input type="email" name="email" id="email" />
<button class="btn--dark" type="submit">Enviar</button>
</form>
</footer>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/toastify-js"
></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="./src/main.js" type="module"></script>
<script>
document.querySelector('#formularioRegistro').addEventListener('submit', (e) => {
e.preventDefault();
const imputValue = e.target.querySelector('input').value;
fetch(`https://formsubmit.co/${imputValue}`, {
method: 'POST'
})
})
</script>
</body>
</html>