mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-02-03 05:37:54 +01:00
trying to fix navbar
This commit is contained in:
@@ -2,3 +2,7 @@ body {
|
|||||||
font-family: 'DM Sans', sans-serif;
|
font-family: 'DM Sans', sans-serif;
|
||||||
@apply flex h-full flex-col bg-zinc-50 dark:bg-black;
|
@apply flex h-full flex-col bg-zinc-50 dark:bg-black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.router-link-exact-active {
|
||||||
|
@apply bg-white/60 dark:bg-black
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,11 +11,15 @@ defineProps({
|
|||||||
<header class="z-30 sticky top-0 left-0 flex justify-center w-full">
|
<header class="z-30 sticky top-0 left-0 flex justify-center w-full">
|
||||||
<div class="w-full px-4 sm:px-6 lg:px-8 sm:mx-8 max-w-7xl py-4 flex justify-between bg-white dark:bg-zinc-900 border-b border-zinc-100 dark:border-zinc-300/10">
|
<div class="w-full px-4 sm:px-6 lg:px-8 sm:mx-8 max-w-7xl py-4 flex justify-between bg-white dark:bg-zinc-900 border-b border-zinc-100 dark:border-zinc-300/10">
|
||||||
<Logo />
|
<Logo />
|
||||||
<NavBar v-if="navigation" />
|
<ClientOnly>
|
||||||
|
<NavBar v-if="navigation" />
|
||||||
|
</ClientOnly>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<div class="flex items-center rounded-md p-1 gap-1 relative bg-black/5 text-sm font-medium text-zinc-700 dark:bg-zinc-800/90 dark:text-zinc-300">
|
<div class="flex items-center rounded-md p-1 gap-1 relative bg-black/5 text-sm font-medium text-zinc-700 dark:bg-zinc-800/90 dark:text-zinc-300">
|
||||||
<ColorPicker />
|
<ClientOnly>
|
||||||
<ColorModeButton />
|
<ColorPicker />
|
||||||
|
<ColorModeButton />
|
||||||
|
</ClientOnly>
|
||||||
</div>
|
</div>
|
||||||
<MobileNavBar v-if="navigation" />
|
<MobileNavBar v-if="navigation" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -43,9 +43,3 @@ const items = [
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.router-link-exact-active {
|
|
||||||
@apply bg-white/60 dark:bg-black
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user