Title.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <LayoutContainer>
  3. <div class="container-title">
  4. <v-col v-if="mdAndUp" cols="3" class="lateral-text">
  5. <span>
  6. <slot name="left-text" />
  7. </span>
  8. </v-col>
  9. <v-col cols="12" md="6">
  10. <h1>
  11. <slot />
  12. </h1>
  13. </v-col>
  14. <v-col v-if="mdAndUp" cols="3" class="lateral-text">
  15. <span>
  16. <slot name="right-text" />
  17. </span>
  18. </v-col>
  19. </div>
  20. </LayoutContainer>
  21. </template>
  22. <script setup lang="ts">
  23. import { useDisplay } from 'vuetify'
  24. const { mdAndUp } = useDisplay()
  25. </script>
  26. <style scoped lang="scss">
  27. .container-title {
  28. display: flex;
  29. justify-content: space-around;
  30. line-height: 16px;
  31. align-items: center;
  32. text-align: center;
  33. letter-spacing: 0.18em;
  34. }
  35. h1 {
  36. font-size: 72px;
  37. line-height: 77px;
  38. color: var(--on-neutral-color);
  39. text-align: center;
  40. white-space: nowrap;
  41. @media (max-width: 600px) {
  42. font-size: 42px;
  43. line-height: 46px;
  44. }
  45. }
  46. .lateral-text {
  47. position: absolute;
  48. font-weight: 600;
  49. font-size: 72px;
  50. line-height: 85px;
  51. opacity: 0.08;
  52. margin-top: 2rem;
  53. margin-bottom: 2rem;
  54. }
  55. .lateral-text:first-child {
  56. left: -10rem;
  57. }
  58. .lateral-text:last-child {
  59. right: -10rem;
  60. }
  61. </style>