index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. max-height="150"
  30. cover
  31. eager
  32. class="thumbnail rounded-lg"
  33. @click="selectImage(image.src)"
  34. ></v-img>
  35. </v-col>
  36. </v-row>
  37. </div>
  38. <!-- Description Section -->
  39. <div class="description-container mt-10">
  40. <h2>{{ $t('welcome_heading') }}</h2>
  41. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  42. <p class="text-body-1">
  43. {{ $t('welcome_description') }}
  44. </p>
  45. </v-card>
  46. </div>
  47. <!-- Features Summary Section -->
  48. <div class="features-container mt-10">
  49. <h2>{{ $t('features_heading') }}</h2>
  50. <v-row>
  51. <v-col cols="12" md="6">
  52. <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  53. <h3 class="text-h6 mb-4">{{ $t('general_info_heading') }}</h3>
  54. <ul class="feature-list">
  55. <li>{{ $t('general_info_item_1') }}</li>
  56. <li>{{ $t('general_info_item_2') }}</li>
  57. <li>{{ $t('general_info_item_3') }}</li>
  58. <li>{{ $t('general_info_item_4') }}</li>
  59. <li>{{ $t('general_info_item_5') }}</li>
  60. <li>{{ $t('general_info_item_8') }}</li>
  61. </ul>
  62. </v-card>
  63. </v-col>
  64. <v-col cols="12" md="6">
  65. <v-card class="pa-5 h-100 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  66. <h3 class="text-h6 mb-4">{{ $t('equipment_heading') }}</h3>
  67. <ul class="feature-list">
  68. <li>{{ $t('equipment_item_1') }}</li>
  69. <li>{{ $t('equipment_item_2') }}</li>
  70. <li>{{ $t('equipment_item_3') }}</li>
  71. <li>{{ $t('equipment_item_4') }}</li>
  72. <li>{{ $t('equipment_item_5') }}</li>
  73. <li>{{ $t('equipment_item_6') }}</li>
  74. </ul>
  75. </v-card>
  76. </v-col>
  77. </v-row>
  78. </div>
  79. <!-- Location Section -->
  80. <div class="location-container mt-10">
  81. <h2>{{ $t('location_heading') }}</h2>
  82. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  83. <ul class="feature-list">
  84. <li>{{ $t('location_item_1') }}</li>
  85. <li>{{ $t('location_item_2') }}</li>
  86. <li>{{ $t('location_item_3') }}</li>
  87. <li>{{ $t('location_item_4') }}</li>
  88. </ul>
  89. </v-card>
  90. </div>
  91. <!-- Conditions Section -->
  92. <div class="conditions-container mt-10">
  93. <h2>{{ $t('conditions_heading') }}</h2>
  94. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  95. <ul class="feature-list">
  96. <li>{{ $t('conditions_item_1') }}</li>
  97. <li>{{ $t('conditions_item_2') }}</li>
  98. <li>{{ $t('conditions_item_3') }}</li>
  99. <li>{{ $t('conditions_item_4') }}</li>
  100. </ul>
  101. </v-card>
  102. </div>
  103. <!-- Tourism Section -->
  104. <div class="tourism-container mt-10">
  105. <h2>{{ $t('tourism_heading') }}</h2>
  106. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  107. <v-row>
  108. <v-col cols="12" md="6">
  109. <v-card class="px-4 h-100 rounded-lg elevation-1" style="max-width: 100%; overflow-wrap: break-word;">
  110. <h3 class="text-h6 mb-3 mt-2">{{ $t('tourism_attractions_heading') }}</h3>
  111. <ul class="feature-list">
  112. <li><a href="https://www.granville-terre-mer.fr/tourisme/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_office') }}</a></li>
  113. <li><a href="https://www.granville-terre-mer.fr/decouvrir/les-incontournables/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_must_see') }}</a></li>
  114. <li><a href="https://www.granville-terre-mer.fr/decouvrir/les-plages/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_beaches') }}</a></li>
  115. </ul>
  116. </v-card>
  117. </v-col>
  118. <v-col cols="12" md="6">
  119. <v-card class="px-4 h-100 rounded-lg elevation-1" style="max-width: 100%; overflow-wrap: break-word;">
  120. <h3 class="text-h6 mb-3 mt-2">{{ $t('tourism_activities_heading') }}</h3>
  121. <ul class="feature-list">
  122. <li><a href="https://www.granville-terre-mer.fr/decouvrir/les-activites-nautiques/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_nautical') }}</a></li>
  123. <li><a href="https://www.granville-terre-mer.fr/decouvrir/les-randonnees/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_hiking') }}</a></li>
  124. <li><a href="https://www.granville-terre-mer.fr/decouvrir/les-marches/" target="_blank" rel="noopener noreferrer">{{ $t('tourism_link_markets') }}</a></li>
  125. </ul>
  126. </v-card>
  127. </v-col>
  128. </v-row>
  129. </v-card>
  130. </div>
  131. <!-- Contact Section -->
  132. <div id="contact" class="contact-container mt-10">
  133. <h2>{{ $t('contact_heading') }}</h2>
  134. <v-card class="pa-5 rounded-lg elevation-2" style="max-width: 100%; overflow-wrap: break-word;">
  135. <Contact />
  136. </v-card>
  137. </div>
  138. <!-- Image Modal -->
  139. <v-dialog v-model="showImageModal" max-width="90vw" content-class="image-modal-dialog">
  140. <v-card class="image-modal-card">
  141. <v-btn icon class="close-btn" @click="showImageModal = false">
  142. <v-icon>fas fa-times</v-icon>
  143. </v-btn>
  144. <v-card-text class="text-center pa-0">
  145. <v-img
  146. :src="selectedImageSrc"
  147. class="enlarged-image"
  148. :loading="loading"
  149. max-width="100%"
  150. contain
  151. >
  152. <template v-slot:placeholder>
  153. <div class="d-flex align-center justify-center" style="height: 300px;">
  154. <v-progress-circular indeterminate color="primary"></v-progress-circular>
  155. </div>
  156. </template>
  157. </v-img>
  158. </v-card-text>
  159. </v-card>
  160. </v-dialog>
  161. </div>
  162. </template>
  163. <script setup lang="ts">
  164. import { useDisplay, useTheme } from 'vuetify'
  165. import type { Ref } from '@vue/reactivity'
  166. import { ref } from 'vue'
  167. import { useI18n } from 'vue-i18n'
  168. const i18n = useI18n()
  169. const theme = useTheme()
  170. const loading = ref(true)
  171. const imageErrors = ref<string[]>([])
  172. const imagesLoaded = ref<string[]>([])
  173. // Variables for image modal
  174. const showImageModal = ref(false)
  175. const selectedImageSrc = ref('')
  176. // List of thumbnail images
  177. const thumbnailImages = ref([
  178. { src: '/images/photos/IMG_2219.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  179. { src: '/images/photos/IMG_2220.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  180. { src: '/images/photos/IMG_2222.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  181. { src: '/images/photos/IMG_2223.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  182. { src: '/images/photos/IMG_2224.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  183. { src: '/images/photos/IMG_2225.min.JPG', alt: i18n.t('thumbnail_alt_interior') },
  184. ])
  185. // Function to select an image and show it in the modal
  186. const selectImage = (src: string) => {
  187. console.log('Selected image:', src)
  188. selectedImageSrc.value = src
  189. showImageModal.value = true
  190. }
  191. </script>
  192. <style scoped lang="scss">
  193. .rental-container {
  194. max-width: 1200px;
  195. margin: 0 auto;
  196. padding: 0 16px;
  197. width: 100%;
  198. box-sizing: border-box;
  199. @media (max-width: 600px) {
  200. padding: 0 8px;
  201. }
  202. }
  203. .text-body-1 {
  204. line-height: 1.7;
  205. margin-bottom: 1rem;
  206. font-size: 1.05rem;
  207. }
  208. .main-image {
  209. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  210. transition: transform 0.3s ease;
  211. &:hover {
  212. transform: scale(1.01);
  213. }
  214. }
  215. .thumbnail {
  216. cursor: pointer;
  217. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  218. transition: transform 0.2s ease;
  219. max-width: 100%;
  220. max-height: 150px;
  221. object-fit: cover;
  222. &:hover {
  223. transform: scale(1.05);
  224. }
  225. }
  226. .feature-list {
  227. list-style-type: none;
  228. padding-left: 0;
  229. margin: 0.5rem 0;
  230. li {
  231. padding: 10px 0;
  232. position: relative;
  233. padding-left: 28px;
  234. margin-bottom: 4px;
  235. line-height: 1.5;
  236. &:before {
  237. content: "•";
  238. color: rgb(var(--v-theme-primary));
  239. position: absolute;
  240. left: 8px;
  241. font-size: 18px;
  242. top: 8px;
  243. }
  244. &:last-child {
  245. margin-bottom: 0;
  246. }
  247. a {
  248. color: rgb(var(--v-theme-primary));
  249. text-decoration: none;
  250. position: relative;
  251. transition: all 0.3s ease;
  252. font-weight: 500;
  253. &:hover {
  254. color: rgba(var(--v-theme-primary), 0.8);
  255. &:after {
  256. width: 100%;
  257. }
  258. }
  259. &:after {
  260. content: '';
  261. position: absolute;
  262. bottom: -2px;
  263. left: 0;
  264. width: 0;
  265. height: 2px;
  266. background-color: rgba(var(--v-theme-primary), 0.5);
  267. transition: width 0.3s ease;
  268. }
  269. }
  270. }
  271. }
  272. h2 {
  273. color: rgb(var(--v-theme-primary));
  274. font-weight: 700;
  275. font-size: 1.8rem;
  276. margin: 2rem 0 1.5rem 0;
  277. padding-bottom: 0.5rem;
  278. border-bottom: 2px solid rgba(var(--v-theme-primary), 0.3);
  279. letter-spacing: 0.02em;
  280. }
  281. h3 {
  282. color: rgb(var(--v-theme-primary));
  283. font-weight: 600;
  284. font-size: 1.4rem;
  285. margin: 1.5rem 0 1rem 0;
  286. letter-spacing: 0.01em;
  287. }
  288. .enlarged-image {
  289. border-radius: 0;
  290. margin: 0 auto;
  291. max-height: 90vh;
  292. width: auto;
  293. max-width: 100%;
  294. @media (max-width: 600px) {
  295. max-height: 80vh;
  296. }
  297. }
  298. :deep(.image-modal-dialog) {
  299. background-color: rgba(0, 0, 0, 0.9);
  300. padding: 6px;
  301. }
  302. .image-modal-card {
  303. background: transparent;
  304. box-shadow: none;
  305. position: relative;
  306. overflow: visible;
  307. }
  308. .close-btn {
  309. position: absolute;
  310. top: 10px;
  311. right: 10px;
  312. z-index: 10;
  313. background-color: rgba(0, 0, 0, 0.3);
  314. color: white;
  315. transition: background-color 0.2s;
  316. &:hover {
  317. background-color: rgba(0, 0, 0, 0.5);
  318. }
  319. }
  320. </style>