libreria-astro-lefebvre 0.1.46 → 0.1.48
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
|
},
|
|
@@ -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>
|