index.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <PageMeta
  3. :title="$t('page_title')"
  4. :description="$t('page_description')"
  5. />
  6. <div class="rental-container">
  7. <!-- Main Image Section -->
  8. <div class="main-image-container">
  9. <v-img
  10. src="/images/photos/IMG_2216.min.JPG"
  11. :alt="$t('main_image_alt')"
  12. cover
  13. eager
  14. height="500"
  15. class="main-image rounded-lg"
  16. :loading="loading"
  17. @click="selectImage('/images/photos/IMG_2216.min.JPG')"
  18. style="cursor: pointer;"
  19. ></v-img>
  20. </div>
  21. <!-- Thumbnails Section -->
  22. <div class="thumbnails-container mt-4">
  23. <v-row>
  24. <v-col v-for="(image, index) in thumbnailImages" :key="index" cols="12" sm="6" md="4">
  25. <v-img
  26. :src="image.src"
  27. :alt="image.alt"
  28. height="150"
  29. cover
  30. eager
  31. class="thumbnail rounded-lg"
  32. @click="selectImage(image.src)"
  33. ></v-img>
  34. </v-col>
  35. </v-row>
  36. </div>
  37. <!-- Description Section -->
  38. <div class="description-container mt-8">
  39. <h2>{{ $t('welcome_heading') }}</h2>
  40. <v-card class="pa-4">
  41. <p class="text-body-1">
  42. {{ $t('welcome_description') }}
  43. </p>
  44. </v-card>
  45. </div>
  46. <!-- Features Summary Section -->
  47. <div class="features-container mt-8">
  48. <h2>{{ $t('features_heading') }}</h2>
  49. <v-row>
  50. <v-col cols="12" md="6">
  51. <v-card class="pa-4 h-100">
  52. <h3 class="text-h6 mb-4">{{ $t('general_info_heading') }}</h3>
  53. <ul class="feature-list">
  54. <li>{{ $t('general_info_item_1') }}</li>
  55. <li>{{ $t('general_info_item_2') }}</li>
  56. <li>{{ $t('general_info_item_3') }}</li>
  57. <li>{{ $t('general_info_item_4') }}</li>
  58. <li>{{ $t('general_info_item_5') }}</li>
  59. </ul>
  60. </v-card>
  61. </v-col>
  62. <v-col cols="12" md="6">
  63. <v-card class="pa-4 h-100">
  64. <h3 class="text-h6 mb-4">{{ $t('equipment_heading') }}</h3>
  65. <ul class="feature-list">
  66. <li>{{ $t('equipment_item_1') }}</li>
  67. <li>{{ $t('equipment_item_2') }}</li>
  68. <li>{{ $t('equipment_item_3') }}</li>
  69. <li>{{ $t('equipment_item_4') }}</li>
  70. <li>{{ $t('equipment_item_5') }}</li>
  71. <li>{{ $t('equipment_item_6') }}</li>
  72. </ul>
  73. </v-card>
  74. </v-col>
  75. </v-row>
  76. </div>
  77. <!-- Location Section -->
  78. <div class="location-container mt-8">
  79. <h2>{{ $t('location_heading') }}</h2>
  80. <v-card class="pa-4">
  81. <ul class="feature-list">
  82. <li>{{ $t('location_item_1') }}</li>
  83. <li>{{ $t('location_item_2') }}</li>
  84. <li>{{ $t('location_item_3') }}</li>
  85. <li>{{ $t('location_item_4') }}</li>
  86. </ul>
  87. </v-card>
  88. </div>
  89. <!-- Conditions Section -->
  90. <div class="conditions-container mt-8">
  91. <h2>{{ $t('conditions_heading') }}</h2>
  92. <v-card class="pa-4">
  93. <ul class="feature-list">
  94. <li>{{ $t('conditions_item_1') }}</li>
  95. <li>{{ $t('conditions_item_2') }}</li>
  96. <li>{{ $t('conditions_item_3') }}</li>
  97. <li>{{ $t('conditions_item_4') }}</li>
  98. <li>{{ $t('conditions_item_5') }}</li>
  99. <li>{{ $t('conditions_item_6') }}</li>
  100. </ul>
  101. </v-card>
  102. </div>
  103. <!-- Contact Section -->
  104. <div id="contact" class="contact-container mt-8">
  105. <h2>{{ $t('contact_heading') }}</h2>
  106. <v-card class="pa-4">
  107. <Contact />
  108. </v-card>
  109. </div>
  110. <!-- Image Modal -->
  111. <v-dialog v-model="showImageModal" max-width="90vw" content-class="image-modal-dialog">
  112. <v-card class="image-modal-card">
  113. <v-btn icon class="close-btn" @click="showImageModal = false">
  114. <v-icon>fas fa-times</v-icon>
  115. </v-btn>
  116. <v-card-text class="text-center pa-0">
  117. <v-img
  118. :src="selectedImageSrc"
  119. class="enlarged-image"
  120. :loading="loading"
  121. >
  122. <template v-slot:placeholder>
  123. <div class="d-flex align-center justify-center" style="height: 300px;">
  124. <v-progress-circular indeterminate color="primary"></v-progress-circular>
  125. </div>
  126. </template>
  127. </v-img>
  128. </v-card-text>
  129. </v-card>
  130. </v-dialog>
  131. </div>
  132. </template>
  133. <script setup lang="ts">
  134. import { useDisplay, useTheme } from 'vuetify'
  135. import type { Ref } from '@vue/reactivity'
  136. import { ref } from 'vue'
  137. import { useI18n } from 'vue-i18n'
  138. const i18n = useI18n()
  139. const theme = useTheme()
  140. const loading = ref(true)
  141. const imageErrors = ref<string[]>([])
  142. const imagesLoaded = ref<string[]>([])
  143. // Variables for image modal
  144. const showImageModal = ref(false)
  145. const selectedImageSrc = ref('')
  146. // List of thumbnail images
  147. const thumbnailImages = ref([
  148. { src: '/images/photos/IMG_2219.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  149. { src: '/images/photos/IMG_2220.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  150. { src: '/images/photos/IMG_2222.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  151. { src: '/images/photos/IMG_2223.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  152. { src: '/images/photos/IMG_2224.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  153. { src: '/images/photos/IMG_2225.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  154. ])
  155. // Function to select an image and show it in the modal
  156. const selectImage = (src: string) => {
  157. console.log('Selected image:', src)
  158. selectedImageSrc.value = src
  159. showImageModal.value = true
  160. }
  161. </script>
  162. <style scoped lang="scss">
  163. .rental-container {
  164. max-width: 1200px;
  165. margin: 0 auto;
  166. }
  167. .main-image {
  168. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  169. transition: transform 0.3s ease;
  170. &:hover {
  171. transform: scale(1.01);
  172. }
  173. }
  174. .thumbnail {
  175. cursor: pointer;
  176. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  177. transition: transform 0.2s ease;
  178. &:hover {
  179. transform: scale(1.05);
  180. }
  181. }
  182. .feature-list {
  183. list-style-type: none;
  184. padding-left: 0;
  185. li {
  186. padding: 8px 0;
  187. position: relative;
  188. padding-left: 24px;
  189. &:before {
  190. content: "•";
  191. color: rgb(var(--v-theme-primary));
  192. position: absolute;
  193. left: 0;
  194. }
  195. }
  196. }
  197. h2 {
  198. color: rgb(var(--v-theme-primary));
  199. font-weight: 600;
  200. }
  201. h3 {
  202. color: rgb(var(--v-theme-primary));
  203. }
  204. .enlarged-image {
  205. border-radius: 0;
  206. margin: 0 auto;
  207. max-height: 90vh;
  208. width: auto;
  209. }
  210. :deep(.image-modal-dialog) {
  211. background-color: rgba(0, 0, 0, 0.9);
  212. padding: 6px;
  213. }
  214. .image-modal-card {
  215. background: transparent;
  216. box-shadow: none;
  217. position: relative;
  218. overflow: visible;
  219. }
  220. .close-btn {
  221. position: absolute;
  222. top: 10px;
  223. right: 10px;
  224. z-index: 10;
  225. background-color: rgba(0, 0, 0, 0.3);
  226. color: white;
  227. transition: background-color 0.2s;
  228. &:hover {
  229. background-color: rgba(0, 0, 0, 0.5);
  230. }
  231. }
  232. </style>