libreria-astro-lefebvre 0.2.1 → 0.2.2
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 +1 -1
- package/src/components/Astro/Cabecera_2025_Madrid.astro +1 -1
- package/src/components/Astro/Cabecera_2026_Madrid.astro +1 -1
- package/src/components/Astro/Cabecera_2027_Guadalajara.astro +1 -1
- package/src/components/Astro/Contenido_2025_Granada.astro +1 -1
- package/src/components/Astro/Contenido_2026_Marruecos.astro +1 -1
- package/src/components/Astro/FAQ_2025_Hiroshima.astro +16 -2
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ const categories = [
|
|
|
106
106
|
|
|
107
107
|
</div>
|
|
108
108
|
</nav>
|
|
109
|
-
<nav class="w-full flex items-center
|
|
109
|
+
<nav class="w-full flex items-center">
|
|
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,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
|
|
116
|
+
<nav class="w-full flex items-center">
|
|
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) ||
|
|
@@ -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
|
|
121
|
+
<nav class="w-full flex items-center">
|
|
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) ||
|
|
@@ -15,7 +15,7 @@ const {
|
|
|
15
15
|
|
|
16
16
|
<div class={`flex ${positionFlex === 'items-start' ? 'items-start' : 'items-center'} w-full p-0 md:p-6 md:pl-0 gap-4 mb-4 md:mb-0 ${flexOrientationIcoText === 'flex-row'? 'flex-row w-full': `flex-col ${widthBlock}`}`}>
|
|
17
17
|
{showIco ? (
|
|
18
|
-
<div class="flex items-center justify-center bg-[
|
|
18
|
+
<div class="flex items-center justify-center bg-[rgba(107,58,8,0.04)] p-3 w-12 h-12 rounded-full">
|
|
19
19
|
{
|
|
20
20
|
icon === "more" ? (
|
|
21
21
|
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="#d71635" class="ico-more">
|
|
@@ -21,7 +21,7 @@ const {
|
|
|
21
21
|
<div class="flex flex-col gap-6">
|
|
22
22
|
{items.map((item: RepetidorItem) => (
|
|
23
23
|
<div class="flex flex-row items-start gap-4">
|
|
24
|
-
<div class="flex items-center justify-center bg-[
|
|
24
|
+
<div class="flex items-center justify-center bg-[rgba(107,58,8,0.04)] p-3 w-12 h-12 rounded-full shrink-0">
|
|
25
25
|
{item.icon === "chat" ? (
|
|
26
26
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
27
27
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.5068 0.00615572C11.7749 0.0702933 11.2324 0.183858 10.6571 0.393387C9.16016 0.938615 7.87344 2.04829 7.12344 3.44084L7.00386 3.66286L6.80167 3.69061C4.64525 3.98641 2.63504 5.24395 1.38113 7.08151C0.0471932 9.03633 -0.345184 11.4905 0.312061 13.7681C0.420033 14.1422 0.552144 14.4977 0.728021 14.8876C0.898488 15.2654 0.897124 15.3337 0.704669 16.0511C0.620025 16.3667 0.535774 16.7032 0.51744 16.7991C0.402046 17.4024 0.61221 18.0492 1.06586 18.4868C1.33507 18.7465 1.64271 18.9107 1.99703 18.9838C2.40088 19.0672 2.56223 19.0478 3.45952 18.8075C4.23336 18.6003 4.20698 18.599 4.83456 18.8745C5.51552 19.1734 6.25452 19.3675 7.10813 19.4718C7.41549 19.5094 8.47499 19.5094 8.78436 19.4718C9.59302 19.3736 10.2864 19.1967 10.9792 18.9118C13.5567 17.8519 15.425 15.4597 15.814 12.7213C15.837 12.5595 15.8479 12.5306 15.8905 12.5192C15.9896 12.4926 16.1319 12.5064 16.346 12.5634C16.765 12.675 16.8852 12.6947 17.1424 12.6942C17.4564 12.6935 17.6833 12.6393 17.9747 12.4955C18.5834 12.1951 18.977 11.5967 19.0196 10.9071C19.0349 10.6582 19.0162 10.5295 18.8953 10.0535C18.8019 9.68615 18.8072 9.60691 18.9474 9.27262C19.1958 8.68025 19.3684 8.06416 19.4578 7.45148C19.5079 7.10783 19.5151 6.15511 19.4701 5.82087C19.3595 4.99936 19.1696 4.36835 18.8183 3.65525C18.4926 2.99412 18.0545 2.39498 17.5093 1.86506C17.1605 1.52612 16.9472 1.35353 16.5457 1.08532C15.7272 0.538755 14.7891 0.188507 13.7668 0.047858C13.521 0.0140429 12.7195 -0.0124865 12.5068 0.00615572ZM12.2755 1.48428C11.327 1.60081 10.4427 1.97967 9.6745 2.59865C9.40371 2.81683 9.03496 3.1931 8.83708 3.45316L8.69727 3.6369L9.07027 3.68867C10.8676 3.93807 12.5449 4.8177 13.7833 6.16034C14.9902 7.46892 15.7051 9.08492 15.8715 10.8804L15.887 11.0481H16.0102C16.1895 11.0481 16.4539 11.0888 16.6977 11.154C17.0766 11.2553 17.1467 11.2658 17.2463 11.2359C17.4288 11.1812 17.5701 10.9988 17.5701 10.8178C17.5701 10.7665 17.533 10.5834 17.4876 10.4108C17.3142 9.75142 17.3454 9.33176 17.6154 8.6889C18.1222 7.48271 18.1958 6.28123 17.8358 5.0931C17.2379 3.11989 15.5084 1.69249 13.4498 1.47332C13.1531 1.44175 12.5781 1.44709 12.2755 1.48428ZM7.39091 5.08038C6.502 5.16675 5.76012 5.38386 4.96429 5.79054C3.1756 6.70464 1.89315 8.44757 1.54928 10.4318C1.47204 10.8775 1.44753 11.2529 1.46233 11.7635C1.48861 12.6707 1.65584 13.3971 2.0371 14.26C2.23483 14.7076 2.28983 14.9109 2.30446 15.2483C2.31954 15.5955 2.30391 15.6877 2.10105 16.4488C2.01287 16.7795 1.94073 17.0975 1.94073 17.1554C1.94071 17.2808 2.01974 17.4174 2.13996 17.4998C2.28729 17.6008 2.37949 17.592 3.05209 17.4131C3.85908 17.1984 3.89568 17.192 4.24723 17.2065C4.60063 17.221 4.79456 17.2728 5.24999 17.4741C6.11279 17.8556 6.84007 18.0232 7.74394 18.0487C8.41679 18.0678 8.90993 18.0175 9.51265 17.8684C11.8691 17.2857 13.7165 15.4165 14.2759 13.0488C14.3977 12.5333 14.4341 12.1901 14.4341 11.5569C14.4341 10.8895 14.3951 10.5513 14.2527 9.98415C13.6099 7.42463 11.5039 5.51769 8.8884 5.12713C8.52248 5.07247 7.72757 5.04765 7.39091 5.08038ZM4.53672 10.8873C4.38177 10.9487 4.21914 11.1074 4.14481 11.2699C4.09399 11.3809 4.0874 11.4227 4.09477 11.5872C4.10784 11.8791 4.23227 12.0777 4.48396 12.2084C4.57161 12.2539 4.62259 12.2624 4.80765 12.2624C4.99277 12.2624 5.04364 12.2539 5.13133 12.2083C5.34617 12.0967 5.48498 11.9113 5.51969 11.6898C5.57046 11.3656 5.43005 11.0732 5.15054 10.921C4.98438 10.8305 4.71722 10.8159 4.53672 10.8873ZM7.70309 10.8774C7.57206 10.9253 7.3754 11.1083 7.30493 11.2479C7.22475 11.4067 7.21437 11.6393 7.27966 11.8132C7.34151 11.9778 7.49951 12.1442 7.66674 12.2208C7.78026 12.2728 7.81716 12.2783 7.99473 12.2693C8.22327 12.2577 8.32718 12.2149 8.46962 12.0738C8.67701 11.8684 8.74311 11.5274 8.62624 11.2655C8.56467 11.1276 8.42259 10.9817 8.27571 10.9055C8.14339 10.8369 7.85305 10.8226 7.70309 10.8774ZM10.8856 10.8719C10.5739 10.9833 10.3948 11.2333 10.3948 11.5569C10.3948 11.7638 10.4528 11.9156 10.5831 12.0499C10.7501 12.222 10.8794 12.2755 11.1295 12.2759C11.4056 12.2763 11.6434 12.1233 11.7795 11.8576C11.8457 11.7283 11.8516 11.4583 11.7916 11.2993C11.7263 11.1263 11.5516 10.9504 11.3819 10.8869C11.2377 10.8329 11.0136 10.8261 10.8856 10.8719Z" fill="url(#paint0_linear_756_1311)"/>
|
|
@@ -40,16 +40,19 @@ const structuredData = !noSchema && items.length > 0 ? `<script type="applicatio
|
|
|
40
40
|
{items.map((item: { question: string; answer: string }, index: number) => {
|
|
41
41
|
const isOpen = allOpen || (initialState === 'first-open' && index === 0);
|
|
42
42
|
return (
|
|
43
|
-
<div class="faq-item w-full border
|
|
43
|
+
<div class="faq-item w-full border border-[#e1c8b4] bg-white rounded-2xl mb-3">
|
|
44
44
|
<h3 class="m-0">
|
|
45
45
|
<button id={`${uid}-header-${index}`} aria-expanded={isOpen ? 'true' : 'false'} aria-controls={`${uid}-panel-${index}`} class={`faq-toggle flex items-center justify-between w-full py-6 cursor-pointer bg-transparent text-[#1b1b1b] hover:bg-[rgba(107,58,8,0.04)] rounded-2xl transition-all text-left px-4 ${questionClass}`}>
|
|
46
46
|
<span>{item.question}</span>
|
|
47
47
|
{arrowIconSvg ? (
|
|
48
48
|
<span class={`faq-arrow inline-flex shrink-0 transition-transform duration-300 [&>svg]:w-full [&>svg]:h-full${isOpen ? ' rotate-180' : ''} ${arrowIconClass}`} set:html={arrowIconSvg} />
|
|
49
49
|
) : (
|
|
50
|
-
<svg class=
|
|
50
|
+
<svg class="faq-arrow-down shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
51
51
|
<path d="M3.19505 7.7455C3.47368 7.43901 3.94802 7.41642 4.25451 7.69505L12 14.7364L19.7455 7.69505C20.052 7.41642 20.5263 7.43901 20.805 7.7455C21.0836 8.05199 21.061 8.52633 20.7545 8.80496L12.5045 16.305C12.2184 16.565 11.7816 16.565 11.4955 16.305L3.2455 8.80496C2.93901 8.52633 2.91642 8.05199 3.19505 7.7455Z" fill-rule="evenodd" clip-rule="evenodd" fill="#403830"/>
|
|
52
52
|
</svg>
|
|
53
|
+
<svg class="faq-arrow-up shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
54
|
+
<path d="M11.8185 3.77095C11.762 3.78793 11.6806 3.82518 11.6377 3.85371C11.5273 3.92711 6.11211 9.69283 6.07137 9.78031C6.01054 9.91092 5.98452 10.1056 6.00932 10.2446C6.04187 10.4271 6.095 10.533 6.21813 10.6612C6.41351 10.8645 6.6888 10.9249 6.95296 10.8224C7.07784 10.7739 7.17979 10.6698 9.19161 8.53509L11.2994 6.29856L11.3052 13.0113L11.311 19.724L11.3714 19.8456C11.5004 20.1053 11.7256 20.25 12.0005 20.25C12.2754 20.25 12.5006 20.1053 12.6296 19.8456L12.69 19.724L12.6958 13.0111L12.7016 6.29832L14.8094 8.53504C16.8221 10.6709 16.9231 10.7741 17.048 10.8225C17.3123 10.9248 17.5875 10.8644 17.7829 10.6612C17.9048 10.5342 17.9591 10.427 17.9905 10.2509C18.0179 10.0977 17.9843 9.88743 17.9115 9.75629C17.8822 9.70345 16.6293 8.3555 15.1272 6.76089C12.9192 4.41687 12.3759 3.85215 12.2908 3.81247C12.1555 3.7494 11.9503 3.73134 11.8185 3.77095Z" fill-rule="evenodd" clip-rule="evenodd" fill="#262626"/>
|
|
55
|
+
</svg>
|
|
53
56
|
)}
|
|
54
57
|
</button>
|
|
55
58
|
</h3>
|
|
@@ -62,6 +65,17 @@ const structuredData = !noSchema && items.length > 0 ? `<script type="applicatio
|
|
|
62
65
|
|
|
63
66
|
<Fragment set:html={structuredData} />
|
|
64
67
|
|
|
68
|
+
<style>
|
|
69
|
+
.faq-arrow-up,
|
|
70
|
+
.faq-toggle[aria-expanded="true"] .faq-arrow-down {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.faq-toggle[aria-expanded="true"] .faq-arrow-up {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
</style>
|
|
78
|
+
|
|
65
79
|
<script>
|
|
66
80
|
document.querySelectorAll('.faq-container').forEach((container) => {
|
|
67
81
|
const exclusive = container.getAttribute('data-initial-state') !== 'all-open';
|