elk/components/nav/NavSide.vue

45 lines
1.5 KiB
Vue
Raw Normal View History

2022-11-15 17:14:10 +00:00
<script setup lang="ts">
2022-11-17 21:32:03 +00:00
const isLogin = useLoginState()
2022-11-15 17:14:10 +00:00
</script>
<template>
<div px6 py2 flex="~ col gap6" text-lg>
2022-11-17 21:32:03 +00:00
<template v-if="isLogin">
<NuxtLink flex gap2 items-center to="/home" active-class="text-primary">
<div i-ri:home-5-line />
<span>Home</span>
</NuxtLink>
<NuxtLink flex gap2 items-center to="/notifications" active-class="text-primary">
<div i-ri:notification-4-line />
<span>Notifications</span>
</NuxtLink>
</template>
2022-11-17 13:09:05 +00:00
<NuxtLink flex gap2 items-center to="/explore" active-class="text-primary">
2022-11-15 17:14:10 +00:00
<div i-ri:hashtag />
<span>Explore</span>
</NuxtLink>
2022-11-17 07:35:42 +00:00
<NuxtLink flex gap2 items-center to="/public/local" active-class="text-primary">
2022-11-15 17:14:10 +00:00
<div i-ri:group-2-line />
<span>Local</span>
</NuxtLink>
2022-11-17 07:35:42 +00:00
<NuxtLink flex gap2 items-center to="/public" active-class="text-primary">
2022-11-15 17:14:10 +00:00
<div i-ri:earth-line />
<span>Federated</span>
</NuxtLink>
2022-11-17 21:32:03 +00:00
<template v-if="isLogin">
2022-11-18 09:37:22 +00:00
<NuxtLink flex gap2 items-center to="/conversations" active-class="text-primary">
2022-11-17 21:32:03 +00:00
<div i-ri:at-line />
2022-11-18 09:37:22 +00:00
<span>Conversations</span>
2022-11-17 21:32:03 +00:00
</NuxtLink>
<NuxtLink flex gap2 items-center to="/favourites" active-class="text-primary">
<div i-ri:heart-3-line />
<span>Favorites</span>
</NuxtLink>
<NuxtLink flex gap2 items-center to="/bookmarks" active-class="text-primary">
<div i-ri:bookmark-line />
<span>Bookmarks</span>
</NuxtLink>
</template>
2022-11-15 17:14:10 +00:00
</div>
</template>