SubTitle.vue 918 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!--
  2. Titre H4 précédé d'une puce
  3. -->
  4. <template>
  5. <LayoutContainer>
  6. <div class="container">
  7. <v-icon :icon="icon" :size="iconSize" />
  8. <h2>
  9. <slot />
  10. </h2>
  11. </div>
  12. </LayoutContainer>
  13. </template>
  14. <script setup lang="ts">
  15. defineProps({
  16. icon: {
  17. type: String,
  18. default: "fas fa-circle",
  19. },
  20. iconSize: {
  21. type: [String, Number],
  22. default: 5,
  23. },
  24. });
  25. </script>
  26. <style scoped lang="scss">
  27. .container {
  28. display: flex;
  29. align-items: center;
  30. gap: 0.5rem;
  31. margin-left: 10px;
  32. color: var(--primary-color);
  33. font-size: 10px;
  34. font-weight: 600;
  35. line-height: 15px;
  36. letter-spacing: 1.8px;
  37. text-transform: uppercase;
  38. }
  39. .v-icon {
  40. color: var(--on-primary-color-alt) !important;
  41. margin-top: 1px;
  42. }
  43. h2 {
  44. color: var(--on-neutral-color);
  45. font-weight: 500;
  46. font-size: 1rem;
  47. line-height: 15px;
  48. letter-spacing: 1px;
  49. text-transform: uppercase;
  50. }
  51. </style>