Fonctionnalite.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. </v-card-item>
  69. <div class="card-footer">
  70. <p
  71. v-for="option in card.options"
  72. :key="option"
  73. >
  74. {{ option }}
  75. </p>
  76. </div>
  77. </v-card>
  78. </div>
  79. </Slide>
  80. </Carousel>
  81. </v-col>
  82. </v-row>
  83. </div>
  84. </LayoutContainer>
  85. </div>
  86. </template>
  87. <script setup>
  88. import { useDisplay } from "vuetify";
  89. import { ref, computed } from "vue";
  90. import { Carousel, Slide } from "vue3-carousel";
  91. import "vue3-carousel/dist/carousel.css";
  92. const { smAndDown, mdAndDown } = useDisplay();
  93. const props = defineProps({
  94. cards: Array,
  95. itemsToScroll: {
  96. type: Number,
  97. default: 1,
  98. },
  99. itemsToShow: {
  100. type: Number,
  101. default: 5,
  102. },
  103. });
  104. const functionCarousel = ref(null);
  105. const itemsToShow = computed(() => {
  106. if (width.value >= 1280 && width.value <= 1920) {
  107. return 3;
  108. } else if (width.value > 1920) {
  109. return 6;
  110. }
  111. return props.itemsToShow;
  112. });
  113. const nextAction = () => {
  114. functionCarousel.value.next();
  115. };
  116. const previousAction = () => {
  117. functionCarousel.value.prev();
  118. };
  119. </script>
  120. <style scoped>
  121. .custom-row {
  122. width: 95%;
  123. margin-left: auto;
  124. margin-right: auto;
  125. }
  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. .title-container {
  147. display: flex;
  148. align-items: center;
  149. }
  150. .subtitle-avantage {
  151. font-weight: 600;
  152. font-size: 3rem;
  153. line-height: 18px;
  154. color: white;
  155. }
  156. .subtitle {
  157. color: white;
  158. font-size: 1rem;
  159. font-weight: 600;
  160. line-height: 15px;
  161. letter-spacing: 1.8px;
  162. text-transform: uppercase;
  163. }
  164. .icon-title {
  165. color: #fac20a;
  166. margin-right: 0.5rem;
  167. }
  168. .card {
  169. font-weight: 300;
  170. transition: transform 0.3s;
  171. }
  172. .carousel-button {
  173. display: flex;
  174. justify-content: center;
  175. align-items: center;
  176. width: 60px;
  177. height: 60px;
  178. background-color: transparent;
  179. border: 2px solid #fff;
  180. cursor: pointer;
  181. margin-right: 1rem;
  182. margin-top: 5rem;
  183. }
  184. .carousel-button i {
  185. color: #fff;
  186. }
  187. .reviewer-structure {
  188. font-weight: 300;
  189. font-size: 0.8rem;
  190. display: flex;
  191. align-items: center;
  192. color: #071b1f;
  193. }
  194. .review-description {
  195. text-align: left;
  196. }
  197. .card-footer {
  198. position: absolute;
  199. left: 0;
  200. margin-left: .5rem;
  201. font-size: .9rem;
  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. min-width: 280px !important;
  211. max-width: 280px !important;
  212. border-radius: 1rem;
  213. min-height: 25rem;
  214. }
  215. @media(min-width: 1800px){
  216. .v-card{
  217. min-height: 400px !important;
  218. max-height: 400px !important;
  219. min-width: 400px !important;
  220. max-width: 400px !important;
  221. }
  222. }
  223. .card-container {
  224. display: flex;
  225. justify-content: center;
  226. align-items: center;
  227. margin-bottom: 3rem;
  228. margin-right: 2rem;
  229. }
  230. .container-green {
  231. background-color: #0e2d32;
  232. }
  233. </style>