| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- <template>
- <PageMeta
- :title="$t('page_title')"
- :description="$t('page_description')"
- />
- <div class="rental-container">
- <!-- Main Image Section -->
- <div class="main-image-container">
- <v-img
- src="/images/photos/IMG_2216.min.JPG"
- :alt="$t('main_image_alt')"
- cover
- eager
- :height="$vuetify.display.xs ? 300 : 500"
- class="main-image rounded-lg"
- :loading="loading"
- @click="selectImage('/images/photos/IMG_2216.min.JPG')"
- style="cursor: pointer; max-width: 100%;"
- ></v-img>
- </div>
- <!-- Thumbnails Section -->
- <div class="thumbnails-container mt-4">
- <v-row>
- <v-col v-for="(image, index) in thumbnailImages" :key="index" cols="12" sm="6" md="4">
- <v-img
- :src="image.src"
- :alt="image.alt"
- height="150"
- cover
- eager
- class="thumbnail rounded-lg"
- @click="selectImage(image.src)"
- ></v-img>
- </v-col>
- </v-row>
- </div>
- <!-- Description Section -->
- <div class="description-container mt-10">
- <h2>{{ $t('welcome_heading') }}</h2>
- <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <p class="text-body-1">
- {{ $t('welcome_description') }}
- </p>
- </v-card>
- </div>
- <!-- Features Summary Section -->
- <div class="features-container mt-10">
- <h2>{{ $t('features_heading') }}</h2>
- <v-row>
- <v-col cols="12" md="6">
- <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <h3 class="text-h6 mb-4">{{ $t('general_info_heading') }}</h3>
- <ul class="feature-list">
- <li>{{ $t('general_info_item_1') }}</li>
- <li>{{ $t('general_info_item_2') }}</li>
- <li>{{ $t('general_info_item_3') }}</li>
- <li>{{ $t('general_info_item_4') }}</li>
- <li>{{ $t('general_info_item_5') }}</li>
- <li>{{ $t('general_info_item_8') }}</li>
- </ul>
- </v-card>
- </v-col>
- <v-col cols="12" md="6">
- <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <h3 class="text-h6 mb-4">{{ $t('equipment_heading') }}</h3>
- <ul class="feature-list">
- <li>{{ $t('equipment_item_1') }}</li>
- <li>{{ $t('equipment_item_2') }}</li>
- <li>{{ $t('equipment_item_3') }}</li>
- <li>{{ $t('equipment_item_4') }}</li>
- <li>{{ $t('equipment_item_5') }}</li>
- <li>{{ $t('equipment_item_6') }}</li>
- </ul>
- </v-card>
- </v-col>
- </v-row>
- </div>
- <!-- Location Section -->
- <div class="location-container mt-10">
- <h2>{{ $t('location_heading') }}</h2>
- <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <ul class="feature-list">
- <li>{{ $t('location_item_1') }}</li>
- <li>{{ $t('location_item_2') }}</li>
- <li>{{ $t('location_item_3') }}</li>
- <li>{{ $t('location_item_4') }}</li>
- </ul>
- </v-card>
- </div>
- <!-- Conditions Section -->
- <div class="conditions-container mt-10">
- <h2>{{ $t('conditions_heading') }}</h2>
- <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <ul class="feature-list">
- <li>{{ $t('conditions_item_1') }}</li>
- <li>{{ $t('conditions_item_2') }}</li>
- <li>{{ $t('conditions_item_3') }}</li>
- <li>{{ $t('conditions_item_4') }}</li>
- </ul>
- </v-card>
- </div>
- <!-- Contact Section -->
- <div id="contact" class="contact-container mt-10">
- <h2>{{ $t('contact_heading') }}</h2>
- <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
- <Contact />
- </v-card>
- </div>
- <!-- Image Modal -->
- <v-dialog v-model="showImageModal" max-width="90vw" content-class="image-modal-dialog">
- <v-card class="image-modal-card">
- <v-btn icon class="close-btn" @click="showImageModal = false">
- <v-icon>fas fa-times</v-icon>
- </v-btn>
- <v-card-text class="text-center pa-0">
- <v-img
- :src="selectedImageSrc"
- class="enlarged-image"
- :loading="loading"
- max-width="100%"
- contain
- >
- <template v-slot:placeholder>
- <div class="d-flex align-center justify-center" style="height: 300px;">
- <v-progress-circular indeterminate color="primary"></v-progress-circular>
- </div>
- </template>
- </v-img>
- </v-card-text>
- </v-card>
- </v-dialog>
- </div>
- </template>
- <script setup lang="ts">
- import { useDisplay, useTheme } from 'vuetify'
- import type { Ref } from '@vue/reactivity'
- import { ref } from 'vue'
- import { useI18n } from 'vue-i18n'
- const i18n = useI18n()
- const theme = useTheme()
- const loading = ref(true)
- const imageErrors = ref<string[]>([])
- const imagesLoaded = ref<string[]>([])
- // Variables for image modal
- const showImageModal = ref(false)
- const selectedImageSrc = ref('')
- // List of thumbnail images
- const thumbnailImages = ref([
- { src: '/images/photos/IMG_2219.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- { src: '/images/photos/IMG_2220.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- { src: '/images/photos/IMG_2222.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- { src: '/images/photos/IMG_2223.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- { src: '/images/photos/IMG_2224.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- { src: '/images/photos/IMG_2225.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
- ])
- // Function to select an image and show it in the modal
- const selectImage = (src: string) => {
- console.log('Selected image:', src)
- selectedImageSrc.value = src
- showImageModal.value = true
- }
- </script>
- <style scoped lang="scss">
- .rental-container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0 16px;
- width: 100%;
- box-sizing: border-box;
-
- @media (max-width: 600px) {
- padding: 0 8px;
- }
- }
- .text-body-1 {
- line-height: 1.7;
- margin-bottom: 1rem;
- font-size: 1.05rem;
- }
- .main-image {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- transition: transform 0.3s ease;
- &:hover {
- transform: scale(1.01);
- }
- }
- .thumbnail {
- cursor: pointer;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- transition: transform 0.2s ease;
- max-width: 100%;
- height: auto !important;
- &:hover {
- transform: scale(1.05);
- }
- }
- .feature-list {
- list-style-type: none;
- padding-left: 0;
- margin: 0.5rem 0;
- li {
- padding: 10px 0;
- position: relative;
- padding-left: 28px;
- margin-bottom: 4px;
- line-height: 1.5;
- &:before {
- content: "•";
- color: rgb(var(--v-theme-primary));
- position: absolute;
- left: 8px;
- font-size: 18px;
- top: 8px;
- }
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- h2 {
- color: rgb(var(--v-theme-primary));
- font-weight: 700;
- font-size: 1.8rem;
- margin: 2rem 0 1.5rem 0;
- padding-bottom: 0.5rem;
- border-bottom: 2px solid rgba(var(--v-theme-primary), 0.3);
- letter-spacing: 0.02em;
- }
- h3 {
- color: rgb(var(--v-theme-primary));
- font-weight: 600;
- font-size: 1.4rem;
- margin: 1.5rem 0 1rem 0;
- letter-spacing: 0.01em;
- }
- .enlarged-image {
- border-radius: 0;
- margin: 0 auto;
- max-height: 90vh;
- width: auto;
- max-width: 100%;
-
- @media (max-width: 600px) {
- max-height: 80vh;
- }
- }
- :deep(.image-modal-dialog) {
- background-color: rgba(0, 0, 0, 0.9);
- padding: 6px;
- }
- .image-modal-card {
- background: transparent;
- box-shadow: none;
- position: relative;
- overflow: visible;
- }
- .close-btn {
- position: absolute;
- top: 10px;
- right: 10px;
- z-index: 10;
- background-color: rgba(0, 0, 0, 0.3);
- color: white;
- transition: background-color 0.2s;
- &:hover {
- background-color: rgba(0, 0, 0, 0.5);
- }
- }
- </style>
|