Benefit.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. hr {
  39. opacity: 70%;
  40. }
  41. .v-img {
  42. height: 400px;
  43. }
  44. .card-title {
  45. display: flex;
  46. flex-direction: row;
  47. justify-content: space-between;
  48. align-items: center;
  49. font-weight: 600;
  50. font-size: 1.3rem;
  51. margin-bottom: 1rem;
  52. h4 {
  53. font-weight: 300;
  54. font-size: 1.5rem;
  55. line-height: 1rem;
  56. color: var(--on-primary-color);
  57. }
  58. .number {
  59. font-weight: 500;
  60. font-size: 1.3rem;
  61. color: var(--on-primary-color-alt);
  62. }
  63. }
  64. .description {
  65. display: flex;
  66. flex-direction: column;
  67. align-items: flex-start;
  68. height: 7rem;
  69. p {
  70. font-weight: normal;
  71. font-size: 1rem;
  72. color: var(--on-primary-color);
  73. margin-top: 1rem;
  74. height: 5rem;
  75. }
  76. ul {
  77. font-weight: normal;
  78. font-size: 0.8rem;
  79. color: var(--on-primary-color);
  80. margin-top: 1rem;
  81. margin-bottom: 1rem;
  82. }
  83. }
  84. </style>