elk/components/nav/NavSide.vue

66 lines
2.6 KiB
Vue
Raw Normal View History

2022-11-15 17:14:10 +00:00
<script setup lang="ts">
</script>
<template>
2022-11-23 14:50:03 +00:00
<div px3 py4 flex="~ col gap2" text-lg>
2022-11-22 23:08:36 +00:00
<template v-if="currentUser">
2022-11-24 14:06:14 +00: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-17 21:32:03 +00:00
</NuxtLink>
2022-11-24 14:06:14 +00: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-17 21:32:03 +00:00
</NuxtLink>
</template>
2022-11-24 14:06:14 +00: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-15 17:14:10 +00:00
</NuxtLink>
2022-11-24 14:06:14 +00: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-15 17:14:10 +00:00
</NuxtLink>
2022-11-24 14:06:14 +00: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-15 17:14:10 +00:00
</NuxtLink>
2022-11-22 23:08:36 +00:00
<template v-if="currentUser">
2022-11-24 14:06:14 +00: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-17 21:32:03 +00:00
</NuxtLink>
2022-11-24 14:06:14 +00: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-17 21:32:03 +00:00
</NuxtLink>
2022-11-24 14:06:14 +00: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-17 21:32:03 +00:00
</NuxtLink>
2022-11-25 17:50:03 +00:00
<NuxtLink :to="getAccountPath(currentUser.account)" active-class="text-primary" group>
2022-11-24 14:06:14 +00:00
<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 03:06:56 +00:00
</NuxtLink>
2022-11-17 21:32:03 +00:00
</template>
2022-11-15 17:14:10 +00:00
</div>
</template>