Fonctionnalite.vue 5.0 KB

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