Formations.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. }
  81. .alt-color {
  82. color: var(--on-primary-color-alt);
  83. }
  84. .formation {
  85. .v-btn {
  86. width: 26rem;
  87. height: 44px;
  88. font-weight: 500;
  89. font-size: 18px;
  90. line-height: 18px;
  91. background: transparent;
  92. color: var(--on-primary-color);
  93. border: 1px solid;
  94. border-color: var(--on-primary-color);
  95. border-radius: 0.5rem;
  96. text-transform: none;
  97. }
  98. h3 {
  99. font-weight: 500;
  100. font-size: 1.4rem;
  101. line-height: 26px;
  102. color: var(--secondary-color) !important;
  103. margin-bottom: 1.5rem;
  104. }
  105. h4 {
  106. font-weight: 500;
  107. font-size: 1.8rem;
  108. line-height: 26px;
  109. color: var(--on-primary-color);
  110. margin-bottom: 3rem;
  111. }
  112. .details {
  113. font-weight: 300;
  114. font-size: 1.2rem;
  115. max-width: 650px;
  116. line-height: 1.5rem;
  117. color: var(--on-primary-color);
  118. }
  119. @media (max-width: 1240px) {
  120. .background-img,
  121. h3,
  122. h4,
  123. .details {
  124. margin-left: auto;
  125. margin-right: auto;
  126. text-align: center;
  127. }
  128. .v-btn {
  129. width: 80%;
  130. margin-left: 10%;
  131. }
  132. }
  133. @media (max-width: 600px) {
  134. .v-btn {
  135. height: 96px;
  136. }
  137. :deep(.v-btn__content) {
  138. white-space: pre-wrap;
  139. line-height: 1.2em;
  140. padding: initial;
  141. text-align: center;
  142. }
  143. }
  144. }
  145. </style>