libreria-astro-lefebvre 0.2.42 → 0.2.43
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
|
@@ -85,6 +85,14 @@ export const metadata: ComponentMetadata = {
|
|
|
85
85
|
options_labels: ['Falso', 'Verdadero'],
|
|
86
86
|
example_value: true
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
name: 'backgroundColor',
|
|
90
|
+
type: 'text',
|
|
91
|
+
help: 'Fondo del bloque. Admite cualquier valor CSS: hexadecimal (#ebe7da), rgba (rgba(0,0,0,0.5)), nombre (white), degradado (linear-gradient(90deg, #fff, #ebe7da)) o transparent. Si se deja vacío, se usa #ebe7da',
|
|
92
|
+
label: 'Color de fondo',
|
|
93
|
+
mandatory: false,
|
|
94
|
+
example_value: '#ebe7da'
|
|
95
|
+
},
|
|
88
96
|
{
|
|
89
97
|
name: 'subdirectory',
|
|
90
98
|
type: 'text',
|
|
@@ -13,8 +13,12 @@ const {
|
|
|
13
13
|
loading = "lazy",
|
|
14
14
|
subdirectory = '',
|
|
15
15
|
siteUrl = '',
|
|
16
|
+
backgroundColor = '#ebe7da',
|
|
16
17
|
} = Astro.props;
|
|
17
18
|
|
|
19
|
+
// `background` (no `background-color`) para admitir también degradados.
|
|
20
|
+
const bgValue = String(backgroundColor || '').trim() || '#ebe7da';
|
|
21
|
+
|
|
18
22
|
const imageSrcUrl = extractImageUrl(imageSrc);
|
|
19
23
|
const idTargetLf2 = 'lf2-form-' + Math.random().toString(36).substring(2, 15);
|
|
20
24
|
const forceSkeleton = !lf2FormTitle;
|
|
@@ -43,7 +47,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
43
47
|
|
|
44
48
|
|
|
45
49
|
|
|
46
|
-
<div class="w-full flex flex-col md:flex-row
|
|
50
|
+
<div class="w-full flex flex-col md:flex-row px-8 lg:px-[120px] py-20 gap-8" style={`background: ${bgValue}`}>
|
|
47
51
|
<div class="max-w-[1376px] w-full mx-auto flex justify-start flex-col">
|
|
48
52
|
{showImage ? (
|
|
49
53
|
<article class="flex flex-col items-center justify-center">
|