Map.vue 3.3 KB

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