2026-02-18 03:06:14 +01:00
|
|
|
<template>
|
|
|
|
|
<Swiper
|
2026-02-19 02:27:15 +01:00
|
|
|
:autoHeight="false"
|
2026-02-18 03:06:14 +01:00
|
|
|
:loop="true"
|
|
|
|
|
:spaceBetween="30"
|
|
|
|
|
:centeredSlides="true"
|
|
|
|
|
:autoplay="{
|
|
|
|
|
delay: 4000,
|
|
|
|
|
disableOnInteraction: false,
|
|
|
|
|
pauseOnMouseEnter: true
|
|
|
|
|
}"
|
|
|
|
|
:pagination="{
|
|
|
|
|
clickable: true,
|
|
|
|
|
}"
|
|
|
|
|
:navigation="true"
|
|
|
|
|
:style="{
|
|
|
|
|
'--swiper-navigation-color': 'rgb(71 85 105)',
|
|
|
|
|
'--swiper-pagination-color': 'rgb(71 85 105)',
|
|
|
|
|
'--swiper-pagination-bottom': 'auto',
|
|
|
|
|
'--swiper-pagination-top': '1rem',
|
|
|
|
|
'--swiper-navigation-top-offset': '5rem'
|
|
|
|
|
}"
|
|
|
|
|
:modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
|
2026-02-19 02:27:15 +01:00
|
|
|
class="h-full w-full"
|
2026-02-18 03:06:14 +01:00
|
|
|
>
|
|
|
|
|
|
2026-02-19 02:27:15 +01:00
|
|
|
<SwiperSlide v-for="(image, index) in gallery" :key="image.id || index" class="!flex !items-center !justify-center !py-4 !bg-zinc-100">
|
2026-02-18 03:06:14 +01:00
|
|
|
<img :src="'/' + bucket + '/' + image.image"
|
2026-02-19 02:27:15 +01:00
|
|
|
style="max-width: 100%; max-height: calc(85vh - 40px); object-fit: contain;"/>
|
2026-02-18 03:06:14 +01:00
|
|
|
</SwiperSlide>
|
|
|
|
|
</Swiper>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: ['gallery', 'bucket']
|
|
|
|
|
}
|
2026-02-18 20:16:09 +01:00
|
|
|
</script>
|