feat: nav side
This commit is contained in:
parent
49a20c01b7
commit
94bde9487a
6 changed files with 72 additions and 12 deletions
13
components/nav/NavFooter.vue
Normal file
13
components/nav/NavFooter.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
||||
// @ts-ignore build time
|
||||
const buildTime = __BUILD_TIME__
|
||||
const buildTimeAgo = useTimeAgo(buildTime)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div p4 text-sm op25>
|
||||
A Mastodon client powered by Nuxt<br>
|
||||
Built <span :title="buildTime">{{ buildTimeAgo }}</span> · <a href="https://github.com/antfu/nuxtodon" target="_blank">GitHub</a>
|
||||
</div>
|
||||
</template>
|
40
components/nav/NavSide.vue
Normal file
40
components/nav/NavSide.vue
Normal file
|
@ -0,0 +1,40 @@
|
|||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div px6 py2 flex="~ col gap6" text-lg>
|
||||
<NuxtLink flex gap2 items-center to="/home">
|
||||
<div i-ri:home-5-line />
|
||||
<span>Home</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/notifications">
|
||||
<div i-ri:notification-4-line />
|
||||
<span>Notifications</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center>
|
||||
<div i-ri:hashtag />
|
||||
<span>Explore</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/public/local">
|
||||
<div i-ri:group-2-line />
|
||||
<span>Local</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/public">
|
||||
<div i-ri:earth-line />
|
||||
<span>Federated</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center>
|
||||
<div i-ri:at-line />
|
||||
<span>Direct Messages</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center>
|
||||
<div i-ri:heart-3-line />
|
||||
<span>Favorites</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center>
|
||||
<div i-ri:home-5-line />
|
||||
<span>Bookmarks</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue