-
Notifications
You must be signed in to change notification settings - Fork 3
/
juguetes.html
416 lines (380 loc) · 26.7 KB
/
juguetes.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!DOCTYPE html>
<html lang="en">
<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>Franco Petshop - Juguetes</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="assets/favicon.png" type="image/x-icon">
</head>
<body id="Juguetes">
<div id="app">
<div class="loader">
<div class="paw-print-1">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-2">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-3">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-4">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-5">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-6">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-7">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="paw-print-8">
<div class="pad large"></div>
<div class="pad small-1"></div>
<div class="pad small-2"></div>
<div class="pad small-3"></div>
<div class="pad small-4"></div>
</div>
<div class="loader-text">
<span>CARGANDO...</span>
</div>
</div>
<header class="d-flex justify-content-between px-5 align-items-center">
<a href="./index.html"><img src="assets/logo-transp.png" alt="" class="main-logo"></a>
<img src="assets/dog2.png" alt="" class="dog-logo">
</header>
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container-fluid">
<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 class="d-lg-flex align-items-center collapse navbar-collapse navbar-collapsed"
id="navbarSupportedContent">
<a href="#"><img src="assets/paws.png" alt="" class="nav-img nav-item"></a>
<a href="./index.html" class="navbar-button nav-item">Home</a>
<a href="./farmacia.html" class="navbar-button nav-item">Farmacia</a>
<a href="#" class="navbar-button nav-item">Juguetes</a>
<a href="./contacto.html" class="navbar-button nav-item">Contacto</a>
</div>
<div class="dropdown-favoritos">
<button class="btn-personalizado" type="button"><img src="assets/favoritos.svg" alt="favoritos" class="favs-img"><span class="span-carrito">{{productosFavoritos.length}}</span></button>
<div class="dropdown-favoritos-content">
<div class="dropdown-cards" v-for="producto in productosFavoritos">
<img v-bind:src="producto.imagen" alt="...">
<span>{{producto.nombre}}</span>
<a class="btn btn-index" @click="llenandoCarrito(producto); removerDeFavoritos(producto);"><img src="./assets/cart.svg" alt="" class="index-cart"></a>
</div>
</div>
</div>
<button class="btn-personalizado" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasRight" aria-controls="offcanvasRight"><img src="assets/cart.svg" alt=""
class="cart-img"><span class="span-carrito">{{productosDelCarrito.length}}</span></button>
</div>
<!-- OFFCANVAS -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight"
aria-labelledby="offcanvasRightLabel">
<div class="offcanvas-header">
<h5 id="offcanvasRightLabel" class="h2"><button class="btn-personalizado" type="button"
data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight"
aria-controls="offcanvasRight"><img src="assets/cart.svg" alt=""
class="cart-img"></button>Total del carrito</h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas"
aria-label="Close"></button>
</div>
<div class="offcanvas-body" v-if="productosDelCarrito.length >= 1">
<div class="card mb-3" style="max-width: 540px;" v-for="producto in productosDelCarrito">
<div class="row g-0 align-items-center">
<div class="col-md-4 cart-responsive2">
<img v-bind:src="producto.imagen" class="img-fluid rounded-start img-cart" alt="...">
</div>
<div class="col-md-8 cart-responsive">
<div class="card-body">
<h5 class="card-title justify-content-start">{{producto.nombre}}</h5>
<span class="preciounitario">${{producto.precio}}</span>
<div class="d-flex align-items-center justify-content-around">
<div class="d-flex align-items-center justify-content-around gap-2">
<button class="btn-2 btn-primary px-1" @click="quitar(producto)"
v-if="producto.__v <=1" type="button" disabled>-</button>
<button class="btn-2 btn-primary px-1" @click="quitar(producto)" v-else
type="button">-</button>
<p class="m-1 preciounitario">{{producto.__v}}</p>
<button class="btn-2 btn-primary px-1" @click="añadir(producto)"
type="button" v-if="producto.__v < producto.stock">+</button>
<button class="btn-2 btn-primary px-1" @click="añadir(producto)"
type="button" v-else disabled>+</button>
</div>
<button class="btn-tooltip btn-borrar" v-on:click="vaciadoDelCarrito(producto)">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"
height="25" width="25">
<path fill="#494949"
d="M8.78842 5.03866C8.86656 4.96052 8.97254 4.91663 9.08305 4.91663H11.4164C11.5269 4.91663 11.6329 4.96052 11.711 5.03866C11.7892 5.11681 11.833 5.22279 11.833 5.33329V5.74939H8.66638V5.33329C8.66638 5.22279 8.71028 5.11681 8.78842 5.03866ZM7.16638 5.74939V5.33329C7.16638 4.82496 7.36832 4.33745 7.72776 3.978C8.08721 3.61856 8.57472 3.41663 9.08305 3.41663H11.4164C11.9247 3.41663 12.4122 3.61856 12.7717 3.978C13.1311 4.33745 13.333 4.82496 13.333 5.33329V5.74939H15.5C15.9142 5.74939 16.25 6.08518 16.25 6.49939C16.25 6.9136 15.9142 7.24939 15.5 7.24939H15.0105L14.2492 14.7095C14.2382 15.2023 14.0377 15.6726 13.6883 16.0219C13.3289 16.3814 12.8414 16.5833 12.333 16.5833H8.16638C7.65805 16.5833 7.17054 16.3814 6.81109 16.0219C6.46176 15.6726 6.2612 15.2023 6.25019 14.7095L5.48896 7.24939H5C4.58579 7.24939 4.25 6.9136 4.25 6.49939C4.25 6.08518 4.58579 5.74939 5 5.74939H6.16667H7.16638ZM7.91638 7.24996H12.583H13.5026L12.7536 14.5905C12.751 14.6158 12.7497 14.6412 12.7497 14.6666C12.7497 14.7771 12.7058 14.8831 12.6277 14.9613C12.5495 15.0394 12.4436 15.0833 12.333 15.0833H8.16638C8.05588 15.0833 7.94989 15.0394 7.87175 14.9613C7.79361 14.8831 7.74972 14.7771 7.74972 14.6666C7.74972 14.6412 7.74842 14.6158 7.74584 14.5905L6.99681 7.24996H7.91638Z"
clip-rule="evenodd" fill-rule="evenodd"></path>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="offcanvas-body d-flex justify-content-center align-items-center" v-else>
<div class="d-flex flex-column align-items-center">
<span class="offcanvas-empty">¡El carrito está vacío!</span>
<a href="./juguetes.html" class="offcanvas-empty-link">Realiza tu compra</a>
</div>
</div>
<div class="d-flex justify-content-around align-items-center">
<p class="precio-total" v-if="productosDelCarrito.length >= 1">
Total: $ {{totalFinal()}}
</p>
<button class="realizar-compra" v-on:click="comprarCarrito" v-if="productosDelCarrito.length >= 1">
<span class="text">COMPRAR</span>
<span class="icon">
<svg class="svg-icon" viewBox="0 0 20 20">
<path fill="#fff"
d="M17.72,5.011H8.026c-0.271,0-0.49,0.219-0.49,0.489c0,0.271,0.219,0.489,0.49,0.489h8.962l-1.979,4.773H6.763L4.935,5.343C4.926,5.316,4.897,5.309,4.884,5.286c-0.011-0.024,0-0.051-0.017-0.074C4.833,5.166,4.025,4.081,2.33,3.908C2.068,3.883,1.822,4.075,1.795,4.344C1.767,4.612,1.962,4.853,2.231,4.88c1.143,0.118,1.703,0.738,1.808,0.866l1.91,5.661c0.066,0.199,0.252,0.333,0.463,0.333h8.924c0.116,0,0.22-0.053,0.308-0.128c0.027-0.023,0.042-0.048,0.063-0.076c0.026-0.034,0.063-0.058,0.08-0.099l2.384-5.75c0.062-0.151,0.046-0.323-0.045-0.458C18.036,5.092,17.883,5.011,17.72,5.011z">
</path>
<path fill="#fff"
d="M8.251,12.386c-1.023,0-1.856,0.834-1.856,1.856s0.833,1.853,1.856,1.853c1.021,0,1.853-0.83,1.853-1.853S9.273,12.386,8.251,12.386z M8.251,15.116c-0.484,0-0.877-0.393-0.877-0.874c0-0.484,0.394-0.878,0.877-0.878c0.482,0,0.875,0.394,0.875,0.878C9.126,14.724,8.733,15.116,8.251,15.116z">
</path>
<path fill="#fff"
d="M13.972,12.386c-1.022,0-1.855,0.834-1.855,1.856s0.833,1.853,1.855,1.853s1.854-0.83,1.854-1.853S14.994,12.386,13.972,12.386z M13.972,15.116c-0.484,0-0.878-0.393-0.878-0.874c0-0.484,0.394-0.878,0.878-0.878c0.482,0,0.875,0.394,0.875,0.878C14.847,14.724,14.454,15.116,13.972,15.116z">
</path>
</svg>
</span>
</button>
</div>
</div>
</nav>
<main>
<!-- CARROUSEL -->
<div id="carouselExampleFade" class="carousel slide carousel-fade" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="./assets/carusel/imagen_1.png" class="d-block w-100" alt="Banner de promociones">
</div>
<div class="carousel-item">
<img src="./assets/carusel/imagen_2.png" class="d-block w-100" alt="Banner de promociones">
</div>
<div class="carousel-item">
<img src="./assets/carusel/imagen_3.png" class="d-block w-100" alt="Banner de promociones">
</div>
<div class="carousel-item">
<img src="./assets/carusel/imagen_4.png" class="d-block w-100" alt="Banner de promociones">
</div>
<div class="carousel-item">
<img src="./assets/carusel/imagen_5.png" class="d-block w-100" alt="Banner de promociones">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div class="container">
<div class="row my-5 flex-wrap">
<div class="col-xl-3 form-box my-5">
<!-- FILTRO -->
<form class="filtroDePrecios" @submit.prevent="">
<div class="search__container">
<input class="search__input" type="text" placeholder="Search" v-model="buscando"
@search="buscarProductos" id="buscador">
</div>
<div class="ms-2 filtros-form">
<div>
<h5 class="h4"> Filtrar por Valor</h5>
<div class="form-check" v-on:change="buscarProductos">
<input class="form-check-input" type="radio" name="exampleRadios"
id="exampleRadios1" value="all" checked v-model="valorDelRadio">
<label class="form-check-label" for="exampleRadios1">
Todos los productos
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios"
id="exampleRadios2" value="500" v-model="valorDelRadio">
<label class="form-check-label" for="exampleRadios2">
Hasta $500
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios"
id="exampleRadios3" value="1000" v-model="valorDelRadio">
<label class="form-check-label" for="exampleRadios3">
Hasta $1.000
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios"
id="exampleRadios4" value="1000.01" v-model="valorDelRadio">
<label class="form-check-label" for="exampleRadios4">
Más de $1.000
</label>
</div>
</div>
<div>
<h5 class="mt-1 h4">Ordenar por Precio</h5>
<div class="form-check">
<input class="form-check-input" type="radio" name="radioPrecioMayor"
id="radioPrecioMayor1" value="mayor" v-model="valorPrecio">
<label class="form-check-label" for="radioPrecioMayor1">
Mayor a menor
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="radioPrecioMayor2"
id="radioPrecioMayor2" value="menor" v-model="valorPrecio">
<label class="form-check-label" for="radioPrecioMayor2">
Menor a mayor
</label>
</div>
</div>
</div>
<input type="reset" value="REESTABLECER" v-on:click="limpiarFiltros"
class="reset-button-prod">
</form>
</div>
<!-- TARJETAS -->
<div class="cards destacados col-xl-9">
<div class="index-card col-sm-12 col-md-6 col-lg-2 d-flex flex-column"
v-for="producto in auxBuscador" data-aos="flip-left" data-aos-duration="800">
<span class="warning-span" v-if="producto.stock <= 5">¡Ultimas unidades!</span>
<span v-else class="warning-span-invisible"></span>
<img v-bind:src="producto.imagen" class="card-img-top" v-bind:alt="producto.nombre"
v-on:click="cartelDeIndex(producto.imagen)">
<div class="card-body d-flex flex-column justify-content-between h-50">
<div>
<h5 class="card-title">{{producto.nombre}}</h5>
<p class="card-text card-parrafo">{{producto.descripcion}}</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">Precio: <span
class="precio">${{producto.precio}}</span></li>
<li class="list-group-item col-12">Unidades disponibles: <span
class="stock">{{producto.stock}}</span></li>
</ul>
<div class="d-flex align-items-center justify-content-between">
<input type="checkbox" :id="producto._id" name="favoritos" value="favorite-button"
class="input-favourite">
<label :for="producto._id" class="label-favourite">
<div class="action">
<span class="option-1 align-self-center"
@click="agregarFavoritos(producto)"><svg
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-heart">
<path
d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z">
</path>
</svg> Agregar a Favoritos</span>
<span class="option-2 align-self-center"
@click="removerDeFavoritos(producto)"><svg
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-heart">
<path
d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z">
</path>
</svg> Agregado a Favoritos</span>
</div>
</label>
<a class="btn btn-index" @click="llenandoCarrito(producto)"><img
src="./assets/cart.svg" alt="" class="index-cart"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="list-box">
<ul>
<li data-aos="flip-left" data-aos-delay="50" data-aos-duration="1000"><a href="./index.html">Sobre nosotros</a></li>
<li data-aos="flip-left" data-aos-delay="100" data-aos-duration="1000"><a href="./contacto.html">Contáctenos</a></li>
<li data-aos="flip-left" data-aos-delay="150" data-aos-duration="1000">Políticas de privacidad</li>
<li data-aos="flip-left" data-aos-delay="200" data-aos-duration="1000">Políticas de precio</li>
</ul>
<ul>
<li data-aos="flip-left" data-aos-delay="250" data-aos-duration="1000">Envío y devoluciones</li>
<li data-aos="flip-left" data-aos-delay="300" data-aos-duration="1000">Preguntas frequentes</li>
<li data-aos="flip-left" data-aos-delay="350" data-aos-duration="1000">Términos y condiciones</li>
<li data-aos="flip-left" data-aos-delay="400" data-aos-duration="1000">Política de devoluciones</li>
</ul>
<ul>
<li data-aos="flip-left" data-aos-delay="450" data-aos-duration="1000"><img src="assets/facebook.svg" alt="facebook logo"><a href="https://www.facebook.com/people/Franco-Petshop/100080353067385/">Facebook</a></li>
<li data-aos="flip-left" data-aos-delay="500" data-aos-duration="1000"><img src="assets/twitter.svg" alt="twitter logo"><a href="https://twitter.com/FrancoPetshop">Twitter</a></li>
<li data-aos="flip-left" data-aos-delay="550" data-aos-duration="1000"><img src="assets/instagram.svg" alt="instagram logo"><a href="https://www.instagram.com/francopetshop27/">Instagram</a></li>
<li data-aos="flip-left" data-aos-delay="600" data-aos-duration="1000"><img src="assets/youtube.svg" alt="youtube logo"><a href="https://www.youtube.com/channel/UCNbW2MJunOR2CjJCM5iEyzg">Youtube</a></li>
</ul>
</div>
<div class="footer-horarios">
<a href="#"><img src="assets/logo-white.png" alt="logo" class="footer-logo"></a>
<div>
<span class="info-span">Horarios de atención: </span>
<span class="info-span">Lunes a Viernes de 9 a 18</span>
<span class="info-span">Sabados de 9 a 13</span>
</div>
</div>
<iframe data-aos="fade-up"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3283.6869258109527!2d-58.43257238491949!3d-34.612077380457386!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x95bcca429815227f%3A0x5d302e497c2cda87!2sR%C3%ADo%20de%20Janeiro%20300%2C%20C1405CCB%20CABA!5e0!3m2!1sen!2sar!4v1649945998538!5m2!1sen!2sar"
style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<div class="banner">
<span>© Marvel Team | All rights reserved - <i>Flor azul, espinas rojas</i></span>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous">
</script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://unpkg.com/vue@3"></script>
<script src="./main.js"></script>
</body>
</html>