@lit-roa/hero 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -3
- package/dist/hero.d.ts +94 -0
- package/dist/hero.d.ts.map +1 -0
- package/dist/hero.js +583 -0
- package/dist/hero.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -4
- package/src/hero.ts +587 -0
- package/src/index.ts +2 -0
package/dist/hero.js
ADDED
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, css, html, nothing } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import { emitir, estilosBase, tokens } from '@lit-roa/base';
|
|
10
|
+
import '@lit-roa/carrusel';
|
|
11
|
+
/**
|
|
12
|
+
* Carrusel principal de la página de inicio: siempre empieza con una
|
|
13
|
+
* diapositiva de bienvenida (antetítulo, título, texto, logo y hasta dos
|
|
14
|
+
* botones) y le siguen los anuncios. La portada de la tienda queda de fondo
|
|
15
|
+
* fijo de todo el carrusel; sin portada, un degradado del color principal.
|
|
16
|
+
*
|
|
17
|
+
* Tres disposiciones:
|
|
18
|
+
* - `portada` (por omisión): la portada a todo lo ancho; en los anuncios se
|
|
19
|
+
* tiñe del color principal y la imagen va en una tarjeta a la derecha. En
|
|
20
|
+
* celular los anuncios no muestran imagen.
|
|
21
|
+
* - `dividido`: la portada desenfocada de marco, el texto en una tarjeta
|
|
22
|
+
* blanca y la imagen al lado (arriba en celular).
|
|
23
|
+
* - `escaparate`: la portada desenfocada, la imagen nítida en una tarjeta y
|
|
24
|
+
* pestañas con el título de cada diapositiva y barra de avance.
|
|
25
|
+
*
|
|
26
|
+
* Con `ancho-completo` va de orilla a orilla (sin redondeo) y el contenido
|
|
27
|
+
* queda alineado con el ancho del sitio; se combina con cualquier disposición.
|
|
28
|
+
*
|
|
29
|
+
* @fires clic-hero - Al tocar un botón. `detail`: `{ id, href }`. El sitio navega.
|
|
30
|
+
* @cssprop --lr-hero-alto - Alto mínimo en escritorio (30rem; 34rem con `ancho-completo`).
|
|
31
|
+
* @cssprop --lr-hero-ancho-contenido - Ancho del contenido con `ancho-completo` (1160px).
|
|
32
|
+
* @cssprop --lr-hero-alto-celular - Alto mínimo en celular (32rem).
|
|
33
|
+
* @cssprop --lr-hero-acento - Color de la etiqueta de los anuncios (#facc15).
|
|
34
|
+
*/
|
|
35
|
+
let LrHero = class LrHero extends LitElement {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
/**
|
|
39
|
+
* A todo lo ancho de la pantalla, sin esquinas redondeadas; el contenido se
|
|
40
|
+
* alinea con `--lr-hero-ancho-contenido`. El sitio lo pone fuera de su contenedor.
|
|
41
|
+
*/
|
|
42
|
+
this.anchoCompleto = false;
|
|
43
|
+
this.disposicion = 'portada';
|
|
44
|
+
/** Portada de la tienda: fondo fijo de todo el carrusel. */
|
|
45
|
+
this.portada = '';
|
|
46
|
+
/** Portada para pantallas de hasta 640 px. */
|
|
47
|
+
this.portadaCelular = '';
|
|
48
|
+
/** Logo de la tienda (bienvenida de `dividido` y `escaparate`). */
|
|
49
|
+
this.logo = '';
|
|
50
|
+
this.logoAlt = '';
|
|
51
|
+
this.antetitulo = '';
|
|
52
|
+
this.titulo = '';
|
|
53
|
+
this.texto = '';
|
|
54
|
+
/** Hasta dos botones de la bienvenida (por ejemplo Productos y Eventos). */
|
|
55
|
+
this.botones = [];
|
|
56
|
+
this.anuncios = [];
|
|
57
|
+
/** Milisegundos entre diapositivas; `0` = no avanza solo. */
|
|
58
|
+
this.intervalo = 7000;
|
|
59
|
+
/** Oculta la imagen de los anuncios en celular también en `dividido` y `escaparate`. */
|
|
60
|
+
this.ocultarImagenCelular = false;
|
|
61
|
+
this.etiqueta = 'Inicio';
|
|
62
|
+
this.activa = 0;
|
|
63
|
+
}
|
|
64
|
+
static { this.styles = [
|
|
65
|
+
tokens,
|
|
66
|
+
estilosBase,
|
|
67
|
+
css `
|
|
68
|
+
:host {
|
|
69
|
+
display: block;
|
|
70
|
+
--_oscuro: color-mix(in srgb, var(--_color-primario), #000 50%);
|
|
71
|
+
--_acento: var(--lr-hero-acento, #facc15);
|
|
72
|
+
--_alto: var(--lr-hero-alto, 30rem);
|
|
73
|
+
}
|
|
74
|
+
.marco {
|
|
75
|
+
position: relative;
|
|
76
|
+
isolation: isolate;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
border-radius: var(--_radio);
|
|
79
|
+
background: linear-gradient(135deg, var(--_oscuro), var(--_color-primario));
|
|
80
|
+
color: #fff;
|
|
81
|
+
}
|
|
82
|
+
.fondo,
|
|
83
|
+
.tinte,
|
|
84
|
+
.tinte::before,
|
|
85
|
+
.tinte::after {
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0;
|
|
88
|
+
z-index: -1;
|
|
89
|
+
}
|
|
90
|
+
.fondo img {
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
object-fit: cover;
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
:host([disposicion='dividido']) .fondo,
|
|
97
|
+
:host([disposicion='escaparate']) .fondo {
|
|
98
|
+
inset: -3rem;
|
|
99
|
+
filter: blur(32px) saturate(1.25);
|
|
100
|
+
}
|
|
101
|
+
.tinte::before,
|
|
102
|
+
.tinte::after {
|
|
103
|
+
content: '';
|
|
104
|
+
transition: opacity 0.6s;
|
|
105
|
+
}
|
|
106
|
+
.tinte::after {
|
|
107
|
+
opacity: 0;
|
|
108
|
+
}
|
|
109
|
+
.marco[data-activa='anuncio'] .tinte::before {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
.marco[data-activa='anuncio'] .tinte::after {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
/* Portada: velo oscuro del lado del texto en la bienvenida, color de la marca en los anuncios. */
|
|
116
|
+
.tinte::before {
|
|
117
|
+
background: linear-gradient(90deg, rgb(10 12 30 / 0.82) 0%, rgb(10 12 30 / 0.55) 45%, rgb(10 12 30 / 0) 80%);
|
|
118
|
+
}
|
|
119
|
+
.tinte::after {
|
|
120
|
+
background: linear-gradient(
|
|
121
|
+
105deg,
|
|
122
|
+
color-mix(in srgb, var(--_oscuro) 94%, transparent) 0%,
|
|
123
|
+
color-mix(in srgb, var(--_color-primario) 82%, transparent) 45%,
|
|
124
|
+
color-mix(in srgb, var(--_oscuro) 50%, transparent) 100%
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
:host([disposicion='dividido']) .tinte::before,
|
|
128
|
+
:host([disposicion='dividido']) .tinte::after,
|
|
129
|
+
:host([disposicion='escaparate']) .tinte::before,
|
|
130
|
+
:host([disposicion='escaparate']) .tinte::after {
|
|
131
|
+
background: rgb(10 12 30 / 0.45);
|
|
132
|
+
}
|
|
133
|
+
lr-carrusel {
|
|
134
|
+
--lr-carrusel-radio: 0;
|
|
135
|
+
--lr-carrusel-avance: var(--_acento);
|
|
136
|
+
/* El carrusel pone el color de texto del sitio; aquí manda el del hero. */
|
|
137
|
+
color: inherit;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* ---- Diapositivas ---- */
|
|
141
|
+
.diapositiva {
|
|
142
|
+
position: relative;
|
|
143
|
+
display: flex;
|
|
144
|
+
min-height: var(--_alto);
|
|
145
|
+
padding: clamp(1.5rem, 5vw, 4rem);
|
|
146
|
+
padding-bottom: max(clamp(1.5rem, 5vw, 4rem), var(--lr-carrusel-reserva-abajo, 0px));
|
|
147
|
+
gap: 3rem;
|
|
148
|
+
align-items: center;
|
|
149
|
+
}
|
|
150
|
+
.texto {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
align-items: flex-start;
|
|
154
|
+
gap: 1rem;
|
|
155
|
+
max-width: 36rem;
|
|
156
|
+
min-width: 0;
|
|
157
|
+
}
|
|
158
|
+
.antetitulo {
|
|
159
|
+
font-size: 0.8125rem;
|
|
160
|
+
font-weight: 800;
|
|
161
|
+
letter-spacing: 0.08em;
|
|
162
|
+
text-transform: uppercase;
|
|
163
|
+
color: var(--_acento);
|
|
164
|
+
}
|
|
165
|
+
.etiqueta {
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
padding: 0.375rem 0.75rem;
|
|
168
|
+
border-radius: 999px;
|
|
169
|
+
background: var(--_acento);
|
|
170
|
+
color: #1f2937;
|
|
171
|
+
font-size: 0.8125rem;
|
|
172
|
+
font-weight: 700;
|
|
173
|
+
}
|
|
174
|
+
h2 {
|
|
175
|
+
margin: 0;
|
|
176
|
+
font-size: clamp(1.875rem, 4.5vw, 3.25rem);
|
|
177
|
+
line-height: 1.06;
|
|
178
|
+
font-weight: 800;
|
|
179
|
+
letter-spacing: -0.02em;
|
|
180
|
+
text-wrap: balance;
|
|
181
|
+
}
|
|
182
|
+
.anuncio h2 {
|
|
183
|
+
font-size: clamp(1.75rem, 4vw, 2.875rem);
|
|
184
|
+
}
|
|
185
|
+
p {
|
|
186
|
+
margin: 0;
|
|
187
|
+
font-size: clamp(1rem, 1.8vw, 1.1875rem);
|
|
188
|
+
line-height: 1.5;
|
|
189
|
+
opacity: 0.92;
|
|
190
|
+
}
|
|
191
|
+
.botones {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-wrap: wrap;
|
|
194
|
+
gap: 0.75rem;
|
|
195
|
+
margin-top: 0.5rem;
|
|
196
|
+
}
|
|
197
|
+
.boton {
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
height: 3rem;
|
|
202
|
+
padding: 0 1.375rem;
|
|
203
|
+
border-radius: calc(var(--_radio) / 1.5);
|
|
204
|
+
font-weight: 700;
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
background: var(--_color-primario);
|
|
208
|
+
color: var(--_color-sobre-primario);
|
|
209
|
+
border: 1.5px solid transparent;
|
|
210
|
+
}
|
|
211
|
+
.boton.secundario {
|
|
212
|
+
background: transparent;
|
|
213
|
+
color: #fff;
|
|
214
|
+
border-color: rgb(255 255 255 / 0.85);
|
|
215
|
+
}
|
|
216
|
+
.anuncio .boton {
|
|
217
|
+
background: #fff;
|
|
218
|
+
color: #111827;
|
|
219
|
+
}
|
|
220
|
+
.boton:hover {
|
|
221
|
+
filter: brightness(0.94);
|
|
222
|
+
}
|
|
223
|
+
.boton:focus-visible {
|
|
224
|
+
outline: 2px solid #fff;
|
|
225
|
+
outline-offset: 3px;
|
|
226
|
+
}
|
|
227
|
+
.imagen {
|
|
228
|
+
position: relative;
|
|
229
|
+
flex: 1 1 0;
|
|
230
|
+
align-self: stretch;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
max-height: calc(var(--_alto) - 5rem);
|
|
233
|
+
border-radius: calc(var(--_radio) * 1.25);
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
box-shadow: 0 24px 60px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(255 255 255 / 0.15);
|
|
236
|
+
}
|
|
237
|
+
.imagen img:not(.logo) {
|
|
238
|
+
position: absolute;
|
|
239
|
+
inset: 0;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
object-fit: cover;
|
|
243
|
+
}
|
|
244
|
+
.anuncio .texto {
|
|
245
|
+
flex: 1 1 0;
|
|
246
|
+
}
|
|
247
|
+
.logo {
|
|
248
|
+
width: 5.25rem;
|
|
249
|
+
height: 5.25rem;
|
|
250
|
+
border-radius: 1.25rem;
|
|
251
|
+
object-fit: contain;
|
|
252
|
+
background: #fff;
|
|
253
|
+
box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* ---- Dividido ---- */
|
|
257
|
+
:host([disposicion='dividido']) .diapositiva {
|
|
258
|
+
padding: 1.75rem;
|
|
259
|
+
padding-bottom: max(1.75rem, var(--lr-carrusel-reserva-abajo, 0px));
|
|
260
|
+
gap: 1.5rem;
|
|
261
|
+
align-items: stretch;
|
|
262
|
+
}
|
|
263
|
+
:host([disposicion='dividido']) .texto {
|
|
264
|
+
flex: 1 1 0;
|
|
265
|
+
max-width: none;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
padding: clamp(1.5rem, 4vw, 3rem);
|
|
268
|
+
border-radius: calc(var(--_radio) * 1.25);
|
|
269
|
+
background: #fff;
|
|
270
|
+
color: var(--_color-texto);
|
|
271
|
+
box-shadow: 0 20px 50px rgb(0 0 0 / 0.3);
|
|
272
|
+
}
|
|
273
|
+
:host([disposicion='dividido']) .antetitulo {
|
|
274
|
+
color: var(--_color-primario);
|
|
275
|
+
}
|
|
276
|
+
:host([disposicion='dividido']) p {
|
|
277
|
+
color: var(--_color-texto-suave);
|
|
278
|
+
opacity: 1;
|
|
279
|
+
}
|
|
280
|
+
:host([disposicion='dividido']) .boton.secundario {
|
|
281
|
+
color: var(--_color-primario);
|
|
282
|
+
border-color: var(--_color-primario);
|
|
283
|
+
}
|
|
284
|
+
:host([disposicion='dividido']) .anuncio .boton {
|
|
285
|
+
background: var(--_color-primario);
|
|
286
|
+
color: var(--_color-sobre-primario);
|
|
287
|
+
}
|
|
288
|
+
:host([disposicion='dividido']) .imagen {
|
|
289
|
+
max-height: none;
|
|
290
|
+
box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
|
|
291
|
+
}
|
|
292
|
+
:host([disposicion='dividido']) .imagen.sin-imagen {
|
|
293
|
+
background: linear-gradient(135deg, var(--_oscuro), var(--_color-primario));
|
|
294
|
+
}
|
|
295
|
+
:host([disposicion='dividido']) .imagen .logo {
|
|
296
|
+
position: absolute;
|
|
297
|
+
left: 1.5rem;
|
|
298
|
+
bottom: 1.5rem;
|
|
299
|
+
}
|
|
300
|
+
:host([disposicion='dividido']) .imagen.sin-imagen .logo {
|
|
301
|
+
left: calc(50% - 2.625rem);
|
|
302
|
+
bottom: calc(50% - 2.625rem);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ---- Escaparate ---- */
|
|
306
|
+
:host([disposicion='escaparate']) .bienvenida {
|
|
307
|
+
justify-content: center;
|
|
308
|
+
text-align: center;
|
|
309
|
+
}
|
|
310
|
+
:host([disposicion='escaparate']) .bienvenida .texto {
|
|
311
|
+
align-items: center;
|
|
312
|
+
max-width: 40rem;
|
|
313
|
+
}
|
|
314
|
+
:host([disposicion='escaparate']) .bienvenida .botones {
|
|
315
|
+
justify-content: center;
|
|
316
|
+
}
|
|
317
|
+
:host([disposicion='escaparate']) .bienvenida .boton.principal {
|
|
318
|
+
background: #fff;
|
|
319
|
+
color: #111827;
|
|
320
|
+
}
|
|
321
|
+
:host([disposicion='escaparate']) .imagen {
|
|
322
|
+
flex: 0 1 46%;
|
|
323
|
+
align-self: center;
|
|
324
|
+
aspect-ratio: 3 / 2;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* ---- Ancho completo ---- */
|
|
328
|
+
:host([ancho-completo]) {
|
|
329
|
+
--_alto: var(--lr-hero-alto, 34rem);
|
|
330
|
+
--_lateral: max(0px, calc((100% - var(--lr-hero-ancho-contenido, 1160px)) / 2));
|
|
331
|
+
}
|
|
332
|
+
:host([ancho-completo]) .marco {
|
|
333
|
+
border-radius: 0;
|
|
334
|
+
}
|
|
335
|
+
:host([ancho-completo]) lr-carrusel {
|
|
336
|
+
--lr-carrusel-pestanas-relleno: var(--_lateral);
|
|
337
|
+
}
|
|
338
|
+
@media (min-width: 641px) {
|
|
339
|
+
/* El contenido se alinea con el ancho del sitio; el fondo llega a las orillas. */
|
|
340
|
+
:host([ancho-completo]) .diapositiva {
|
|
341
|
+
padding-inline: max(clamp(1.5rem, 5vw, 4rem), calc(var(--_lateral) + 1rem));
|
|
342
|
+
}
|
|
343
|
+
:host([ancho-completo][disposicion='dividido']) .diapositiva {
|
|
344
|
+
padding-inline: max(1.75rem, calc(var(--_lateral) + 1rem));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@media (max-width: 640px) {
|
|
349
|
+
:host {
|
|
350
|
+
--_alto: var(--lr-hero-alto-celular, 32rem);
|
|
351
|
+
}
|
|
352
|
+
.diapositiva {
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
justify-content: flex-end;
|
|
355
|
+
align-items: stretch;
|
|
356
|
+
gap: 1.25rem;
|
|
357
|
+
padding: 1.5rem 1.375rem;
|
|
358
|
+
padding-bottom: max(1.5rem, var(--lr-carrusel-reserva-abajo, 0px));
|
|
359
|
+
}
|
|
360
|
+
.tinte::before {
|
|
361
|
+
background: linear-gradient(0deg, rgb(10 12 30 / 0.92) 0%, rgb(10 12 30 / 0.6) 45%, rgb(10 12 30 / 0.05) 85%);
|
|
362
|
+
}
|
|
363
|
+
.tinte::after {
|
|
364
|
+
background: linear-gradient(
|
|
365
|
+
0deg,
|
|
366
|
+
color-mix(in srgb, var(--_oscuro) 96%, transparent) 0%,
|
|
367
|
+
color-mix(in srgb, var(--_color-primario) 85%, transparent) 50%,
|
|
368
|
+
color-mix(in srgb, var(--_oscuro) 55%, transparent) 100%
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
.texto,
|
|
372
|
+
.anuncio .texto {
|
|
373
|
+
flex: none;
|
|
374
|
+
}
|
|
375
|
+
.botones {
|
|
376
|
+
flex-direction: column;
|
|
377
|
+
align-self: stretch;
|
|
378
|
+
}
|
|
379
|
+
.boton {
|
|
380
|
+
width: 100%;
|
|
381
|
+
}
|
|
382
|
+
/* Portada: los anuncios no muestran imagen en celular. */
|
|
383
|
+
:host(:not([disposicion])) .anuncio .imagen,
|
|
384
|
+
:host([disposicion='portada']) .anuncio .imagen,
|
|
385
|
+
:host([ocultar-imagen-celular]) .anuncio .imagen {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
.imagen {
|
|
389
|
+
flex: none;
|
|
390
|
+
order: -1;
|
|
391
|
+
height: 9.5rem;
|
|
392
|
+
max-height: none;
|
|
393
|
+
}
|
|
394
|
+
:host([disposicion='escaparate']) .diapositiva {
|
|
395
|
+
justify-content: center;
|
|
396
|
+
text-align: center;
|
|
397
|
+
}
|
|
398
|
+
:host([disposicion='escaparate']) .texto {
|
|
399
|
+
align-items: center;
|
|
400
|
+
align-self: center;
|
|
401
|
+
}
|
|
402
|
+
:host([disposicion='escaparate']) .imagen {
|
|
403
|
+
flex: none;
|
|
404
|
+
aspect-ratio: auto;
|
|
405
|
+
align-self: stretch;
|
|
406
|
+
}
|
|
407
|
+
:host([disposicion='dividido']) .diapositiva {
|
|
408
|
+
gap: 0;
|
|
409
|
+
padding: 0.875rem;
|
|
410
|
+
padding-bottom: max(0.875rem, var(--lr-carrusel-reserva-abajo, 0px));
|
|
411
|
+
justify-content: flex-start;
|
|
412
|
+
}
|
|
413
|
+
:host([disposicion='dividido']) .texto {
|
|
414
|
+
flex: 1 0 auto;
|
|
415
|
+
justify-content: flex-start;
|
|
416
|
+
padding: 1.25rem;
|
|
417
|
+
}
|
|
418
|
+
:host([disposicion='dividido']) .anuncio:not(:has(.imagen)) .texto,
|
|
419
|
+
:host([ocultar-imagen-celular][disposicion='dividido']) .anuncio .texto {
|
|
420
|
+
justify-content: center;
|
|
421
|
+
}
|
|
422
|
+
:host([disposicion='dividido']) .imagen {
|
|
423
|
+
height: 11rem;
|
|
424
|
+
border-radius: calc(var(--_radio) * 1.25) calc(var(--_radio) * 1.25) 0 0;
|
|
425
|
+
box-shadow: none;
|
|
426
|
+
}
|
|
427
|
+
:host([disposicion='dividido']) .imagen + .texto,
|
|
428
|
+
:host([disposicion='dividido']) .texto:has(+ .imagen) {
|
|
429
|
+
border-radius: 0 0 calc(var(--_radio) * 1.25) calc(var(--_radio) * 1.25);
|
|
430
|
+
}
|
|
431
|
+
:host([ocultar-imagen-celular][disposicion='dividido']) .anuncio .texto {
|
|
432
|
+
border-radius: calc(var(--_radio) * 1.25);
|
|
433
|
+
}
|
|
434
|
+
:host([disposicion='dividido']) .imagen .logo {
|
|
435
|
+
width: 4rem;
|
|
436
|
+
height: 4rem;
|
|
437
|
+
border-radius: 0.875rem;
|
|
438
|
+
left: 1rem;
|
|
439
|
+
bottom: 1rem;
|
|
440
|
+
}
|
|
441
|
+
:host([disposicion='dividido']) .imagen.sin-imagen .logo {
|
|
442
|
+
left: calc(50% - 2rem);
|
|
443
|
+
bottom: calc(50% - 2rem);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
`,
|
|
447
|
+
]; }
|
|
448
|
+
render() {
|
|
449
|
+
const escaparate = this.disposicion === 'escaparate';
|
|
450
|
+
return html `
|
|
451
|
+
<div class="marco" data-activa=${this.activa === 0 ? 'bienvenida' : 'anuncio'}>
|
|
452
|
+
${this.portada
|
|
453
|
+
? html `<picture class="fondo" aria-hidden="true">
|
|
454
|
+
${this.portadaCelular ? html `<source media="(max-width: 640px)" srcset=${this.portadaCelular} />` : nothing}
|
|
455
|
+
<img src=${this.portada} alt="" fetchpriority="high" />
|
|
456
|
+
</picture>`
|
|
457
|
+
: nothing}
|
|
458
|
+
<div class="tinte" aria-hidden="true"></div>
|
|
459
|
+
<lr-carrusel
|
|
460
|
+
etiqueta=${this.etiqueta}
|
|
461
|
+
intervalo=${this.intervalo}
|
|
462
|
+
?puntos-encima=${!escaparate}
|
|
463
|
+
?pestanas=${escaparate}
|
|
464
|
+
efecto=${escaparate ? 'desvanecer' : 'deslizar'}
|
|
465
|
+
@cambio-diapositiva=${this.alCambiar}
|
|
466
|
+
>
|
|
467
|
+
${this.bienvenida()} ${this.anuncios.map((a) => this.anuncio(a))}
|
|
468
|
+
</lr-carrusel>
|
|
469
|
+
</div>
|
|
470
|
+
`;
|
|
471
|
+
}
|
|
472
|
+
bienvenida() {
|
|
473
|
+
const dividido = this.disposicion === 'dividido';
|
|
474
|
+
const logo = this.logo ? html `<img class="logo" src=${this.logo} alt=${this.logoAlt} />` : nothing;
|
|
475
|
+
const botones = this.botones.slice(0, 2);
|
|
476
|
+
return html `<article class="diapositiva bienvenida" data-pestana=${this.titulo || 'Bienvenida'} data-pestana-detalle="Inicio">
|
|
477
|
+
<div class="texto">
|
|
478
|
+
${this.disposicion === 'escaparate' ? logo : nothing}
|
|
479
|
+
${this.antetitulo ? html `<span class="antetitulo">${this.antetitulo}</span>` : nothing}
|
|
480
|
+
${this.titulo ? html `<h2>${this.titulo}</h2>` : nothing}
|
|
481
|
+
${this.texto ? html `<p>${this.texto}</p>` : nothing}
|
|
482
|
+
${botones.length
|
|
483
|
+
? html `<div class="botones">
|
|
484
|
+
${botones.map((b, i) => html `<a
|
|
485
|
+
class="boton ${b.variante ?? (i === 0 ? 'principal' : 'secundario')}"
|
|
486
|
+
href=${b.href}
|
|
487
|
+
@click=${(e) => this.alClic(e, b.href)}
|
|
488
|
+
>${b.texto}</a
|
|
489
|
+
>`)}
|
|
490
|
+
</div>`
|
|
491
|
+
: nothing}
|
|
492
|
+
</div>
|
|
493
|
+
${dividido
|
|
494
|
+
? html `<div class="imagen ${this.portada ? '' : 'sin-imagen'}">
|
|
495
|
+
${this.portada ? html `<img src=${this.portadaCelular || this.portada} alt="" />` : nothing} ${logo}
|
|
496
|
+
</div>`
|
|
497
|
+
: nothing}
|
|
498
|
+
</article>`;
|
|
499
|
+
}
|
|
500
|
+
anuncio(a) {
|
|
501
|
+
return html `<article class="diapositiva anuncio" data-pestana=${a.titulo} data-pestana-detalle=${a.etiqueta || a.antetitulo || 'Anuncio'}>
|
|
502
|
+
<div class="texto">
|
|
503
|
+
${a.etiqueta ? html `<span class="etiqueta">${a.etiqueta}</span>` : nothing}
|
|
504
|
+
${a.antetitulo ? html `<span class="antetitulo">${a.antetitulo}</span>` : nothing}
|
|
505
|
+
<h2>${a.titulo}</h2>
|
|
506
|
+
${a.texto ? html `<p>${a.texto}</p>` : nothing}
|
|
507
|
+
${a.boton && a.href
|
|
508
|
+
? html `<div class="botones">
|
|
509
|
+
<a class="boton" href=${a.href} @click=${(e) => this.alClic(e, a.href, a.id)}>${a.boton}</a>
|
|
510
|
+
</div>`
|
|
511
|
+
: nothing}
|
|
512
|
+
</div>
|
|
513
|
+
${a.imagen
|
|
514
|
+
? html `<div class="imagen">
|
|
515
|
+
<picture>
|
|
516
|
+
${a.imagenCelular ? html `<source media="(max-width: 640px)" srcset=${a.imagenCelular} />` : nothing}
|
|
517
|
+
<img src=${a.imagen} alt=${a.imagenAlt ?? ''} loading="lazy" />
|
|
518
|
+
</picture>
|
|
519
|
+
</div>`
|
|
520
|
+
: nothing}
|
|
521
|
+
</article>`;
|
|
522
|
+
}
|
|
523
|
+
alCambiar(evento) {
|
|
524
|
+
evento.stopPropagation();
|
|
525
|
+
this.activa = evento.detail.indice;
|
|
526
|
+
}
|
|
527
|
+
alClic(evento, href, id) {
|
|
528
|
+
if (evento.ctrlKey || evento.metaKey)
|
|
529
|
+
return;
|
|
530
|
+
evento.preventDefault();
|
|
531
|
+
emitir(this, 'clic-hero', { id, href });
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
__decorate([
|
|
535
|
+
property({ type: Boolean, reflect: true, attribute: 'ancho-completo' })
|
|
536
|
+
], LrHero.prototype, "anchoCompleto", void 0);
|
|
537
|
+
__decorate([
|
|
538
|
+
property({ reflect: true })
|
|
539
|
+
], LrHero.prototype, "disposicion", void 0);
|
|
540
|
+
__decorate([
|
|
541
|
+
property()
|
|
542
|
+
], LrHero.prototype, "portada", void 0);
|
|
543
|
+
__decorate([
|
|
544
|
+
property({ attribute: 'portada-celular' })
|
|
545
|
+
], LrHero.prototype, "portadaCelular", void 0);
|
|
546
|
+
__decorate([
|
|
547
|
+
property()
|
|
548
|
+
], LrHero.prototype, "logo", void 0);
|
|
549
|
+
__decorate([
|
|
550
|
+
property({ attribute: 'logo-alt' })
|
|
551
|
+
], LrHero.prototype, "logoAlt", void 0);
|
|
552
|
+
__decorate([
|
|
553
|
+
property()
|
|
554
|
+
], LrHero.prototype, "antetitulo", void 0);
|
|
555
|
+
__decorate([
|
|
556
|
+
property()
|
|
557
|
+
], LrHero.prototype, "titulo", void 0);
|
|
558
|
+
__decorate([
|
|
559
|
+
property()
|
|
560
|
+
], LrHero.prototype, "texto", void 0);
|
|
561
|
+
__decorate([
|
|
562
|
+
property({ attribute: false })
|
|
563
|
+
], LrHero.prototype, "botones", void 0);
|
|
564
|
+
__decorate([
|
|
565
|
+
property({ attribute: false })
|
|
566
|
+
], LrHero.prototype, "anuncios", void 0);
|
|
567
|
+
__decorate([
|
|
568
|
+
property({ type: Number })
|
|
569
|
+
], LrHero.prototype, "intervalo", void 0);
|
|
570
|
+
__decorate([
|
|
571
|
+
property({ type: Boolean, reflect: true, attribute: 'ocultar-imagen-celular' })
|
|
572
|
+
], LrHero.prototype, "ocultarImagenCelular", void 0);
|
|
573
|
+
__decorate([
|
|
574
|
+
property()
|
|
575
|
+
], LrHero.prototype, "etiqueta", void 0);
|
|
576
|
+
__decorate([
|
|
577
|
+
state()
|
|
578
|
+
], LrHero.prototype, "activa", void 0);
|
|
579
|
+
LrHero = __decorate([
|
|
580
|
+
customElement('lr-hero')
|
|
581
|
+
], LrHero);
|
|
582
|
+
export { LrHero };
|
|
583
|
+
//# sourceMappingURL=hero.js.map
|
package/dist/hero.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../src/hero.ts"],"names":[],"mappings":";;;;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AoB;AAxajB,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CAogBlB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-roa/hero",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Carrusel principal de inicio: bienvenida fija, anuncios y la portada de la tienda de fondo, en tres disposiciones.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"src"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./dist/*.js"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "tsc -b"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@lit-roa/base": "^0.7.0",
|
|
27
|
+
"@lit-roa/carrusel": "^0.4.0",
|
|
28
|
+
"lit": "^3.3.3"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT"
|
|
31
|
+
}
|