forked from Mirrors/elk
fix: full width nav hover (#46)
This commit is contained in:
parent
c01acb7aa3
commit
6bf39d3a4f
1 changed files with 45 additions and 54 deletions
|
@ -4,70 +4,61 @@
|
||||||
<template>
|
<template>
|
||||||
<div px3 py4 flex="~ col gap2" text-lg>
|
<div px3 py4 flex="~ col gap2" text-lg>
|
||||||
<template v-if="currentUser">
|
<template v-if="currentUser">
|
||||||
<NuxtLink
|
<NuxtLink to="/home" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/home" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:home-5-line />
|
<div i-ri:home-5-line />
|
||||||
<span>Home</span>
|
<span>Home</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink to="/notifications" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/notifications" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:notification-4-line />
|
<div i-ri:notification-4-line />
|
||||||
<span>Notifications</span>
|
<span>Notifications</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
<NuxtLink
|
<NuxtLink to="/explore" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/explore" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:hashtag />
|
<div i-ri:hashtag />
|
||||||
<span>Explore</span>
|
<span>Explore</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink group to="/public/local" active-class="text-primary">
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/public/local" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:group-2-line />
|
<div i-ri:group-2-line />
|
||||||
<span>Local</span>
|
<span>Local</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink to="/public" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/public" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:earth-line />
|
<div i-ri:earth-line />
|
||||||
<span>Federated</span>
|
<span>Federated</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<template v-if="currentUser">
|
<template v-if="currentUser">
|
||||||
<NuxtLink
|
<NuxtLink to="/conversations" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/conversations" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:at-line />
|
<div i-ri:at-line />
|
||||||
<span>Conversations</span>
|
<span>Conversations</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink to="/favourites" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/favourites" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:heart-3-line />
|
<div i-ri:heart-3-line />
|
||||||
<span>Favorites</span>
|
<span>Favorites</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink to="/bookmarks" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
|
||||||
to="/bookmarks" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<div i-ri:bookmark-line />
|
<div i-ri:bookmark-line />
|
||||||
<span>Bookmarks</span>
|
<span>Bookmarks</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink
|
<NuxtLink :to="`/@${currentUser.account?.username}`" active-class="text-primary" group>
|
||||||
flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active
|
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active>
|
||||||
:to="`/@${currentUser.account?.username}`" active-class="text-primary"
|
|
||||||
>
|
|
||||||
<AccountAvatar :account="currentUser.account" h="1.2em" />
|
<AccountAvatar :account="currentUser.account" h="1.2em" />
|
||||||
<span>Profile</span>
|
<span>Profile</span>
|
||||||
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue