Avantages.vue 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <LayoutContainer>
  3. <v-row>
  4. <LayoutUISubTitle>
  5. Découvrez les avantages de la solution
  6. </LayoutUISubTitle>
  7. <LayoutUITitle>
  8. {{ title }}
  9. </LayoutUITitle>
  10. </v-row>
  11. <v-row>
  12. <v-col
  13. cols="12"
  14. md="4"
  15. offset-md="1"
  16. v-for="(benefit, index) in benefits"
  17. :key="index"
  18. >
  19. <CommonCardBenefit
  20. :benefit="benefit"
  21. />
  22. </v-col>
  23. </v-row>
  24. </LayoutContainer>
  25. </template>
  26. <script setup lang="ts">
  27. import type { Benefit } from "~/types/interface";
  28. const props = defineProps({
  29. benefits: {
  30. type: Array as PropType<Array<Benefit>>,
  31. required: true
  32. },
  33. title: {
  34. type: String,
  35. required: false,
  36. default: "Des avantages concrets"
  37. }
  38. })
  39. </script>
  40. <style scoped lang="scss">
  41. .v-row {
  42. display: flex;
  43. flex-direction: row;
  44. justify-content: center;
  45. align-items: center;
  46. width: 90%;
  47. margin-left: auto;
  48. margin-right: auto;
  49. }
  50. </style>