Map.client.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <LayoutContainer>
  3. <h4><span class="line" /> Contactez-nous</h4>
  4. <v-row>
  5. <v-col cols="12" md="6">
  6. <div class="map-container">
  7. <l-map
  8. ref="map"
  9. :zoom="15"
  10. :center="location"
  11. :options="{ scrollWheelZoom: false }"
  12. >
  13. <l-tile-layer
  14. url="https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png"
  15. layer-type="base"
  16. name="OpenStreetMap"
  17. attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>'
  18. />
  19. <l-marker :icon="icon" :lat-lng="location" />
  20. <!-- <l-popup>-->
  21. <!-- <v-row>-->
  22. <!-- <v-col cols="4" class="d-flex align-center">-->
  23. <!-- <v-img src="/images/Opentalent_Griffe.png"/>-->
  24. <!-- </v-col>-->
  25. <!-- <v-col cols="8">-->
  26. <!-- <div>-->
  27. <!-- OPENTALENT-->
  28. <!-- </div>-->
  29. <!-- <div>-->
  30. <!-- 217, rue Raoul Follereau-->
  31. <!-- </div>-->
  32. <!-- <div>-->
  33. <!-- 74300 - Cluses-->
  34. <!-- </div>-->
  35. <!-- </v-col>-->
  36. <!-- </v-row>-->
  37. <!-- </l-popup>-->
  38. </l-map>
  39. </div>
  40. </v-col>
  41. <v-col cols="12" md="6" class="infos">
  42. <div class="name mb-8">Opentalent</div>
  43. <div class="d-flex flex-row align-center mb-8">
  44. <v-icon icon="fa fa-map-marker-alt" />
  45. <span>
  46. 217 rue Raoul Follereau<br />
  47. 74300 CLUSES
  48. </span>
  49. </div>
  50. <div class="d-flex flex-row mb-4">
  51. <v-icon icon="fa fa-phone" />
  52. <a href="tel:+33972126017">09.72.12.60.17</a>
  53. </div>
  54. <div class="d-flex flex-row mb-4">
  55. <v-icon icon="far fa-envelope" />
  56. <a href="mailto:contact@opentalent.fr">contact@opentalent.fr</a>
  57. </div>
  58. </v-col>
  59. </v-row>
  60. </LayoutContainer>
  61. </template>
  62. <script setup lang="ts">
  63. import 'leaflet/dist/leaflet.css'
  64. import { LMap, LTileLayer, LMarker } from '@vue-leaflet/vue-leaflet'
  65. import L from 'leaflet'
  66. const location = [46.075245, 6.570162]
  67. // eslint-disable-next-line import/no-named-as-default-member
  68. const icon = L.icon({
  69. iconUrl: '/images/pages/contact/map/Pointeur_Opentalent.png',
  70. iconSize: [80, 80],
  71. iconAnchor: [22, 94],
  72. popupAnchor: [5, -100],
  73. })
  74. </script>
  75. <style scoped lang="scss">
  76. h4 {
  77. display: flex;
  78. flex-direction: row;
  79. font-size: 40px;
  80. line-height: 95px;
  81. margin-bottom: 1rem;
  82. align-items: center;
  83. font-weight: 100;
  84. @media (max-width: 600px) {
  85. font-size: 24px;
  86. line-height: 48px;
  87. }
  88. .line {
  89. display: block;
  90. height: 1px;
  91. width: 64px;
  92. min-width: 64px;
  93. border-top: solid 1px var(--on-neutral-color);
  94. margin-right: 18px;
  95. }
  96. }
  97. .map-container {
  98. height: 500px;
  99. width: 100%;
  100. margin-left: auto;
  101. margin-right: auto;
  102. }
  103. .infos {
  104. padding: 48px 36px;
  105. font-size: 21px;
  106. font-weight: 300;
  107. .name {
  108. font-size: 36px;
  109. text-transform: uppercase;
  110. font-weight: 600;
  111. }
  112. .v-icon {
  113. margin-right: 16px;
  114. opacity: 0.6;
  115. }
  116. a {
  117. color: var(--on-neutral-color);
  118. }
  119. @media (max-width: 600px) {
  120. order: -1;
  121. }
  122. }
  123. </style>