Fonctionnalite.vue 5.4 KB

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