Title.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. @media (max-width: 600px) {
  41. font-size: 42px;
  42. line-height: 46px;
  43. }
  44. }
  45. .lateral-text {
  46. position: absolute;
  47. font-weight: 600;
  48. font-size: 72px;
  49. line-height: 85px;
  50. opacity: 0.08;
  51. margin-top: 2rem;
  52. margin-bottom: 2rem;
  53. }
  54. .lateral-text:first-child {
  55. left: -10rem;
  56. }
  57. .lateral-text:last-child {
  58. right: -10rem;
  59. }
  60. </style>