Fonctionnalite.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <LayoutContainer>
  3. <v-row>
  4. <v-col cols="6">
  5. <LayoutUISubTitle>
  6. Découvrez TOUTES LES FONCTIONNALITÉS DE NOTRE solution
  7. </LayoutUISubTitle>
  8. <LayoutUITitle>
  9. Des fonctionnalités adaptées à vos besoins
  10. </LayoutUITitle>
  11. </v-col>
  12. <v-col cols="12" md="6" class="d-flex align-center justify-start">
  13. <v-btn icon="fas fa-chevron-left" @click="previousAction" />
  14. <v-btn icon="fas fa-chevron-right" @click="nextAction" />
  15. </v-col>
  16. </v-row>
  17. <v-row>
  18. <v-col cols="12" md="12">
  19. <Carousel
  20. ref="carousel"
  21. :items-to-show="4"
  22. :items-to-scroll="1"
  23. :wrap-around="true"
  24. >
  25. <Slide v-for="(card, index) in cards" :key="index" >
  26. <div class="card-container">
  27. <v-card class="inv-theme">
  28. <v-img
  29. :src="card.logo"
  30. :alt="card.title"
  31. class="mx-auto"
  32. />
  33. <v-card-title>
  34. <h5>
  35. {{ card.title }}
  36. </h5>
  37. </v-card-title>
  38. <v-card-item>
  39. <v-card-text>
  40. <ul>
  41. <li
  42. v-for="item in card.list"
  43. :key="item"
  44. >
  45. <p>{{ item }}</p>
  46. </li>
  47. </ul>
  48. </v-card-text>
  49. </v-card-item>
  50. <div class="footer">
  51. <p
  52. v-for="option in card.options"
  53. :key="option"
  54. >
  55. {{ option }}
  56. </p>
  57. </div>
  58. </v-card>
  59. </div>
  60. </Slide>
  61. </Carousel>
  62. </v-col>
  63. </v-row>
  64. </LayoutContainer>
  65. </template>
  66. <script setup lang="ts">
  67. import { useDisplay } from "vuetify";
  68. import { Carousel, Slide } from "vue3-carousel";
  69. import "vue3-carousel/dist/carousel.css";
  70. import type { PropType } from "@vue/runtime-core";
  71. import type { Functionality } from "~/types/interface";
  72. const { mdAndDown } = useDisplay();
  73. const props = defineProps({
  74. cards: {
  75. type: Array as PropType<Array<Functionality>>,
  76. required: true
  77. }
  78. })
  79. const carousel: Ref<typeof Carousel | null> = ref(null);
  80. const nextAction = () => {
  81. carousel.value!.next();
  82. };
  83. const previousAction = () => {
  84. carousel.value!.prev();
  85. };
  86. </script>
  87. <style scoped lang="scss">
  88. .v-row {
  89. width: 95%;
  90. margin-left: auto;
  91. margin-right: auto;
  92. }
  93. .v-btn {
  94. width: 60px;
  95. height: 60px;
  96. background-color: transparent;
  97. //color: var(--on-primary-color);
  98. color: white;
  99. border: 2px solid var(--on-primary-color);
  100. cursor: pointer;
  101. border-radius: 0;
  102. margin: 6px;
  103. }
  104. .carousel {
  105. margin-left: 2rem;
  106. margin-right: 2rem;
  107. }
  108. .card-container {
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. margin-bottom: 3rem;
  113. margin-right: 2rem;
  114. }
  115. .v-card {
  116. border-radius: 1rem;
  117. transition: transform 0.3s;
  118. font-weight: 300;
  119. min-height: 25rem !important;
  120. .v-img {
  121. width: 5rem;
  122. height: 3rem;
  123. margin-top: 1rem;
  124. }
  125. .v-card-title {
  126. white-space: pre-wrap;
  127. }
  128. .v-card-item {
  129. text-align: left;
  130. }
  131. li {
  132. font-weight: 300;
  133. font-size: 0.9rem;
  134. line-height: 1.2rem;
  135. margin-bottom: 1rem;
  136. color: #000000;
  137. }
  138. .footer {
  139. position: absolute;
  140. left: 0;
  141. margin-left: .5rem;
  142. font-size: .9rem;
  143. }
  144. }
  145. @media(min-width: 1800px){
  146. .v-card{
  147. min-height: 400px !important;
  148. max-height: 400px !important;
  149. min-width: 400px !important;
  150. max-width: 400px !important;
  151. }
  152. }
  153. </style>