index.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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="$vuetify.display.xs ? 300 : 500"
  15. class="main-image rounded-lg"
  16. :loading="loading"
  17. @click="selectImage('/images/photos/IMG_2216.min.JPG')"
  18. style="cursor: pointer; max-width: 100%;"
  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-10">
  39. <h2>{{ $t('welcome_heading') }}</h2>
  40. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  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-10">
  48. <h2>{{ $t('features_heading') }}</h2>
  49. <v-row>
  50. <v-col cols="12" md="6">
  51. <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  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. <li>{{ $t('general_info_item_8') }}</li>
  60. </ul>
  61. </v-card>
  62. </v-col>
  63. <v-col cols="12" md="6">
  64. <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  65. <h3 class="text-h6 mb-4">{{ $t('equipment_heading') }}</h3>
  66. <ul class="feature-list">
  67. <li>{{ $t('equipment_item_1') }}</li>
  68. <li>{{ $t('equipment_item_2') }}</li>
  69. <li>{{ $t('equipment_item_3') }}</li>
  70. <li>{{ $t('equipment_item_4') }}</li>
  71. <li>{{ $t('equipment_item_5') }}</li>
  72. <li>{{ $t('equipment_item_6') }}</li>
  73. </ul>
  74. </v-card>
  75. </v-col>
  76. </v-row>
  77. </div>
  78. <!-- Location Section -->
  79. <div class="location-container mt-10">
  80. <h2>{{ $t('location_heading') }}</h2>
  81. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  82. <ul class="feature-list">
  83. <li>{{ $t('location_item_1') }}</li>
  84. <li>{{ $t('location_item_2') }}</li>
  85. <li>{{ $t('location_item_3') }}</li>
  86. <li>{{ $t('location_item_4') }}</li>
  87. </ul>
  88. </v-card>
  89. </div>
  90. <!-- Conditions Section -->
  91. <div class="conditions-container mt-10">
  92. <h2>{{ $t('conditions_heading') }}</h2>
  93. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  94. <ul class="feature-list">
  95. <li>{{ $t('conditions_item_1') }}</li>
  96. <li>{{ $t('conditions_item_2') }}</li>
  97. <li>{{ $t('conditions_item_3') }}</li>
  98. <li>{{ $t('conditions_item_4') }}</li>
  99. </ul>
  100. </v-card>
  101. </div>
  102. <!-- Contact Section -->
  103. <div id="contact" class="contact-container mt-10">
  104. <h2>{{ $t('contact_heading') }}</h2>
  105. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  106. <Contact />
  107. </v-card>
  108. </div>
  109. <!-- Image Modal -->
  110. <v-dialog v-model="showImageModal" max-width="90vw" content-class="image-modal-dialog">
  111. <v-card class="image-modal-card">
  112. <v-btn icon class="close-btn" @click="showImageModal = false">
  113. <v-icon>fas fa-times</v-icon>
  114. </v-btn>
  115. <v-card-text class="text-center pa-0">
  116. <v-img
  117. :src="selectedImageSrc"
  118. class="enlarged-image"
  119. :loading="loading"
  120. max-width="100%"
  121. contain
  122. >
  123. <template v-slot:placeholder>
  124. <div class="d-flex align-center justify-center" style="height: 300px;">
  125. <v-progress-circular indeterminate color="primary"></v-progress-circular>
  126. </div>
  127. </template>
  128. </v-img>
  129. </v-card-text>
  130. </v-card>
  131. </v-dialog>
  132. </div>
  133. </template>
  134. <script setup lang="ts">
  135. import { useDisplay, useTheme } from 'vuetify'
  136. import type { Ref } from '@vue/reactivity'
  137. import { ref } from 'vue'
  138. import { useI18n } from 'vue-i18n'
  139. const i18n = useI18n()
  140. const theme = useTheme()
  141. const loading = ref(true)
  142. const imageErrors = ref<string[]>([])
  143. const imagesLoaded = ref<string[]>([])
  144. // Variables for image modal
  145. const showImageModal = ref(false)
  146. const selectedImageSrc = ref('')
  147. // List of thumbnail images
  148. const thumbnailImages = ref([
  149. { src: '/images/photos/IMG_2219.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  150. { src: '/images/photos/IMG_2220.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  151. { src: '/images/photos/IMG_2222.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  152. { src: '/images/photos/IMG_2223.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  153. { src: '/images/photos/IMG_2224.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  154. { src: '/images/photos/IMG_2225.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  155. ])
  156. // Function to select an image and show it in the modal
  157. const selectImage = (src: string) => {
  158. console.log('Selected image:', src)
  159. selectedImageSrc.value = src
  160. showImageModal.value = true
  161. }
  162. </script>
  163. <style scoped lang="scss">
  164. .rental-container {
  165. max-width: 1200px;
  166. margin: 0 auto;
  167. padding: 0 16px;
  168. width: 100%;
  169. box-sizing: border-box;
  170. @media (max-width: 600px) {
  171. padding: 0 8px;
  172. }
  173. }
  174. .text-body-1 {
  175. line-height: 1.7;
  176. margin-bottom: 1rem;
  177. font-size: 1.05rem;
  178. }
  179. .main-image {
  180. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  181. transition: transform 0.3s ease;
  182. &:hover {
  183. transform: scale(1.01);
  184. }
  185. }
  186. .thumbnail {
  187. cursor: pointer;
  188. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  189. transition: transform 0.2s ease;
  190. max-width: 100%;
  191. height: auto !important;
  192. &:hover {
  193. transform: scale(1.05);
  194. }
  195. }
  196. .feature-list {
  197. list-style-type: none;
  198. padding-left: 0;
  199. margin: 0.5rem 0;
  200. li {
  201. padding: 10px 0;
  202. position: relative;
  203. padding-left: 28px;
  204. margin-bottom: 4px;
  205. line-height: 1.5;
  206. &:before {
  207. content: "•";
  208. color: rgb(var(--v-theme-primary));
  209. position: absolute;
  210. left: 8px;
  211. font-size: 18px;
  212. top: 8px;
  213. }
  214. &:last-child {
  215. margin-bottom: 0;
  216. }
  217. }
  218. }
  219. h2 {
  220. color: rgb(var(--v-theme-primary));
  221. font-weight: 700;
  222. font-size: 1.8rem;
  223. margin: 2rem 0 1.5rem 0;
  224. padding-bottom: 0.5rem;
  225. border-bottom: 2px solid rgba(var(--v-theme-primary), 0.3);
  226. letter-spacing: 0.02em;
  227. }
  228. h3 {
  229. color: rgb(var(--v-theme-primary));
  230. font-weight: 600;
  231. font-size: 1.4rem;
  232. margin: 1.5rem 0 1rem 0;
  233. letter-spacing: 0.01em;
  234. }
  235. .enlarged-image {
  236. border-radius: 0;
  237. margin: 0 auto;
  238. max-height: 90vh;
  239. width: auto;
  240. max-width: 100%;
  241. @media (max-width: 600px) {
  242. max-height: 80vh;
  243. }
  244. }
  245. :deep(.image-modal-dialog) {
  246. background-color: rgba(0, 0, 0, 0.9);
  247. padding: 6px;
  248. }
  249. .image-modal-card {
  250. background: transparent;
  251. box-shadow: none;
  252. position: relative;
  253. overflow: visible;
  254. }
  255. .close-btn {
  256. position: absolute;
  257. top: 10px;
  258. right: 10px;
  259. z-index: 10;
  260. background-color: rgba(0, 0, 0, 0.3);
  261. color: white;
  262. transition: background-color 0.2s;
  263. &:hover {
  264. background-color: rgba(0, 0, 0, 0.5);
  265. }
  266. }
  267. </style>