nosotras page

This commit is contained in:
María
2025-08-04 10:38:36 +02:00
committed by María
parent 999b61e4af
commit e9e75a0839
15 changed files with 366 additions and 83 deletions

View File

@@ -9,25 +9,37 @@
class="flex justify-between"
:class="{
'flex-col lg:flex-row gap-4': position === 'left',
'flex-col lg:flex-row-reverse': position === 'right',
'items-center gap-12': image.display === 'circle',
'flex-col lg:flex-row-reverse gap-4': position === 'right' && !imageCTA,
'flex-col-reverse lg:flex-row-reverse gap-4': position === 'right' && imageCTA,
'items-center gap-12': image.display === 'circle'
}">
<div
v-if="image"
:class="{
'h-20.1 w-20.1 rounded-full overflow-hidden border-4 border-white': image.display === 'circle',
'h-fit w-full lg:w-auto': image.display === 'normal'
:class="{
'flex flex-col gap-4': imageCTA
}">
<img
:src="`/img/${image.src}`"
:alt="image.alt"
class="w-full h-full"
<div
v-if="image"
:class="{
'object-cover': image.display === 'circle',
'object-contain': image.display === 'normal'
}"
/>
'h-20.1 w-20.1 rounded-full overflow-hidden border-4 border-white': image.display === 'circle',
'h-fit w-full lg:w-auto': image.display === 'normal'
}">
<img
:src="`/img/${image.src}`"
:alt="image.alt"
class="w-full h-full"
:class="{
'object-cover': image.display === 'circle',
'object-contain': image.display === 'normal'
}"
/>
</div>
<div v-if="imageCTA" class="flex flex-col items-end">
<p v-if="imageCTA.description" class="text-lg mt-2">{{ imageCTA.description }}</p>
<NuxtLink v-if="imageCTA.button" :to="imageCTA.button.url">
<ButtonCTA size="md" class="uppercase mt-4">{{ imageCTA.button.label }}</ButtonCTA>
</NuxtLink>
</div>
</div>
<div
@@ -42,16 +54,20 @@
<p class="text-lg" v-html="paragraph"></p>
</li>
</ul>
<ul v-if="list" class="flex flex-col gap-4">
<li
v-for="(item, index) in list"
:key="`item-list-${id}-${index}`"
:class="{
'list-disc ml-6': hasBullets,
}">
<p class="text-lg" v-html="item"></p>
</li>
</ul>
<div v-for="(list, index) in lists" :key="`list-${index}-${index}`" class="">
<p v-if="list.description" class="text-lg mb-4">{{ list.description }}</p>
<ul v-if="list.items" class="flex flex-col gap-4">
<li
v-for="(item, index) in list.items"
:key="`item-list-${id}-${index}`"
:class="{
'list-disc ml-6': hasBullets,
}">
<p class="text-lg" v-html="item"></p>
</li>
</ul>
</div>
<p class="text-lg" v-html="finalParagraph"></p>
</div>
</div>
</section>
@@ -72,10 +88,14 @@ export default {
type: Array,
default: () => []
},
list: {
lists: {
type: Array,
default: () => []
},
finalParagraph: {
type: String,
default: ''
},
hasBullets: {
type: Boolean,
default: false
@@ -90,11 +110,11 @@ export default {
},
image: {
type: Object,
default: () => ({
src: '',
alt: '',
display: ''
})
default: null
},
imageCTA: {
type: Object,
default: null
}
}
}