libreria-astro-lefebvre 0.2.27 → 0.2.30
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
|
@@ -3,9 +3,9 @@ import type { ComponentMetadata } from "../interfaces/types";
|
|
|
3
3
|
export const metadata: ComponentMetadata = {
|
|
4
4
|
component_name: "Contenido_2026_Tokyo",
|
|
5
5
|
category: "Contenido con listas",
|
|
6
|
-
name: "Bloque con
|
|
6
|
+
name: "Bloque con grid lateral de logos clicables 2026",
|
|
7
7
|
description:
|
|
8
|
-
"Bloque de contenido con
|
|
8
|
+
"Bloque de contenido con fondo transparente, título h2, descripción HTML, botón tipo enlace con flecha a la derecha y un grid lateral de logos/imágenes clicables (renderizados con Imagen_2025_Fukushima). El ancho del bloque de texto se adapta automáticamente al número de logos: 1→texto a 2/3, 2→texto a 1/2, 3 o más→texto a 1/3",
|
|
9
9
|
framework: "Astro",
|
|
10
10
|
priority: 1,
|
|
11
11
|
tags: ["contenido", "imagen", "grid", "logos", "cta", "enlace"],
|
|
@@ -53,41 +53,6 @@ export const metadata: ComponentMetadata = {
|
|
|
53
53
|
mandatory: false,
|
|
54
54
|
example_value: "/genia-l/certificaciones",
|
|
55
55
|
},
|
|
56
|
-
{
|
|
57
|
-
name: "subdirectory",
|
|
58
|
-
type: "text",
|
|
59
|
-
help: 'Ruta base del sitio (p. ej. "/genia-l") que se concatena a la URL de la imagen de fondo del bloque (el escudo). Si se deja vacío, la imagen de fondo se carga desde la raíz del sitio: "/images/genial/ico-shield.webp"',
|
|
60
|
-
label: "Subdirectorio",
|
|
61
|
-
mandatory: false,
|
|
62
|
-
example_value: "/genia-l",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "bgColor",
|
|
66
|
-
type: "text",
|
|
67
|
-
help: "Color de fondo del bloque. Acepta nombre CSS o código hex. Si se deja vacío se usa #ebe7da",
|
|
68
|
-
label: "Color de fondo",
|
|
69
|
-
mandatory: false,
|
|
70
|
-
example_value: "#ebe7da",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "showBgImage",
|
|
74
|
-
type: "boolean",
|
|
75
|
-
help: "Activa o desactiva la imagen de fondo del bloque. Si está desactivada solo se ve el color de fondo",
|
|
76
|
-
label: "Mostrar imagen de fondo",
|
|
77
|
-
mandatory: false,
|
|
78
|
-
options: ["false", "true"],
|
|
79
|
-
options_labels: ["Falso", "Verdadero"],
|
|
80
|
-
example_value: true,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "bgImage",
|
|
84
|
-
type: "image",
|
|
85
|
-
help: 'Imagen de fondo del bloque. Solo se usa si "Mostrar imagen de fondo" está activado. Si se deja vacía se usa el escudo por defecto (/images/genial/ico-shield.webp)',
|
|
86
|
-
label: "Imagen de fondo",
|
|
87
|
-
mandatory: false,
|
|
88
|
-
example_value:
|
|
89
|
-
"https://assets.lefebvre.es/media/img/preview-comp/comp-16-9.png",
|
|
90
|
-
},
|
|
91
56
|
{
|
|
92
57
|
name: "items",
|
|
93
58
|
type: "list",
|
|
@@ -83,6 +83,8 @@ const structuredData = `<script type="application/ld+json">
|
|
|
83
83
|
${index === 0 ? 'active' : ''}
|
|
84
84
|
bg-[#ebe7da] text-gray-100 max-w-10 max-h-5 text-[0px] md:w-[150px]
|
|
85
85
|
md:bg-transparent md:text-[#403830] md:max-w-none md:max-h-none md:text-[16px]
|
|
86
|
+
[&.active]:!bg-[#1b1b1b] [&.active]:!text-white [&.active]:max-w-none [&.active]:max-h-none [&.active]:text-[16px]
|
|
87
|
+
md:[&.active]:shadow-[0_2px_4px_0_rgba(107,58,8,0.08),0_4px_8px_0_rgba(107,58,8,0.04)]
|
|
86
88
|
`}
|
|
87
89
|
>{tab.name || `Pestaña ${index + 1}`}</button>
|
|
88
90
|
</p>
|
|
@@ -123,23 +125,6 @@ const structuredData = `<script type="application/ld+json">
|
|
|
123
125
|
|
|
124
126
|
|
|
125
127
|
<style>
|
|
126
|
-
.active{
|
|
127
|
-
background-color: #1b1b1b;
|
|
128
|
-
color: #ffffff;
|
|
129
|
-
max-width: none;
|
|
130
|
-
max-height: none;
|
|
131
|
-
font-size: 16px;
|
|
132
|
-
|
|
133
|
-
&:hover{
|
|
134
|
-
background-color: #1b1b1b;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
@media (min-width: 768px) {
|
|
138
|
-
.active {
|
|
139
|
-
box-shadow: 0 2px 4px 0 rgba(107, 58, 8, 0.08), 0 4px 8px 0 rgba(107, 58, 8, 0.04);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
128
|
.listIco :global(ul) {
|
|
144
129
|
list-style: none;
|
|
145
130
|
padding-left: 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Imagen_2025_Fukushima from './Imagen_2025_Fukushima.astro';
|
|
3
|
-
import { extractImageUrl } from '../../lib/functions.js';
|
|
4
3
|
|
|
5
4
|
const {
|
|
6
5
|
title,
|
|
@@ -8,17 +7,10 @@ const {
|
|
|
8
7
|
buttonText,
|
|
9
8
|
buttonUrl,
|
|
10
9
|
showBtn,
|
|
11
|
-
items
|
|
12
|
-
subdirectory = '',
|
|
13
|
-
bgColor = '#ebe7da',
|
|
14
|
-
showBgImage = true,
|
|
15
|
-
bgImage = ''
|
|
10
|
+
items
|
|
16
11
|
} = Astro.props;
|
|
17
|
-
|
|
18
|
-
// Sin imagen propia se mantiene el escudo por defecto
|
|
19
|
-
const bgImageUrl = extractImageUrl(bgImage) || `${subdirectory}/images/genial/ico-shield.webp`;
|
|
20
12
|
---
|
|
21
|
-
<article class="w-full max-w-7xl flex flex-col md:flex-row text-center items-center justify-center
|
|
13
|
+
<article class="w-full max-w-7xl flex flex-col md:flex-row text-center items-center justify-center py-6 md:py-12 rounded-2xl">
|
|
22
14
|
<div class={`w-full ${items.length === 1 ? 'md:w-2/3' : items.length === 2 ? 'md:w-1/2' : 'md:w-1/3'} flex flex-col text-left p-0 mb-4 md:pl-[140px]`}>
|
|
23
15
|
<h2 class="text-[28px] leading-9 md:text-[32px] md:leading-10 mb-4 font-heading text-[#1b1b1b] font-normal">{title}</h2>
|
|
24
16
|
<div class="max-w-[900px] text-[#403830] font-body font-normal text-base not-italic leading-6 flex flex-col gap-4 mb-8">
|