mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
docs(Header): improve logo based on route
This commit is contained in:
@@ -30,8 +30,12 @@ const mobileLinks = computed(() => props.links.map(link => ({ ...link, defaultOp
|
|||||||
<UHeader :ui="{ left: 'min-w-0' }" :menu="{ shouldScaleBackground: true }">
|
<UHeader :ui="{ left: 'min-w-0' }" :menu="{ shouldScaleBackground: true }">
|
||||||
<template #left>
|
<template #left>
|
||||||
<NuxtLink to="/" class="flex items-end gap-2 font-bold text-xl text-(--ui-text-highlighted) min-w-0 focus-visible:outline-(--ui-primary) shrink-0" aria-label="Nuxt UI">
|
<NuxtLink to="/" class="flex items-end gap-2 font-bold text-xl text-(--ui-text-highlighted) min-w-0 focus-visible:outline-(--ui-primary) shrink-0" aria-label="Nuxt UI">
|
||||||
<LogoPro class="w-auto h-6 shrink-0 ui-pro-only" />
|
<Logo v-if="route.path === '/'" class="w-auto h-6 shrink-0" />
|
||||||
<Logo class="w-auto h-6 shrink-0 ui-only" />
|
<LogoPro v-else-if="route.path.startsWith('/pro')" class="w-auto h-6 shrink-0" />
|
||||||
|
<template v-else>
|
||||||
|
<LogoPro class="w-auto h-6 shrink-0 ui-pro-only" />
|
||||||
|
<Logo class="w-auto h-6 shrink-0 ui-only" />
|
||||||
|
</template>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<UDropdownMenu
|
<UDropdownMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user