Fonctionnalite.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div id="Fonctionnalites">
  3. <LayoutContainer>
  4. <div class="container-green">
  5. <v-row>
  6. <v-col cols="6">
  7. <LayoutUISubTitle
  8. title-color="#fff"
  9. :iconSize="6"
  10. :iconClasses="iconClasses"
  11. :titleText="'Découvrez TOUTES LES FONCTIONNALITÉS DE NOTRE solution'"
  12. :iconColor="iconColor"
  13. />
  14. <LayoutUITitle
  15. title="Des fonctionnalités adaptées à vos besoins"
  16. title-color="#fff"
  17. />
  18. </v-col>
  19. <v-col cols="6">
  20. <div class="d-flex align-center">
  21. <div class="carousel-button" @click="previousAction">
  22. <i class="fas fa-chevron-left"></i>
  23. </div>
  24. <div class="carousel-button" @click="nextAction">
  25. <i class="fas fa-chevron-right"></i>
  26. </div>
  27. </div>
  28. </v-col>
  29. </v-row>
  30. <v-row>
  31. <v-col cols="12"> </v-col>
  32. </v-row>
  33. <v-row>
  34. <v-col cols="12">
  35. <Carousel
  36. ref="functionCarousel"
  37. :items-to-show="5"
  38. :items-to-scroll="1"
  39. class="carousel"
  40. >
  41. <Slide
  42. v-for="(card, index) in cards"
  43. :key="index"
  44. :class="{
  45. card: true,
  46. 'active-card': index === activeCardIndex,
  47. }"
  48. >
  49. <div class="card-container">
  50. <v-card>
  51. <v-img
  52. :src="card.logo"
  53. :alt="card.title"
  54. class="mx-auto card-img"
  55. />
  56. <v-card-title>
  57. <h5 class="card-title">{{ card.title }}</h5>
  58. </v-card-title>
  59. <v-card-item>
  60. <v-card-text class="review-description">
  61. <ul>
  62. <li
  63. class="list-detail"
  64. v-for="item in card.list"
  65. :key="item"
  66. >
  67. {{ item }}
  68. </li>
  69. </ul>
  70. </v-card-text>
  71. <div class="card-footer">
  72. <p
  73. class="reviewer-structure"
  74. v-for="option in card.options"
  75. :key="option"
  76. >
  77. {{ option }}
  78. </p>
  79. </div>
  80. </v-card-item>
  81. </v-card>
  82. </div>
  83. </Slide>
  84. </Carousel>
  85. </v-col>
  86. </v-row>
  87. </div>
  88. </LayoutContainer>
  89. </div>
  90. </template>
  91. <script setup>
  92. import { ref, computed } from "vue";
  93. import { Carousel, Slide } from "vue3-carousel";
  94. import "vue3-carousel/dist/carousel.css";
  95. import { useDisplay } from "vuetify/lib/framework.mjs";
  96. const props = defineProps({
  97. cards: Array,
  98. itemsToScroll: {
  99. type: Number,
  100. default: 1,
  101. },
  102. itemsToShow: {
  103. type: Number,
  104. default: 5,
  105. },
  106. });
  107. const { width, mdAndDown } = useDisplay();
  108. const functionCarousel = ref(null);
  109. const activeCardIndex = ref(0);
  110. const itemsToShow = computed(() => {
  111. if (width.value >= 1280 && width.value <= 1920) {
  112. return 3;
  113. } else if (width.value > 1920) {
  114. return 6;
  115. }
  116. return props.itemsToShow;
  117. });
  118. const nextAction = () => {
  119. functionCarousel.value.next();
  120. };
  121. const previousAction = () => {
  122. functionCarousel.value.prev();
  123. };
  124. </script>
  125. <style scoped>
  126. .card-img {
  127. width: 5rem;
  128. height: 3rem;
  129. margin-top: 1rem;
  130. }
  131. .list-detail {
  132. font-weight: 300;
  133. font-size: 0.9rem;
  134. line-height: 1.2rem;
  135. margin-bottom: 1rem;
  136. color: #000000;
  137. word-break: none;
  138. }
  139. .card-title {
  140. white-space: pre-wrap;
  141. }
  142. .carousel {
  143. margin-left: 2rem;
  144. margin-right: 2rem;
  145. }
  146. .card.active-card {
  147. }
  148. .title-container {
  149. display: flex;
  150. align-items: center;
  151. }
  152. .subtitle-avantage {
  153. font-weight: 600;
  154. font-size: 3rem;
  155. line-height: 18px;
  156. color: white;
  157. }
  158. .subtitle {
  159. color: white;
  160. font-size: 1rem;
  161. font-weight: 600;
  162. line-height: 15px;
  163. letter-spacing: 1.8px;
  164. text-transform: uppercase;
  165. }
  166. .icon-title {
  167. color: #fac20a;
  168. margin-right: 0.5rem;
  169. }
  170. .card {
  171. font-weight: 300;
  172. transition: transform 0.3s;
  173. }
  174. .card.active-card {
  175. transform: scale(1.05);
  176. }
  177. .carousel-button {
  178. display: flex;
  179. justify-content: center;
  180. align-items: center;
  181. width: 60px;
  182. height: 60px;
  183. background-color: transparent;
  184. border: 2px solid #fff;
  185. cursor: pointer;
  186. margin-right: 1rem;
  187. margin-top: 5rem;
  188. }
  189. .carousel-button i {
  190. color: #fff;
  191. }
  192. .reviewer-structure {
  193. font-weight: 300;
  194. font-size: 0.8rem;
  195. display: flex;
  196. align-items: center;
  197. color: #071b1f;
  198. }
  199. .review-description {
  200. text-align: left;
  201. }
  202. .card-footer {
  203. position: absolute;
  204. right: 0;
  205. margin-right: 2rem;
  206. }
  207. .card {
  208. box-sizing: border-box;
  209. }
  210. .card {
  211. min-height: 35rem;
  212. max-height: 35rem;
  213. border-radius: 1rem;
  214. transition: transform 0.3s;
  215. }
  216. .v-card {
  217. border-radius: 1rem;
  218. min-height: 25rem;
  219. }
  220. .card-container {
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. margin-bottom: 3rem;
  225. margin-right: 2rem;
  226. }
  227. .container-green {
  228. background-color: #0e2d32;
  229. }
  230. </style>