libreria-astro-lefebvre 0.1.47 → 0.1.49
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/package.json
CHANGED
|
@@ -24,13 +24,29 @@ export const metadata: ComponentMetadata = {
|
|
|
24
24
|
help: 'Logo que se muestra en el extremo derecho de la cabecera. Altura máxima 74px',
|
|
25
25
|
label: 'Logo derecho',
|
|
26
26
|
mandatory: false,
|
|
27
|
-
example_value: 'https://assets.lefebvre.es/media/
|
|
27
|
+
example_value: 'https://assets.lefebvre.es/media/logos/web/clientes/icam-centinela-132x50.png'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'rightLogoWidth',
|
|
31
|
+
type: 'text',
|
|
32
|
+
help: 'Anchura del logo derecho en píxeles (sin unidades). Ayuda a evitar saltos de layout (CLS)',
|
|
33
|
+
label: 'Anchura del logo derecho',
|
|
34
|
+
mandatory: false,
|
|
35
|
+
example_value: '132'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'rightLogoHeight',
|
|
39
|
+
type: 'text',
|
|
40
|
+
help: 'Altura del logo derecho en píxeles (sin unidades). Ayuda a evitar saltos de layout (CLS)',
|
|
41
|
+
label: 'Altura del logo derecho',
|
|
42
|
+
mandatory: false,
|
|
43
|
+
example_value: '50'
|
|
28
44
|
},
|
|
29
45
|
{
|
|
30
46
|
name: 'rightLogoAlt',
|
|
31
47
|
type: 'text',
|
|
32
48
|
help: 'Texto alternativo del logo derecho para accesibilidad',
|
|
33
|
-
label: 'Alt del logo derecho',
|
|
49
|
+
label: 'Alt del logo derecho',
|
|
34
50
|
mandatory: false,
|
|
35
51
|
example_value: 'Logo'
|
|
36
52
|
},
|
|
@@ -68,7 +68,7 @@ export const metadata: ComponentMetadata = {
|
|
|
68
68
|
{
|
|
69
69
|
name: 'titleModal',
|
|
70
70
|
type: 'text',
|
|
71
|
-
help: 'Título del modal (h2). Si se deja vacío no se renderiza. No admite HTML',
|
|
71
|
+
help: 'Título del modal (p con estilos h2). Si se deja vacío no se renderiza. No admite HTML',
|
|
72
72
|
label: 'Título del modal',
|
|
73
73
|
mandatory: false,
|
|
74
74
|
example_value: 'Aprende a utilizar GenIA-L'
|
|
@@ -5,6 +5,8 @@ const {
|
|
|
5
5
|
logoAlign = 'left',
|
|
6
6
|
rightLogo = '',
|
|
7
7
|
rightLogoAlt = '',
|
|
8
|
+
rightLogoWidth = '160',
|
|
9
|
+
rightLogoHeight = '40',
|
|
8
10
|
subdirectory = '',
|
|
9
11
|
loading = 'eager' as 'lazy' | 'eager',
|
|
10
12
|
} = Astro.props;
|
|
@@ -22,10 +24,10 @@ const {
|
|
|
22
24
|
<LimboImage
|
|
23
25
|
src={rightLogo}
|
|
24
26
|
alt={rightLogoAlt}
|
|
25
|
-
fallback="https://assets.lefebvre.es/media/
|
|
27
|
+
fallback="https://assets.lefebvre.es/media/logos/web/clientes/icam-centinela-132x50.png"
|
|
26
28
|
class="w-auto max-h-[74px] object-contain"
|
|
27
|
-
width=
|
|
28
|
-
height=
|
|
29
|
+
width={rightLogoWidth}
|
|
30
|
+
height={rightLogoHeight}
|
|
29
31
|
loading={loading}
|
|
30
32
|
/>
|
|
31
33
|
</div>
|
|
@@ -57,7 +57,7 @@ const uid = 'almeria-' + Math.random().toString(36).substring(2, 11);
|
|
|
57
57
|
)}
|
|
58
58
|
<div class={imageModalUrl ? "w-full lg:w-2/3" : "w-full"}>
|
|
59
59
|
{titleModal && (
|
|
60
|
-
<
|
|
60
|
+
<p class="font-poppins text-[#262626] text-[28px] lg:text-[32px] font-normal text-left leading-10 mb-8">{titleModal}</p>
|
|
61
61
|
)}
|
|
62
62
|
{descriptionModal && (
|
|
63
63
|
<div class="font-inter text-base font-normal leading-6 mb-8" set:html={descriptionModal} />
|