diff --git a/src/views/RoomsPage.vue b/src/views/RoomsPage.vue index 8057a1d..7f8ada9 100644 --- a/src/views/RoomsPage.vue +++ b/src/views/RoomsPage.vue @@ -12,6 +12,7 @@ import "swiper/css"; import "swiper/css/pagination"; const data = ref(); +const currentRoomIndex = ref(0); const getRooms = async () => { const options = { @@ -32,33 +33,44 @@ onMounted(async () => { - - - Les salles - Venez découvrir les salles mises en place ! + + + + + Les salles + Venez découvrir les salles mises en place ! - - - - {{ element.fields.titre }} - - - - - - - + (currentRoomIndex = e.activeIndex) + " + class="swiper-horizontal" + > + + + {{ element.fields.titre }} + + + + + + + + + + {{ data && data[currentRoomIndex].fields.titre }} + {{ data && data[currentRoomIndex].fields.description }} + + @@ -129,11 +141,50 @@ audio { margin-top: 32px; } -.mySwiper { +.swiper-horizontal { width: 100%; height: 100%; min-height: 0; } + +.swiper-vertical { + width: 100%; + height: 100%; + min-height: 0; +} + +.top-content { + display: flex; + flex-direction: column; + height: 100%; + min-height: 0; +} + +.bottom-content { + display: flex; + flex-direction: column; + gap: 16px; + + padding: 32px; + + height: 100%; + min-height: 0; + + background-image: linear-gradient(-45deg, #7e33ac 0, #282828 60%); +} + +.bottom-content h2 { + font-size: 50px; + font-weight: bold; + margin: 0; +} + +.bottom-content p { + font-size: 27px; + font-weight: 500; + color: var(--ion-color-dark); + margin: 0; +}
{{ data && data[currentRoomIndex].fields.description }}