Title.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. border-bottom: 0.1rem solid var(--on-neutral-color-extra-light);
  35. }
  36. h1 {
  37. font-size: 72px;
  38. line-height: 77px;
  39. color: var(--on-neutral-color);
  40. text-align: center;
  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>