libreria-astro-lefebvre 0.1.146 → 0.2.1
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 +1 -0
- package/package.json +1 -1
- package/src/carbins/Contenido_2026_Marruecos.ts +4 -4
- package/src/carbins/Contenido_2026_Moraira.ts +3 -3
- package/src/carbins/Formulario_2025_Seul.ts +8 -0
- package/src/carbins/Separador_2025_Toledo.ts +1 -1
- package/src/carbins/TextImageHeader.ts +1 -1
- package/src/carbins/Texto_2025_Kyoto.ts +8 -0
- package/src/components/Astro/Boton_2026_Elx.astro +1 -1
- package/src/components/Astro/Button.astro +1 -1
- package/src/components/Astro/Cabecera_2025_Madrid.astro +12 -12
- package/src/components/Astro/Cabecera_2026_Bilbao.astro +1 -1
- package/src/components/Astro/Cabecera_2026_Dakota.astro +1 -1
- package/src/components/Astro/Cabecera_2026_Madrid.astro +12 -12
- package/src/components/Astro/Cabecera_2027_Guadalajara.astro +12 -12
- package/src/components/Astro/Calculadora_2026_Lisboa.astro +1 -1
- package/src/components/Astro/Card_2025_Malta.astro +2 -2
- package/src/components/Astro/Contenido_2025_Malaga.astro +1 -1
- package/src/components/Astro/Contenido_2025_Montevideo.astro +2 -2
- package/src/components/Astro/Contenido_2026_Cabra.astro +4 -4
- package/src/components/Astro/Contenido_2026_Estepona.astro +4 -4
- package/src/components/Astro/Contenido_2026_Huesca.astro +1 -1
- package/src/components/Astro/Contenido_2026_Orcasitas.astro +1 -1
- package/src/components/Astro/Contenido_2026_Oslo.astro +1 -1
- package/src/components/Astro/Contenido_2026_Sevilla.astro +1 -1
- package/src/components/Astro/Contenido_2026_Ubeda.astro +1 -1
- package/src/components/Astro/Contenido_2026_Yakarta.astro +1 -1
- package/src/components/Astro/CorpFooter.astro +10 -10
- package/src/components/Astro/CorpNavigation.astro +4 -4
- package/src/components/Astro/Footer_2025_Napoles.astro +1 -1
- package/src/components/Astro/Footer_2026_Napoles.astro +2 -2
- package/src/components/Astro/Formulario_2025_Nara.astro +5 -5
- package/src/components/Astro/Formulario_2025_Seul.astro +18 -16
- package/src/components/Astro/Formulario_2025_Teruel.astro +9 -9
- package/src/components/Astro/Formulario_2026_Carabanchel.astro +8 -8
- package/src/components/Astro/Formulario_2026_Wichita.astro +8 -8
- package/src/components/Astro/GeometricShapeCard.astro +2 -2
- package/src/components/Astro/Grid_2026_Aldaia.astro +1 -1
- package/src/components/Astro/HeaderCorporativo.astro +1 -1
- package/src/components/Astro/Hero_2025_Benidorm.astro +2 -2
- package/src/components/Astro/Hero_2026_Benidorm.astro +2 -2
- package/src/components/Astro/Hero_2026_Lliria.astro +2 -2
- package/src/components/Astro/Imagen_2025_Bogota.astro +2 -1
- package/src/components/Astro/Mapa_2026_Girona.astro +6 -2
- package/src/components/Astro/Modal_2025_Sagunto.astro +1 -1
- package/src/components/Astro/Modal_2026_Almeria.astro +1 -1
- package/src/components/Astro/Test_2026_Gaza.astro +12 -12
- package/src/components/Astro/TextBox.astro +1 -1
- package/src/components/Astro/TextImageBlock.astro +1 -1
- package/src/components/Astro/TextImageCard.astro +1 -1
- package/src/components/Astro/TextImageHeader.astro +1 -1
- package/src/components/Astro/Texto_2025_Kyoto.astro +4 -1
- package/src/components/Astro/Texto_2026_Alicante.astro +2 -1
- package/src/components/Astro/Titulo_2025_Algeciras.astro +4 -1
- package/src/components/Astro/Video_2026_Andujar.astro +1 -1
package/README.md
CHANGED
|
@@ -182,6 +182,7 @@ Mismos valores que `genial-astro` (rama `feature/PWEB-26914-rediseo-rojo`), en h
|
|
|
182
182
|
- `Contenido_2026_Mostoles`: con imagen de fondo el botón lleva fondo blanco (el rojo sobre foto no cumple contraste).
|
|
183
183
|
- Listas de color de `Titulo_2025_Algeciras` y `Mapa_2026_Girona` en beige; los valores guardados con los hex antiguos se siguen pintando tal cual, pero el selector de Mecano puede mostrarlos vacíos.
|
|
184
184
|
- `Formulario_2026_Wichita`: degradado azul sustituido por `#ebe7da` plano.
|
|
185
|
+
- Grises y slate de Tailwind en fondos y bordes (`bg-gray-*`, `border-gray-*`, `bg-slate-*`) → `#ebe7da`, `#e1c8b4` y `#fafaf5`; rojos y rosas de Tailwind → `#d71635`, `#71131f` y `#fff0eb`. Los grises de texto y las variantes `dark:` no se han tocado.
|
|
185
186
|
- Textos de ayuda y descripciones de los carbins actualizados al nuevo color.
|
|
186
187
|
- Pendiente fuera de esta librería: los formularios los inyecta LF2; el borde de los campos sobre blanco debe ser `#6d5e52` (1.4.11).
|
|
187
188
|
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@ import type { ComponentMetadata } from '../interfaces/types';
|
|
|
3
3
|
export const metadata: ComponentMetadata = {
|
|
4
4
|
component_name: 'Contenido_2026_Marruecos',
|
|
5
5
|
category: 'Contenido con listas',
|
|
6
|
-
name: 'Caja con borde
|
|
7
|
-
description: 'Caja rectangular con borde
|
|
6
|
+
name: 'Caja con borde rojo, ítems con icono SVG y CTA siempre visible 2026',
|
|
7
|
+
description: 'Caja rectangular con borde rojo corporativo que contiene título h2, listado de ítems apilados verticalmente (cada uno con icono SVG de 3 variantes fijas — chat, libro o check — subtítulo h3 y descripción) y un botón CTA en la esquina inferior. IMPORTANTE: el botón se renderiza SIEMPRE (no hay toggle para ocultarlo); si el texto está vacío aparece un botón sin label',
|
|
8
8
|
framework: 'Astro',
|
|
9
9
|
priority: 1,
|
|
10
|
-
tags: ['contenido', 'icono', 'card', 'cta', 'boton'
|
|
10
|
+
tags: ['contenido', 'icono', 'card', 'cta', 'boton'],
|
|
11
11
|
fields: [
|
|
12
12
|
{
|
|
13
13
|
name: 'title',
|
|
@@ -42,7 +42,7 @@ export const metadata: ComponentMetadata = {
|
|
|
42
42
|
items: {
|
|
43
43
|
type: 'object',
|
|
44
44
|
fields: [
|
|
45
|
-
{ name: 'icon', type: 'select', help: 'Icono del item (SVG
|
|
45
|
+
{ name: 'icon', type: 'select', help: 'Icono del item (SVG en rojo corporativo). Solo se reconocen 3 valores: "chat" (burbuja de chat), "book" (libro) y "check" (marca de verificación). Si se elige cualquier otro valor, no aparece ningún icono y el hueco queda vacío', label: 'Icono', options: ['chat', 'book', 'check'], options_labels: ['Chat', 'Libro', 'Check'], example_value: 'chat' },
|
|
46
46
|
{ name: 'subtitle', type: 'text', help: 'Subtítulo del item (h3). Se renderiza siempre; si se deja vacío, aparece el h3 vacío. No admite HTML', label: 'Subtítulo', example_value: 'Asistente conversacional' },
|
|
47
47
|
{ name: 'description', type: 'textArea', help: 'Descripción del item. Se renderiza siempre como párrafo; si se deja vacía, aparece el párrafo vacío. No admite HTML', label: 'Descripción', example_value: 'Consulta jurisprudencia y doctrina en lenguaje natural, sin necesidad de construir queries complejas' }
|
|
48
48
|
]
|
|
@@ -4,7 +4,7 @@ export const metadata: ComponentMetadata = {
|
|
|
4
4
|
component_name: 'Contenido_2026_Moraira',
|
|
5
5
|
category: 'Contenido de Imagen',
|
|
6
6
|
name: 'Banner CTA con imagen de fondo y overlay translúcido para legibilidad del texto',
|
|
7
|
-
description: 'Banner CTA con dos variantes alternativas según el toggle "Mostrar imagen" y si hay imagen. Variante 1 (imagen activada y URL rellena): imagen de fondo cover con texto oscuro (#1b1b1b/#403830) superpuesto. Si se marca "Imagen oscura", el bloque de texto aparece dentro de una caja translúcida blanca al 50% con backdrop-blur para garantizar legibilidad; si no, el texto va directamente sobre la imagen (apto para imágenes claras). Variante 2 (imagen desactivada o URL vacía): layout alternativo con borde
|
|
7
|
+
description: 'Banner CTA con dos variantes alternativas según el toggle "Mostrar imagen" y si hay imagen. Variante 1 (imagen activada y URL rellena): imagen de fondo cover con texto oscuro (#1b1b1b/#403830) superpuesto. Si se marca "Imagen oscura", el bloque de texto aparece dentro de una caja translúcida blanca al 50% con backdrop-blur para garantizar legibilidad; si no, el texto va directamente sobre la imagen (apto para imágenes claras). Variante 2 (imagen desactivada o URL vacía): layout alternativo con borde rojo corporativo y fondo blanco. Incluye botón primario configurable y botón secundario que abre modal con formulario LF2 inyectado dinámicamente',
|
|
8
8
|
framework: 'Astro',
|
|
9
9
|
priority: 1,
|
|
10
10
|
tags: ['contenido', 'imagen', 'banner', 'cta', 'boton', 'modal', 'formulario', 'lf2', 'overlay', 'backdrop-blur'],
|
|
@@ -54,7 +54,7 @@ export const metadata: ComponentMetadata = {
|
|
|
54
54
|
{
|
|
55
55
|
name: 'showImage',
|
|
56
56
|
type: 'boolean',
|
|
57
|
-
help: 'Activa/desactiva la imagen de fondo. Si ESTÁ ACTIVADO y "Imagen" tiene valor → layout con imagen de fondo cover y caja translúcida blanca con blur detrás del texto para garantizar legibilidad. Si ESTÁ DESACTIVADO o "Imagen" vacía → layout alternativo con borde
|
|
57
|
+
help: 'Activa/desactiva la imagen de fondo. Si ESTÁ ACTIVADO y "Imagen" tiene valor → layout con imagen de fondo cover y caja translúcida blanca con blur detrás del texto para garantizar legibilidad. Si ESTÁ DESACTIVADO o "Imagen" vacía → layout alternativo con borde rojo corporativo y fondo blanco',
|
|
58
58
|
label: 'Mostrar imagen',
|
|
59
59
|
mandatory: false,
|
|
60
60
|
options: ['false', 'true'],
|
|
@@ -64,7 +64,7 @@ export const metadata: ComponentMetadata = {
|
|
|
64
64
|
{
|
|
65
65
|
name: 'src',
|
|
66
66
|
type: 'image',
|
|
67
|
-
help: 'URL de la imagen de fondo. Solo se usa cuando "Mostrar imagen" está activado. Si se deja vacía, se activa el layout alternativo con borde
|
|
67
|
+
help: 'URL de la imagen de fondo. Solo se usa cuando "Mostrar imagen" está activado. Si se deja vacía, se activa el layout alternativo con borde rojo',
|
|
68
68
|
label: 'Imagen',
|
|
69
69
|
mandatory: false,
|
|
70
70
|
example_value: 'https://assets.lefebvre.es/media/img/preview-comp/comp-w-3-4.png'
|
|
@@ -9,6 +9,14 @@ export const metadata: ComponentMetadata = {
|
|
|
9
9
|
priority: 1,
|
|
10
10
|
tags: ['formulario', 'lf2', 'leads', 'imagen', 'contacto'],
|
|
11
11
|
fields: [
|
|
12
|
+
{
|
|
13
|
+
name: 'categoria',
|
|
14
|
+
type: 'text',
|
|
15
|
+
help: 'Etiqueta opcional (span) encima del título, con bullet rojo, fondo gris suave y tipografía mono en mayúsculas. Solo se muestra si "Mostrar imagen" está desactivado y el campo tiene valor',
|
|
16
|
+
label: 'Categoría',
|
|
17
|
+
mandatory: false,
|
|
18
|
+
example_value: 'Contacto'
|
|
19
|
+
},
|
|
12
20
|
{
|
|
13
21
|
name: 'title',
|
|
14
22
|
type: 'text',
|
|
@@ -4,7 +4,7 @@ export const metadata: ComponentMetadata = {
|
|
|
4
4
|
component_name: 'Separador_2025_Toledo',
|
|
5
5
|
category: 'Separador',
|
|
6
6
|
name: 'Separador horizontal neutro de 1px gris sin parámetros 2025',
|
|
7
|
-
description: 'Línea horizontal gris de 1px (border-top con color #e1c8b4) utilizada como divisor neutro y discreto entre secciones de contenido. Componente sin parámetros configurables. Para separadores más destacados
|
|
7
|
+
description: 'Línea horizontal gris de 1px (border-top con color #e1c8b4) utilizada como divisor neutro y discreto entre secciones de contenido. Componente sin parámetros configurables. Para separadores más destacados en rojo corporativo usa Separador_2025_Reinosa',
|
|
8
8
|
framework: 'Astro',
|
|
9
9
|
priority: 1,
|
|
10
10
|
tags: ['separador', 'hr', 'linea', 'divisor'],
|
|
@@ -5,7 +5,7 @@ import type { ComponentMetadata } from '../interfaces/types';
|
|
|
5
5
|
export const metadata: ComponentMetadata = {
|
|
6
6
|
component_name: 'TextImageHeader',
|
|
7
7
|
category: 'Contenido de Imagen',
|
|
8
|
-
name: 'Contenido de texto con imagen y polígono
|
|
8
|
+
name: 'Contenido de texto con imagen y polígono rojo',
|
|
9
9
|
description: 'Cabecera con texto destacado, imagen y botón de acción personalizable. Ideal para resaltar información clave en páginas principales.',
|
|
10
10
|
framework: 'Astro',
|
|
11
11
|
tags: ['card','lefebvre.es'],
|
|
@@ -9,6 +9,14 @@ export const metadata: ComponentMetadata = {
|
|
|
9
9
|
priority: 1,
|
|
10
10
|
tags: ['texto', 'html', 'titulo', 'contenido'],
|
|
11
11
|
fields: [
|
|
12
|
+
{
|
|
13
|
+
name: 'categoria',
|
|
14
|
+
type: 'text',
|
|
15
|
+
help: 'Etiqueta opcional (span) que se muestra encima del título, con bullet rojo, fondo gris suave y tipografía mono en mayúsculas. Solo se renderiza si tiene valor',
|
|
16
|
+
label: 'Categoría',
|
|
17
|
+
mandatory: false,
|
|
18
|
+
example_value: 'Garantías'
|
|
19
|
+
},
|
|
12
20
|
{
|
|
13
21
|
name: 'title',
|
|
14
22
|
type: 'text',
|
|
@@ -55,7 +55,7 @@ const typeClass = {
|
|
|
55
55
|
{hasModal && (
|
|
56
56
|
<Fragment>
|
|
57
57
|
<!--POPUP-->
|
|
58
|
-
<div id={`elx-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-
|
|
58
|
+
<div id={`elx-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-[#ebe7da]/60 backdrop-blur-sm flex items-center justify-center">
|
|
59
59
|
<div class="flex flex-col w-full md:w-4/5 max-w-[1000px] max-h-[calc(100vh-96px)] m-auto p-4 rounded-2xl bg-white shadow-lg border border-[#e1c8b4] overflow-y-auto modal-guia">
|
|
60
60
|
<div class="w-full flex justify-end">
|
|
61
61
|
<button id={`js-close-elx-popup-${randomId}`} class="js-close-popup w-auto transition-transform hover:scale-125 cursor-pointer">X</button>
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
const { label } = Astro.props;
|
|
4
4
|
|
|
5
5
|
---
|
|
6
|
-
<button class="btn bg-[#d71635] text-
|
|
6
|
+
<button class="btn bg-[#d71635] text-[#f2eee1] p-2 rounded-lg font-bold m-4 cursor-pointer transition-colors duration-300 hover:bg-[#71131f]">{label}</button>
|
|
@@ -81,7 +81,7 @@ const categories = [
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
-
<header class="sticky top-0 w-full font-body bg-
|
|
84
|
+
<header class="sticky top-0 w-full font-body bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50 flex flex-col justify-center align-center items-center p-0 overflow-hidden">
|
|
85
85
|
<nav class="px-4 py-3 w-full">
|
|
86
86
|
|
|
87
87
|
<div class="max-w-7xl flex items-center justify-between mx-auto">
|
|
@@ -90,11 +90,11 @@ const categories = [
|
|
|
90
90
|
</a>
|
|
91
91
|
<div class="flex items-center gap-4">
|
|
92
92
|
<div class="flex items-center gap-4">
|
|
93
|
-
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm text-base border-1 border-[#d71635]
|
|
93
|
+
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm text-base border-1 border-[#d71635] bg-[#d71635] text-[#ffffff] hover:border-[#71131f] hover:bg-[#71131f] transition-all duration-300 rounded-lg cursor-pointer shadow-sm">{label}</a>
|
|
94
94
|
</div>
|
|
95
|
-
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-
|
|
96
|
-
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-
|
|
97
|
-
focus:outline-none focus:ring-2 focus:ring-
|
|
95
|
+
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-[#fafaf5]');"
|
|
96
|
+
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-[#6d5e52] rounded-lg md:hidden hover:bg-[#ebe7da]
|
|
97
|
+
focus:outline-none focus:ring-2 focus:ring-[#e1c8b4] dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
98
98
|
aria-controls="navbar-default" aria-expanded="false">
|
|
99
99
|
<span class="sr-only pointer-events-none">Abrir menú</span>
|
|
100
100
|
<svg class="w-5 h-5 pointer-events-none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
|
|
@@ -106,12 +106,12 @@ const categories = [
|
|
|
106
106
|
|
|
107
107
|
</div>
|
|
108
108
|
</nav>
|
|
109
|
-
<nav class="w-full flex items-center border-y border-
|
|
109
|
+
<nav class="w-full flex items-center border-y border-[#e1c8b4]">
|
|
110
110
|
<ul class="max-w-7xl hidden md:flex items-center justify-start md:gap-2 lg:gap-8 mx-auto">
|
|
111
111
|
{categories.map(category => {
|
|
112
112
|
const isActive = currentPath.includes(category.link);
|
|
113
113
|
return (
|
|
114
|
-
<li class={`relative group border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-
|
|
114
|
+
<li class={`relative group border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-[#ebe7da] ${isActive ? 'border-b-4 border-[#d71635] active' : 'border-transparent'}`}>
|
|
115
115
|
<a href={category.link} class="flex items-center md:px-4 lg:px-8 py-6">
|
|
116
116
|
<span>
|
|
117
117
|
{category.name}
|
|
@@ -125,12 +125,12 @@ const categories = [
|
|
|
125
125
|
)}
|
|
126
126
|
</a>
|
|
127
127
|
{category.subcategories.length > 0 && (
|
|
128
|
-
<ul class="absolute left-0 mt-1 bg-white border border-
|
|
128
|
+
<ul class="absolute left-0 mt-1 bg-white border border-[#e1c8b4] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all z-10 min-w-[280px]"
|
|
129
129
|
|
|
130
130
|
>
|
|
131
131
|
{category.subcategories.map(sub => (
|
|
132
132
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
133
|
-
<a href={sub.link} class="block px-4 py-3 hover:bg-
|
|
133
|
+
<a href={sub.link} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
134
134
|
</li>
|
|
135
135
|
))}
|
|
136
136
|
</ul>
|
|
@@ -140,7 +140,7 @@ const categories = [
|
|
|
140
140
|
</ul>
|
|
141
141
|
</nav>
|
|
142
142
|
|
|
143
|
-
<nav class="hidden w-full bg-white border-
|
|
143
|
+
<nav class="hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
|
|
144
144
|
<div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto">
|
|
145
145
|
|
|
146
146
|
<div class="w-full md:flex md:w-auto">
|
|
@@ -162,12 +162,12 @@ const categories = [
|
|
|
162
162
|
)}
|
|
163
163
|
</a>
|
|
164
164
|
{category.subcategories.length > 0 && (
|
|
165
|
-
<ul class="absolute left-0 mt-1 bg-white border border-
|
|
165
|
+
<ul class="absolute left-0 mt-1 bg-white border border-[#e1c8b4] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all z-10 min-w-[280px]"
|
|
166
166
|
|
|
167
167
|
>
|
|
168
168
|
{category.subcategories.map(sub => (
|
|
169
169
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
170
|
-
<a href={sub.link} class="block px-4 py-3 hover:bg-
|
|
170
|
+
<a href={sub.link} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
171
171
|
</li>
|
|
172
172
|
))}
|
|
173
173
|
</ul>
|
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
} = Astro.props;
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
<header class="sticky top-0 w-full bg-
|
|
9
|
+
<header class="sticky top-0 w-full bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50">
|
|
10
10
|
<nav class="px-4 py-3 w-full">
|
|
11
11
|
<div class={`max-w-7xl mx-auto flex items-center ${logoAlign === 'center' ? 'justify-center' : 'justify-start'}`}>
|
|
12
12
|
<a href={subdirectory + '/'}>
|
|
@@ -12,7 +12,7 @@ const {
|
|
|
12
12
|
} = Astro.props;
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
<header class="w-full bg-
|
|
15
|
+
<header class="w-full bg-[rgba(250,250,245,0.80)]">
|
|
16
16
|
<nav class="px-4 py-3 w-full">
|
|
17
17
|
<div class="max-w-7xl mx-auto grid grid-cols-3 items-center gap-4">
|
|
18
18
|
<div class={`flex ${logoAlign === 'center' ? 'justify-center col-start-2' : 'justify-start col-start-1'}`}>
|
|
@@ -88,7 +88,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
88
88
|
|
|
89
89
|
---
|
|
90
90
|
|
|
91
|
-
<header class="sticky top-0 w-full font-body bg-
|
|
91
|
+
<header class="sticky top-0 w-full font-body bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50 flex flex-col justify-center align-center items-center p-0">
|
|
92
92
|
<nav class="px-4 py-3 w-full">
|
|
93
93
|
|
|
94
94
|
<div class="max-w-7xl flex items-center justify-between mx-auto">
|
|
@@ -97,11 +97,11 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
97
97
|
</a>
|
|
98
98
|
<div class="flex items-center gap-4">
|
|
99
99
|
<div class="flex items-center gap-4">
|
|
100
|
-
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm text-base border-1 border-[#d71635]
|
|
100
|
+
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm text-base border-1 border-[#d71635] bg-[#d71635] text-[#ffffff] hover:border-[#71131f] hover:bg-[#71131f] transition-all duration-300 rounded-lg cursor-pointer shadow-sm">{label}</a>
|
|
101
101
|
</div>
|
|
102
|
-
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-
|
|
103
|
-
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-
|
|
104
|
-
focus:outline-none focus:ring-2 focus:ring-
|
|
102
|
+
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-[#fafaf5]');"
|
|
103
|
+
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-[#6d5e52] rounded-lg md:hidden hover:bg-[#ebe7da]
|
|
104
|
+
focus:outline-none focus:ring-2 focus:ring-[#e1c8b4] dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
105
105
|
aria-controls="navbar-default" aria-expanded="false">
|
|
106
106
|
<span class="sr-only pointer-events-none">Abrir menú</span>
|
|
107
107
|
<svg class="w-5 h-5 pointer-events-none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
|
|
@@ -113,7 +113,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
113
113
|
|
|
114
114
|
</div>
|
|
115
115
|
</nav>
|
|
116
|
-
<nav class="w-full flex items-center border-y border-
|
|
116
|
+
<nav class="w-full flex items-center border-y border-[#e1c8b4]">
|
|
117
117
|
<ul class="max-w-7xl hidden md:flex items-center justify-start md:gap-2 lg:gap-8 mx-auto">
|
|
118
118
|
{categories.map((category, index) => {
|
|
119
119
|
const isActive = currentPath.includes(category.link) ||
|
|
@@ -121,7 +121,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
121
121
|
const hasSub = category.subcategories?.length > 0;
|
|
122
122
|
const submenuId = `${identifier}-d-${index}`;
|
|
123
123
|
return (
|
|
124
|
-
<li class={`relative flex items-center border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-
|
|
124
|
+
<li class={`relative flex items-center border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-[#ebe7da] ${isActive ? 'border-b-4 border-[#d71635] active' : 'border-transparent'}`}>
|
|
125
125
|
<a href={category.link} target={category.target ?? '_self'} class={`flex items-center py-6 md:pl-4 lg:pl-8 ${hasSub ? '' : 'md:pr-4 lg:pr-8'}`}>
|
|
126
126
|
<span>
|
|
127
127
|
{category.name}
|
|
@@ -144,11 +144,11 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
144
144
|
{hasSub && (
|
|
145
145
|
<ul
|
|
146
146
|
id={submenuId}
|
|
147
|
-
class={`${identifier}-submenu absolute left-0 top-full mt-1 bg-white border border-
|
|
147
|
+
class={`${identifier}-submenu absolute left-0 top-full mt-1 bg-white border border-[#e1c8b4] hidden z-10 min-w-[230px]`}
|
|
148
148
|
>
|
|
149
149
|
{category.subcategories?.map(sub => (
|
|
150
150
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
151
|
-
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-
|
|
151
|
+
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
152
152
|
</li>
|
|
153
153
|
))}
|
|
154
154
|
</ul>
|
|
@@ -158,7 +158,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
158
158
|
</ul>
|
|
159
159
|
</nav>
|
|
160
160
|
|
|
161
|
-
<nav class="hidden w-full bg-white border-
|
|
161
|
+
<nav class="hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
|
|
162
162
|
<div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto">
|
|
163
163
|
|
|
164
164
|
<div class="w-full md:flex md:w-auto">
|
|
@@ -192,11 +192,11 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
192
192
|
{hasSub && (
|
|
193
193
|
<ul
|
|
194
194
|
id={submenuId}
|
|
195
|
-
class={`${identifier}-submenu absolute left-0 top-full bg-white border border-
|
|
195
|
+
class={`${identifier}-submenu absolute left-0 top-full bg-white border border-[#e1c8b4] hidden z-10 w-full md:w-auto min-w-[230px]`}
|
|
196
196
|
>
|
|
197
197
|
{category.subcategories?.map(sub => (
|
|
198
198
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
199
|
-
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-
|
|
199
|
+
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
200
200
|
</li>
|
|
201
201
|
))}
|
|
202
202
|
</ul>
|
|
@@ -91,7 +91,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
91
91
|
|
|
92
92
|
---
|
|
93
93
|
|
|
94
|
-
<header class="sticky top-0 w-full font-body bg-
|
|
94
|
+
<header class="sticky top-0 w-full font-body bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50 flex flex-col justify-center align-center items-center p-0">
|
|
95
95
|
<nav class="px-4 py-3 w-full">
|
|
96
96
|
|
|
97
97
|
<div class="max-w-7xl flex items-center justify-between mx-auto">
|
|
@@ -101,12 +101,12 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
101
101
|
<div class="flex items-center gap-4">
|
|
102
102
|
{label && (
|
|
103
103
|
<div class="flex items-center gap-4">
|
|
104
|
-
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm max-[375px]:leading-[21px] text-base leading-6 border-1 border-[#d71635]
|
|
104
|
+
<a href={url} class="h-12 max-[375px] px-3 md:px-5 py-3 font-body font-semibold max-[375px]:text-sm max-[375px]:leading-[21px] text-base leading-6 border-1 border-[#d71635] bg-[#d71635] text-[#ffffff] hover:border-[#71131f] hover:bg-[#71131f] transition-all duration-300 rounded-lg cursor-pointer shadow-sm">{label}</a>
|
|
105
105
|
</div>
|
|
106
106
|
)}
|
|
107
|
-
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-
|
|
108
|
-
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-
|
|
109
|
-
focus:outline-none focus:ring-2 focus:ring-
|
|
107
|
+
<button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-[#fafaf5]');"
|
|
108
|
+
type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-[#6d5e52] rounded-lg md:hidden hover:bg-[#ebe7da]
|
|
109
|
+
focus:outline-none focus:ring-2 focus:ring-[#e1c8b4] dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
110
110
|
aria-controls="navbar-default" aria-expanded="false">
|
|
111
111
|
<span class="sr-only pointer-events-none">Abrir menú</span>
|
|
112
112
|
<svg class="w-5 h-5 pointer-events-none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
|
|
@@ -118,7 +118,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
118
118
|
|
|
119
119
|
</div>
|
|
120
120
|
</nav>
|
|
121
|
-
<nav class="w-full flex items-center border-y border-
|
|
121
|
+
<nav class="w-full flex items-center border-y border-[#e1c8b4]">
|
|
122
122
|
<ul class="max-w-7xl hidden md:flex items-center justify-start md:gap-2 lg:gap-8 mx-auto">
|
|
123
123
|
{categories.map((category, index) => {
|
|
124
124
|
const isActive = currentPath.includes(category.link) ||
|
|
@@ -126,7 +126,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
126
126
|
const hasSub = category.subcategories?.length > 0;
|
|
127
127
|
const submenuId = `${identifier}-d-${index}`;
|
|
128
128
|
return (
|
|
129
|
-
<li class={`relative flex items-center border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-
|
|
129
|
+
<li class={`relative flex items-center border-b-4 hover:border-b-4 hover:border-[#d71635] hover:bg-[#ebe7da] ${isActive ? 'border-b-4 border-[#d71635] active' : 'border-transparent'}`}>
|
|
130
130
|
<a href={category.link} target={category.target ?? '_self'} class={`flex items-center py-6 md:pl-4 lg:pl-8 ${hasSub ? '' : 'md:pr-4 lg:pr-8'}`}>
|
|
131
131
|
<span>
|
|
132
132
|
{category.name}
|
|
@@ -149,11 +149,11 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
149
149
|
{hasSub && (
|
|
150
150
|
<ul
|
|
151
151
|
id={submenuId}
|
|
152
|
-
class={`${identifier}-submenu absolute left-0 top-full mt-1 bg-white border border-
|
|
152
|
+
class={`${identifier}-submenu absolute left-0 top-full mt-1 bg-white border border-[#e1c8b4] hidden z-10 min-w-[230px]`}
|
|
153
153
|
>
|
|
154
154
|
{category.subcategories?.map(sub => (
|
|
155
155
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
156
|
-
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-
|
|
156
|
+
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
157
157
|
</li>
|
|
158
158
|
))}
|
|
159
159
|
</ul>
|
|
@@ -163,7 +163,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
163
163
|
</ul>
|
|
164
164
|
</nav>
|
|
165
165
|
|
|
166
|
-
<nav class="hidden w-full bg-white border-
|
|
166
|
+
<nav class="hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
|
|
167
167
|
<div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto">
|
|
168
168
|
|
|
169
169
|
<div class="w-full md:flex md:w-auto">
|
|
@@ -197,11 +197,11 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
|
|
|
197
197
|
{hasSub && (
|
|
198
198
|
<ul
|
|
199
199
|
id={submenuId}
|
|
200
|
-
class={`${identifier}-submenu absolute left-0 top-full bg-white border border-
|
|
200
|
+
class={`${identifier}-submenu absolute left-0 top-full bg-white border border-[#e1c8b4] hidden z-10 w-full md:w-auto min-w-[230px]`}
|
|
201
201
|
>
|
|
202
202
|
{category.subcategories?.map(sub => (
|
|
203
203
|
<li class="hover:text-[#d71635] hover:font-semibold">
|
|
204
|
-
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-
|
|
204
|
+
<a href={sub.link} target={sub.target ?? '_self'} class="block px-4 py-3 hover:bg-[#ebe7da]">{sub.name}</a>
|
|
205
205
|
</li>
|
|
206
206
|
))}
|
|
207
207
|
</ul>
|
|
@@ -20,7 +20,7 @@ const randomId = Math.floor(Math.random() * 1000);
|
|
|
20
20
|
<section class="w-full flex justify-center [background:conic-gradient(from_180deg_at_50%_44.39%,rgba(107,58,8,0.01)_0.07096946937963367deg,rgba(255,255,255,0.17)_177.9798674583435deg),var(--Background-Base,#FFF)]" id={`comp-Calc-${randomId}`}>
|
|
21
21
|
<article class="w-full max-w-7xl flex flex-col py-6 px-4">
|
|
22
22
|
{tag && (
|
|
23
|
-
<span class="text-[#403830] text-center font-body text-base not-italic font-normal leading-6 flex items-center justify-center gap-2.5 w-fit py-2 px-3 rounded bg-[
|
|
23
|
+
<span class="text-[#403830] text-center font-body text-base not-italic font-normal leading-6 flex items-center justify-center gap-2.5 w-fit py-2 px-3 rounded bg-[rgba(107,58,8,0.10)] mb-8">{tag}</span>
|
|
24
24
|
)}
|
|
25
25
|
|
|
26
26
|
<div class="flex flex-col md:flex-row items-center gap-6">
|
|
@@ -37,7 +37,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
37
37
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 w-full px-8 md:px-0 md:pb-12">
|
|
38
38
|
{items.map((item) => (
|
|
39
39
|
<div class="w-full flex flex-col px-0">
|
|
40
|
-
<article class="relative w-full h-full flex flex-col rounded-lg border border-
|
|
40
|
+
<article class="relative w-full h-full flex flex-col rounded-lg border border-[#e1c8b4] items-center shadow-article hover:bg-[#d71635] transition-all duration-300 p-[1px]">
|
|
41
41
|
<div class="bg-white mt-[1px] rounded-tl-[7px] rounded-tr-[7px] w-full h-full">
|
|
42
42
|
<div class="p-6 flex-grow flex flex-col">
|
|
43
43
|
<div class="mt-2 flex items-center gap-2 flex-grow">
|
|
@@ -47,7 +47,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
|
-
<div class="bg-
|
|
50
|
+
<div class="bg-[#fff0eb] h-3"></div>
|
|
51
51
|
</article>
|
|
52
52
|
</div>
|
|
53
53
|
))}
|
|
@@ -237,7 +237,7 @@ const videoUrl = iframeSrc || '';
|
|
|
237
237
|
|
|
238
238
|
|
|
239
239
|
<!--POPUP-->
|
|
240
|
-
<div id={`teruel-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-
|
|
240
|
+
<div id={`teruel-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-[#ebe7da]/60 backdrop-blur-sm flex items-center justify-center">
|
|
241
241
|
<div class="flex flex-col w-full md:w-4/5 max-w-[1000px] max-h-[calc(100vh-96px)] m-auto p-4 rounded-2xl bg-white shadow-lg border border-[#e1c8b4] overflow-y-auto modal-guia">
|
|
242
242
|
<div class="w-full flex justify-end">
|
|
243
243
|
<button id={`js-close-teruel-popup-${randomId}`} class="js-close-popup w-auto transition-transform hover:scale-125 cursor-pointer">X</button>
|
|
@@ -16,7 +16,7 @@ const imageUrl = extractImageUrl(image);
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<div class="w-full flex flex-col px-0">
|
|
19
|
-
<article class="relative w-full md:max-w-[400px] h-full flex flex-col rounded-lg border border-
|
|
19
|
+
<article class="relative w-full md:max-w-[400px] h-full flex flex-col rounded-lg border border-[#e1c8b4] items-center shadow-article hover:bg-[#d71635] transition-all duration-300 p-px">
|
|
20
20
|
<div class="w-full bg-white mt-px rounded-tl-[7px] rounded-tr-[7px] h-full">
|
|
21
21
|
<div class="w-full">
|
|
22
22
|
<img class="cursor-pointer rounded-tr-lg rounded-tl-lg mx-auto w-full" src={imageUrl} alt={altImage} width="400" height="225" loading="lazy" />
|
|
@@ -34,7 +34,7 @@ const imageUrl = extractImageUrl(image);
|
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
-
<div class="bg-
|
|
37
|
+
<div class="bg-[#fff0eb] h-3"></div>
|
|
38
38
|
</article>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
@@ -65,7 +65,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
65
65
|
<section class="w-full flex items-center justify-center">
|
|
66
66
|
<article class="w-full flex flex-col items-center justify-center">
|
|
67
67
|
<div class="w-full flex justify-center items-center relative text-[56px] text-center font-body leading-[64px] mt-10">
|
|
68
|
-
<!-- <div class="flex bg-transparent md:bg-
|
|
68
|
+
<!-- <div class="flex bg-transparent md:bg-[#fafaf5] md:border md:border-[#e1c8b4] rounded-lg"> -->
|
|
69
69
|
<div class="flex gap-1 md:gap-8 items-center">
|
|
70
70
|
{tabs.map((tab: Tab, index: number) => (
|
|
71
71
|
<p class="font-body text-base">
|
|
@@ -75,8 +75,8 @@ const structuredData = `<script type="application/ld+json">
|
|
|
75
75
|
cursor-pointer border border-[#e1c8b4]
|
|
76
76
|
hover:border hover:border-[#6d5e52] hover:!bg-[#ffffff] rounded-lg ${identifier}button
|
|
77
77
|
${index === 0 ? 'active' : ''}
|
|
78
|
-
bg-
|
|
79
|
-
md:bg-
|
|
78
|
+
bg-ebe7da text-gray-100 max-w-10 max-h-5 text-[0px] md:w-[150px]
|
|
79
|
+
md:bg-[#fafaf5] md:text-black md:max-w-none md:max-h-none md:text-[16px]
|
|
80
80
|
`}
|
|
81
81
|
>{tab.name}</button>
|
|
82
82
|
</p>
|
|
@@ -121,7 +121,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
<style>
|
|
124
|
-
.bg-
|
|
124
|
+
.bg-ebe7da {
|
|
125
125
|
background-color: #ebe7da;
|
|
126
126
|
}
|
|
127
127
|
.active{
|
|
@@ -71,7 +71,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
71
71
|
<article class="w-full flex flex-col items-center justify-center">
|
|
72
72
|
{showTabBar && (
|
|
73
73
|
<div class="w-full flex justify-center items-center relative text-[56px] text-center font inter leading-[64px] mt-10">
|
|
74
|
-
<!-- <div class="flex bg-transparent md:bg-
|
|
74
|
+
<!-- <div class="flex bg-transparent md:bg-[#fafaf5] md:border md:border-[#e1c8b4] rounded-lg"> -->
|
|
75
75
|
<div class="flex gap-1 md:gap-8 items-center">
|
|
76
76
|
{tabs.map((tab: Tab, index: number) => (
|
|
77
77
|
<p class="font-body text-base">
|
|
@@ -81,8 +81,8 @@ const structuredData = `<script type="application/ld+json">
|
|
|
81
81
|
cursor-pointer border border-[#e1c8b4]
|
|
82
82
|
hover:border hover:border-[#6d5e52] hover:!bg-[#ffffff] rounded-lg ${identifier}button
|
|
83
83
|
${index === 0 ? 'active' : ''}
|
|
84
|
-
bg-
|
|
85
|
-
md:bg-
|
|
84
|
+
bg-ebe7da text-gray-100 max-w-10 max-h-5 text-[0px] md:w-[150px]
|
|
85
|
+
md:bg-[#fafaf5] md:text-black md:max-w-none md:max-h-none md:text-[16px]
|
|
86
86
|
`}
|
|
87
87
|
>{tab.name || `Pestaña ${index + 1}`}</button>
|
|
88
88
|
</p>
|
|
@@ -123,7 +123,7 @@ const structuredData = `<script type="application/ld+json">
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
<style>
|
|
126
|
-
.bg-
|
|
126
|
+
.bg-ebe7da {
|
|
127
127
|
background-color: #ebe7da;
|
|
128
128
|
}
|
|
129
129
|
.active{
|
|
@@ -24,7 +24,7 @@ const randomId = Math.floor(Math.random() * 1000);
|
|
|
24
24
|
<section class="w-full max-w-7xl flex justify-center [background:conic-gradient(from_180deg_at_50%_44.39%,rgba(107,58,8,0.01)_0.07096946937963367deg,rgba(255,255,255,0.17)_177.9798674583435deg),var(--Background-Base,#FFF)]" id={`comp-ContHuesca-${randomId}`}>
|
|
25
25
|
<article class="w-full justify-center max-w-7xl flex flex-col py-6 px-4">
|
|
26
26
|
{tag && (
|
|
27
|
-
<span class="text-[#403830] text-center font-body text-base not-italic font-normal leading-6 flex items-center justify-center gap-2.5 w-fit py-2 px-3 rounded bg-[
|
|
27
|
+
<span class="text-[#403830] text-center font-body text-base not-italic font-normal leading-6 flex items-center justify-center gap-2.5 w-fit py-2 px-3 rounded bg-[rgba(107,58,8,0.10)] mb-8">{tag}</span>
|
|
28
28
|
)}
|
|
29
29
|
|
|
30
30
|
<div class="flex flex-col md:flex-row items-center gap-6">
|
|
@@ -137,7 +137,7 @@ const structuredData = items.length > 0 ? `<script type="application/ld+json">
|
|
|
137
137
|
</div>
|
|
138
138
|
|
|
139
139
|
<div id={"popup-iframe-modal-" + randomId } class="fixed w-full h-full top-0 left-0 z-9999 hidden">
|
|
140
|
-
<div class="flex flex-col justify-center items-center w-full h-full bg-
|
|
140
|
+
<div class="flex flex-col justify-center items-center w-full h-full bg-[#ebe7da]/90 p-4">
|
|
141
141
|
<div class="w-full flex justify-end">
|
|
142
142
|
<button class="js-close-popup w-auto m-4 p-2 bg-white rounded transition-transform hover:scale-125 cursor-pointer">X</button>
|
|
143
143
|
</div>
|
|
@@ -48,7 +48,7 @@ const structuredDataScript = `<script type="application/ld+json">${structuredDat
|
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
50
|
<div id={"popup-iframe-modal-" + randomId } class="fixed w-full h-full top-0 left-0 z-9999 hidden">
|
|
51
|
-
<div class="flex flex-col justify-center items-center w-full h-full bg-
|
|
51
|
+
<div class="flex flex-col justify-center items-center w-full h-full bg-[#ebe7da]/90 p-4">
|
|
52
52
|
<div class="w-full flex justify-end">
|
|
53
53
|
<button class="js-close-popup w-auto m-4 p-2 bg-white rounded transition-transform hover:scale-125 cursor-pointer">X</button>
|
|
54
54
|
</div>
|
|
@@ -170,7 +170,7 @@ const imageUrl = imageBase || extractImageUrl(image);
|
|
|
170
170
|
)}
|
|
171
171
|
</section>
|
|
172
172
|
|
|
173
|
-
<div id={`teruel-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-
|
|
173
|
+
<div id={`teruel-popup-modal-${randomId}`} class="fixed w-full h-full pt-12 top-0 left-0 z-9999 hidden bg-[#ebe7da]/60 backdrop-blur-sm flex items-center justify-center">
|
|
174
174
|
<div class="flex flex-col w-full md:w-4/5 max-w-[1000px] max-h-[calc(100vh-96px)] m-auto p-4 rounded-2xl bg-white shadow-lg border border-[#e1c8b4] overflow-y-auto modal-guia">
|
|
175
175
|
<div class="w-full flex justify-end">
|
|
176
176
|
<button id={`js-close-teruel-popup-${randomId}`} class="js-close-popup w-auto transition-transform hover:scale-125 cursor-pointer">X</button>
|
|
@@ -29,7 +29,7 @@ const { pageId = PAGE_ENTITY_ID, itemListId = '' } = Astro.props;
|
|
|
29
29
|
}
|
|
30
30
|
</script>`;
|
|
31
31
|
---
|
|
32
|
-
<section class="w-full flex items-center justify-center bg-[
|
|
32
|
+
<section class="w-full flex items-center justify-center bg-[rgba(107,58,8,0.04)] py-12">
|
|
33
33
|
<article class="flex flex-col items-center justify-center p-4">
|
|
34
34
|
<div class="flex flex-col md:flex-row items-center gap-4">
|
|
35
35
|
{items.map(item => (
|
|
@@ -71,7 +71,7 @@ const structuredData = items.length > 0 ? `<script type="application/ld+json">
|
|
|
71
71
|
hover:bg-white rounded-lg ${idAccordion}button
|
|
72
72
|
${item.default ? 'active' : ''}
|
|
73
73
|
text-gray-100 max-w-10 max-h-5 text-[0px]
|
|
74
|
-
md:bg-
|
|
74
|
+
md:bg-[#fafaf5] md:text-black md:max-w-none md:max-h-none md:text-[16px]
|
|
75
75
|
[&.active]:bg-white [&.active]:border-[#6d5e52] [&.active]:text-black
|
|
76
76
|
[&.active]:max-w-none [&.active]:max-h-none [&.active]:text-[16px]
|
|
77
77
|
`}
|