index.vue 11 KB

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