Benefit.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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="2"/>
  16. <div class="description">
  17. <p class="mr-4">
  18. {{ benefit.description }}
  19. </p>
  20. </div>
  21. <v-img
  22. :src="benefit.image"
  23. cover
  24. />
  25. </div>
  26. </LayoutContainer>
  27. </template>
  28. <script setup lang="ts">
  29. import type { Benefit } from "~/types/interface";
  30. const props = defineProps({
  31. benefit: {
  32. type: Object as PropType<Benefit>,
  33. required: true
  34. }
  35. });
  36. </script>
  37. <style scoped lang="scss">
  38. .v-row {
  39. width: 90%;
  40. margin-left: auto;
  41. margin-right: auto;
  42. }
  43. hr {
  44. opacity: 70%;
  45. }
  46. .v-img {
  47. height: 400px;
  48. }
  49. .card-title {
  50. display: flex;
  51. flex-direction: row;
  52. justify-content: space-between;
  53. align-items: center;
  54. font-weight: 600;
  55. font-size: 1.3rem;
  56. margin-bottom: 1rem;
  57. h4 {
  58. font-weight: 300;
  59. font-size: 1.5rem;
  60. line-height: 1rem;
  61. color: #0e2d32;
  62. }
  63. .number {
  64. font-weight: 500;
  65. font-size: 1.3rem;
  66. color: var(--on-primary-color-alt);
  67. }
  68. }
  69. .description {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: flex-start;
  73. height: 7rem;
  74. p {
  75. font-weight: normal;
  76. font-size: 1rem;
  77. color: #091d20;
  78. margin-top: 1rem;
  79. height: 5rem;
  80. }
  81. ul {
  82. font-weight: normal;
  83. font-size: 0.8rem;
  84. color: #091d20;
  85. margin-top: 1rem;
  86. margin-bottom: 1rem;
  87. }
  88. }
  89. </style>