| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <template>
- <div class="topbar">
- <NuxtLink to="/" class="logo-link">
- <div class="logo-container">
- <h1 class="site-title">La Sauvagerie</h1>
- <p class="site-subtitle">Location de vacances en Normandie</p>
- </div>
- </NuxtLink>
- <v-spacer />
- <div class="icon-links">
- <LanguageSelector class="mr-3" />
- <ThemeSwitcher />
- <v-btn
- variant="text"
- class="contact-btn"
- prepend-icon="fas fa-phone"
- >
- Contact
- </v-btn>
- </div>
- </div>
- </template>
- <script setup lang="ts">
- import ThemeSwitcher from "~/components/ThemeSwitcher.vue";
- import { useDisplay } from 'vuetify'
- const i18n = useI18n()
- const { lgAndUp }= useDisplay()
- </script>
- <style scoped lang="scss">
- .topbar {
- min-height: 64px;
- display: flex;
- flex-direction: row;
- margin: 0;
- padding: 18px;
- @media (max-width: 1279px) {
- margin: 0 10%;
- }
- @media (max-width: 600px) {
- margin: 0 5%;
- flex-direction: column;
- align-items: center;
- text-align: center;
- }
- .logo-link {
- text-decoration: none;
- transition: opacity 0.2s ease;
- &:hover {
- opacity: 0.9;
- }
- }
- .logo-container {
- display: flex;
- flex-direction: column;
- justify-content: center;
- .site-title {
- font-size: 1.8rem;
- font-weight: 700;
- margin: 0;
- color: rgb(var(--v-theme-primary));
- font-family: 'Georgia', serif;
- }
- .site-subtitle {
- font-size: 0.9rem;
- margin: 0;
- color: rgb(var(--v-theme-on-background));
- font-style: italic;
- }
- }
- .v-btn {
- color: rgb(var(--v-theme-on-background));
- }
- .contact-btn {
- background-color: rgb(var(--v-theme-primary));
- color: rgb(var(--v-theme-on-primary)) !important;
- font-weight: 500;
- border-radius: 4px;
- padding: 0 16px;
- }
- .icon-links {
- font-size: 14px;
- display: flex;
- flex-direction: row;
- align-items: center;
- > * {
- margin-left: 24px;
- @media (max-width: 540px) {
- margin-left: 12px;
- }
- }
- .logo {
- padding: 4px;
- }
- a {
- color: rgb(var(--v-theme-on-background--clickable));
- }
- }
- }
- </style>
|