1
0
elk/components/nav/NavSide.vue

66 lines
2.6 KiB
Vue
Raw Normal View History

2022-11-16 02:14:10 +09:00
<script setup lang="ts">
</script>
<template>
2022-11-23 23:50:03 +09:00
<div px3 py4 flex="~ col gap2" text-lg>
2022-11-23 08:08:36 +09:00
<template v-if="currentUser">
2022-11-24 23:06:14 +09:00
<NuxtLink to="/home" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:home-5-line />
<span>Home</span>
</div>
2022-11-18 06:32:03 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink to="/notifications" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:notification-4-line />
<span>Notifications</span>
</div>
2022-11-18 06:32:03 +09:00
</NuxtLink>
</template>
2022-11-24 23:06:14 +09:00
<NuxtLink to="/explore" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:hashtag />
<span>Explore</span>
</div>
2022-11-16 02:14:10 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink group to="/public/local" active-class="text-primary">
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:group-2-line />
<span>Local</span>
</div>
2022-11-16 02:14:10 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink to="/public" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:earth-line />
<span>Federated</span>
</div>
2022-11-16 02:14:10 +09:00
</NuxtLink>
2022-11-23 08:08:36 +09:00
<template v-if="currentUser">
2022-11-24 23:06:14 +09:00
<NuxtLink to="/conversations" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:at-line />
<span>Conversations</span>
</div>
2022-11-18 06:32:03 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink to="/favourites" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:heart-3-line />
<span>Favorites</span>
</div>
2022-11-18 06:32:03 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink to="/bookmarks" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active>
<div i-ri:bookmark-line />
<span>Bookmarks</span>
</div>
2022-11-18 06:32:03 +09:00
</NuxtLink>
2022-11-24 23:06:14 +09:00
<NuxtLink :to="`/@${currentUser.account?.username}`" active-class="text-primary" group>
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active>
<AccountAvatar :account="currentUser.account" h="1.2em" />
<span>Profile</span>
</div>
2022-11-23 12:06:56 +09:00
</NuxtLink>
2022-11-18 06:32:03 +09:00
</template>
2022-11-16 02:14:10 +09:00
</div>
</template>