-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (80 loc) · 3.19 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="public/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Swiper Web component</title>
</head>
<body>
<div class="header">
<span class="brand">
<img src="public/imgs/storefront_FILL0_wght200_GRAD-25_opsz48.svg" alt="" />
Mi tienda <span class="powered-by">by librerias.js</span>
</span>
<span class="user-profile-wrapper">
<img src="https://robohash.org/minimadoloreslaborum.png" alt="" />
</span>
</div>
<div class="main-container">
<h3>Productos destacados</h3>
<swiper-container
init="false"
id="productsSlider"
slides-per-view="1"
navigation="true"
pagination="true"
space-between="20"
class="products-slider"
grab-cursor="true"
autoplay="true"
autoplay-delay="2000"
>
<swiper-slide class="product-card">
<img class="thumbnail" src="public/imgs/furniture_1.png" />
<div class="product-info">
<h2 class="title">Elegant White Sofa</h2>
<p class="description">
Elevate your living space with our elegant white sofa.
</p>
<p class="price">
<span>200€</span>
<button class="add-to-cart">+</button>
</p>
</div>
</swiper-slide>
<swiper-slide class="product-card">
<!-- Aquí va el contenido de otro producto como el de arriba -->
</swiper-slide>
<swiper-slide class="product-card">
<!-- Aquí va el contenido de otro producto como el de arriba -->
</swiper-slide>
</swiper-container>
</div>
<div class="footer">LibreriasJs 2023</div>
<sl-dialog class="history-dialog">
<swiper-container
class="history-dialog-swiper"
effect="cube"
pagination="true"
autoplay="true"
loop="true"
autoplay-delay="1000"
grab-cursor="true">
<swiper-slide class="history-dialog-slide">
<img src="public/imgs/furniture_1.png" alt="" />
</swiper-slide>
<swiper-slide class="history-dialog-slide">
<img src="public/imgs/furniture_2.png" alt="" />
</swiper-slide>
<swiper-slide class="history-dialog-slide">
<img src="public/imgs/furniture_3.png" alt="" />
</swiper-slide>
<swiper-slide class="history-dialog-slide">
<img src="public/imgs/furniture_4.png" alt="" />
</swiper-slide>
</swiper-container>
</sl-dialog>
<script type="module" src="main.js"></script>
</body>
</html>