Fonctionnalite.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <div id="Fonctionnalites">
  3. <LayoutContainer>
  4. <div class="container-green">
  5. <v-row class="custom-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 class="custom-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. :wrap-around="true"
  41. >
  42. <Slide
  43. v-for="(card, index) in cards"
  44. :key="index"
  45. :class="{
  46. card: true
  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. <p v-html="item"></p>
  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. .custom-row{
  127. width: 95%;
  128. margin-left: auto;
  129. margin-right: auto;
  130. }
  131. .card-img {
  132. width: 5rem;
  133. height: 3rem;
  134. margin-top: 1rem;
  135. }
  136. .list-detail {
  137. font-weight: 300;
  138. font-size: 0.9rem;
  139. line-height: 1.2rem;
  140. margin-bottom: 1rem;
  141. color: #000000;
  142. word-break: none;
  143. }
  144. .card-title {
  145. white-space: pre-wrap;
  146. }
  147. .carousel {
  148. margin-left: 2rem;
  149. margin-right: 2rem;
  150. }
  151. .card.active-card {
  152. }
  153. .title-container {
  154. display: flex;
  155. align-items: center;
  156. }
  157. .subtitle-avantage {
  158. font-weight: 600;
  159. font-size: 3rem;
  160. line-height: 18px;
  161. color: white;
  162. }
  163. .subtitle {
  164. color: white;
  165. font-size: 1rem;
  166. font-weight: 600;
  167. line-height: 15px;
  168. letter-spacing: 1.8px;
  169. text-transform: uppercase;
  170. }
  171. .icon-title {
  172. color: #fac20a;
  173. margin-right: 0.5rem;
  174. }
  175. .card {
  176. font-weight: 300;
  177. transition: transform 0.3s;
  178. }
  179. .card.active-card {
  180. transform: scale(1.05);
  181. }
  182. .carousel-button {
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. width: 60px;
  187. height: 60px;
  188. background-color: transparent;
  189. border: 2px solid #fff;
  190. cursor: pointer;
  191. margin-right: 1rem;
  192. margin-top: 5rem;
  193. }
  194. .carousel-button i {
  195. color: #fff;
  196. }
  197. .reviewer-structure {
  198. font-weight: 300;
  199. font-size: 0.8rem;
  200. display: flex;
  201. align-items: center;
  202. color: #071b1f;
  203. }
  204. .review-description {
  205. text-align: left;
  206. }
  207. .card-footer {
  208. position: absolute;
  209. right: 0;
  210. margin-right: 2rem;
  211. }
  212. .card {
  213. box-sizing: border-box;
  214. }
  215. .card {
  216. min-height: 35rem;
  217. max-height: 35rem;
  218. border-radius: 1rem;
  219. transition: transform 0.3s;
  220. }
  221. .v-card {
  222. border-radius: 1rem;
  223. min-height: 25rem;
  224. }
  225. .card-container {
  226. display: flex;
  227. justify-content: center;
  228. align-items: center;
  229. margin-bottom: 3rem;
  230. margin-right: 2rem;
  231. }
  232. .container-green {
  233. background-color: #0e2d32;
  234. }
  235. </style>