1
0
elk/components/nav/NavSide.vue

48 lines
1.8 KiB
Vue
Raw Normal View History

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