Benefit.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!--
  2. Carte "Avantage" de la section Avantages d'une page Logiciel
  3. -->
  4. <template>
  5. <LayoutContainer>
  6. <div>
  7. <div class="card-title">
  8. <h4>
  9. {{ benefit.title }}
  10. </h4>
  11. <span class="number">
  12. {{ benefit.number }}
  13. </span>
  14. </div>
  15. <v-divider thickness="1" />
  16. <div class="description">
  17. <p class="mr-4">
  18. {{ benefit.description }}
  19. </p>
  20. </div>
  21. <v-img :src="benefit.image" :alt="benefit.alt" cover />
  22. </div>
  23. </LayoutContainer>
  24. </template>
  25. <script setup lang="ts">
  26. import type { PropType } from 'vue'
  27. import type { Benefit } from '~/types/interface'
  28. defineProps({
  29. benefit: {
  30. type: Object as PropType<Benefit>,
  31. required: true,
  32. },
  33. })
  34. </script>
  35. <style scoped lang="scss">
  36. hr {
  37. opacity: 70%;
  38. }
  39. .v-img {
  40. height: 400px;
  41. }
  42. .card-title {
  43. display: flex;
  44. flex-direction: row;
  45. justify-content: space-between;
  46. align-items: center;
  47. font-weight: 600;
  48. font-size: 1.3rem;
  49. margin-bottom: 1rem;
  50. h4 {
  51. font-weight: 300;
  52. font-size: 1.5rem;
  53. line-height: 1.3rem;
  54. color: var(--on-primary-color);
  55. }
  56. .number {
  57. font-weight: 500;
  58. font-size: 1.3rem;
  59. color: var(--on-primary-color-alt);
  60. }
  61. }
  62. .description {
  63. display: flex;
  64. flex-direction: column;
  65. align-items: flex-start;
  66. height: 7rem;
  67. p {
  68. font-weight: normal;
  69. font-size: 1rem;
  70. color: var(--on-primary-color);
  71. margin-top: 1rem;
  72. height: 5rem;
  73. }
  74. ul {
  75. font-weight: normal;
  76. font-size: 0.8rem;
  77. color: var(--on-primary-color);
  78. margin-top: 1rem;
  79. margin-bottom: 1rem;
  80. }
  81. }
  82. </style>