Title.vue 518 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <LayoutContainer>
  3. <div>
  4. <h2 class="title" :style="{ color: titleColor }">{{ title }}</h2>
  5. </div>
  6. </LayoutContainer>
  7. </template>
  8. <script setup>
  9. import { defineProps } from "vue";
  10. const props = defineProps({
  11. title: String,
  12. titleColor: {
  13. type: String,
  14. default: "#0E2D32",
  15. },
  16. });
  17. </script>
  18. <style scoped>
  19. .title {
  20. font-weight: 600;
  21. font-size: 3rem;
  22. line-height: 3rem;
  23. color: inherit;
  24. margin-left: 1rem;
  25. color: var(--Vert-90, #0E2D32);
  26. width: 35rem;
  27. }
  28. </style>