Formations.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <AnchoredSection id="webinars">
  3. <LayoutContainer>
  4. <div class="alt-theme pt-6 mt-12">
  5. <v-row class="center-90">
  6. <LayoutUISubTitle> Nos accompagnements sur-mesure </LayoutUISubTitle>
  7. </v-row>
  8. <v-row class="formation pb-6 align-center center-90">
  9. <v-col
  10. v-for="(formation, index) in formations"
  11. :key="index"
  12. cols="12"
  13. md="6"
  14. >
  15. <div class="mb-6">
  16. <v-img
  17. :src="formation.image"
  18. :alt="formation.alt"
  19. class="background-img"
  20. />
  21. </div>
  22. <div>
  23. <h3>
  24. {{ formation.sessions }}
  25. </h3>
  26. <h4>
  27. {{ formation.title }}
  28. </h4>
  29. <p class="details mb-5">
  30. {{ formation.description }}
  31. </p>
  32. <v-btn :to="formation.link">
  33. {{ formation.buttonText }}
  34. </v-btn>
  35. </div>
  36. </v-col>
  37. </v-row>
  38. </div>
  39. </LayoutContainer>
  40. </AnchoredSection>
  41. </template>
  42. <script setup lang="ts">
  43. import AnchoredSection from '~/components/Layout/AnchoredSection.vue'
  44. import type { Formation } from '~/types/interface'
  45. const formations: Array<Formation> = [
  46. {
  47. image:
  48. '/images/components/formations/Formations_en_ligne_et_presentiel.jpg',
  49. alt: 'Formateur dans une salle avec 5 personnes levant la main',
  50. overlayClass: 'image-overlay1',
  51. sessions: '3 formations disponibles',
  52. title: 'Des formations adaptées à chacun - en ligne',
  53. description:
  54. 'Parce qu’on sait qu’appréhender un nouvel outil peut-être fastidieux et que vous n’avez pas de temps à perdre,...',
  55. buttonText: 'Découvrir toutes nos formations',
  56. link: '/formations',
  57. },
  58. {
  59. image: '/images/components/formations/Webinaires_visioconferences.jpg',
  60. alt: 'Femme sur son bureau avec devant deux écrans d’ordinateur de bureau en visioconférence devant 12 personnes',
  61. overlayClass: 'image-overlay2',
  62. sessions: 'Toutes nos sessions',
  63. title: "Trouvez le webinaire qu'il vous faut ",
  64. description:
  65. "Des explications précises sur certains modules du logiciel Opentalent School, c'est possible pour aller encore plus loin...",
  66. buttonText: 'Découvrir nos webinaires ',
  67. link: '/webinaires',
  68. },
  69. ]
  70. </script>
  71. <style scoped>
  72. :deep(h2) {
  73. width: 60rem;
  74. }
  75. .background-img {
  76. width: 600px;
  77. height: 400px;
  78. background-size: cover;
  79. background-position: center;
  80. @media (max-width: 600px) {
  81. height: auto;
  82. }
  83. }
  84. .alt-color {
  85. color: var(--on-primary-color-alt);
  86. }
  87. .formation {
  88. .v-btn {
  89. width: 26rem;
  90. height: 44px;
  91. font-weight: 500;
  92. font-size: 18px;
  93. line-height: 18px;
  94. background: transparent;
  95. color: var(--on-primary-color);
  96. border: 1px solid;
  97. border-color: var(--on-primary-color);
  98. border-radius: 0.5rem;
  99. text-transform: none;
  100. }
  101. h3 {
  102. font-weight: 500;
  103. font-size: 1.4rem;
  104. line-height: 26px;
  105. color: var(--secondary-color) !important;
  106. margin-bottom: 1.5rem;
  107. }
  108. h4 {
  109. font-weight: 500;
  110. font-size: 1.8rem;
  111. line-height: 26px;
  112. color: var(--on-primary-color);
  113. margin-bottom: 3rem;
  114. }
  115. .details {
  116. font-weight: 300;
  117. font-size: 1.2rem;
  118. max-width: 650px;
  119. line-height: 1.5rem;
  120. color: var(--on-primary-color);
  121. }
  122. @media (max-width: 1240px) {
  123. .background-img,
  124. h3,
  125. h4,
  126. .details {
  127. margin-left: auto;
  128. margin-right: auto;
  129. text-align: center;
  130. }
  131. .v-btn {
  132. width: 80%;
  133. margin-left: 10%;
  134. }
  135. }
  136. @media (max-width: 600px) {
  137. .v-btn {
  138. height: 96px;
  139. }
  140. :deep(.v-btn__content) {
  141. white-space: pre-wrap;
  142. line-height: 1.2em;
  143. padding: initial;
  144. text-align: center;
  145. }
  146. }
  147. }
  148. </style>