Topbar.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div class="topbar">
  3. <NuxtLink to="/" class="logo-link">
  4. <div class="logo-container">
  5. <h1 class="site-title">{{ $t('site_title') }}</h1>
  6. <p class="site-subtitle">{{ $t('site_subtitle') }}</p>
  7. </div>
  8. </NuxtLink>
  9. <v-spacer />
  10. <div class="icon-links">
  11. <LanguageSelector class="mr-3" />
  12. <ThemeSwitcher />
  13. <a
  14. href="#contact"
  15. class="contact-btn v-btn v-btn--text"
  16. >
  17. <i class="fas fa-phone mr-2"></i>
  18. {{ $t('contact_button') }}
  19. </a>
  20. </div>
  21. </div>
  22. </template>
  23. <script setup lang="ts">
  24. import ThemeSwitcher from "~/components/ThemeSwitcher.vue";
  25. import { useDisplay } from 'vuetify'
  26. import { useI18n } from 'vue-i18n'
  27. const i18n = useI18n()
  28. const { lgAndUp }= useDisplay()
  29. </script>
  30. <style scoped lang="scss">
  31. .topbar {
  32. min-height: 64px;
  33. display: flex;
  34. flex-direction: row;
  35. margin: 0;
  36. padding: 18px;
  37. @media (max-width: 1279px) {
  38. margin: 0 10%;
  39. }
  40. @media (max-width: 600px) {
  41. margin: 0 5%;
  42. flex-direction: column;
  43. align-items: center;
  44. text-align: center;
  45. }
  46. .logo-link {
  47. text-decoration: none;
  48. transition: opacity 0.2s ease;
  49. &:hover {
  50. opacity: 0.9;
  51. }
  52. }
  53. .logo-container {
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: center;
  57. .site-title {
  58. font-size: 1.8rem;
  59. font-weight: 700;
  60. margin: 0;
  61. color: rgb(var(--v-theme-primary));
  62. font-family: 'Georgia', serif;
  63. }
  64. .site-subtitle {
  65. font-size: 0.9rem;
  66. margin: 0;
  67. color: rgb(var(--v-theme-on-background));
  68. font-style: italic;
  69. }
  70. }
  71. .v-btn {
  72. color: rgb(var(--v-theme-on-background));
  73. }
  74. .contact-btn {
  75. background-color: rgb(var(--v-theme-primary));
  76. color: rgb(var(--v-theme-on-primary)) !important;
  77. font-weight: 500;
  78. border-radius: 4px;
  79. padding: 8px 16px;
  80. text-decoration: none;
  81. display: inline-flex;
  82. align-items: center;
  83. justify-content: center;
  84. line-height: 1;
  85. cursor: pointer;
  86. transition: background-color 0.2s;
  87. &:hover {
  88. opacity: 0.9;
  89. }
  90. }
  91. .icon-links {
  92. font-size: 14px;
  93. display: flex;
  94. flex-direction: row;
  95. align-items: center;
  96. > * {
  97. margin-left: 24px;
  98. @media (max-width: 540px) {
  99. margin-left: 12px;
  100. }
  101. }
  102. .logo {
  103. padding: 4px;
  104. }
  105. a {
  106. color: rgb(var(--v-theme-on-background--clickable));
  107. }
  108. }
  109. }
  110. </style>