api-client/components/app/Sidenav.vue

47 lines
1.2 KiB
Vue
Raw Normal View History

2020-03-04 01:17:02 +00:00
<template>
2021-07-01 16:39:11 +00:00
<aside>
<nav class="flex flex-col flex-nowrap">
<nuxt-link
v-for="(navigation, index) in primaryNavigation"
:key="`navigation-${index}`"
:to="localePath(navigation.target)"
class="
p-4
flex-col flex-1
hover:bg-primaryDark hover:text-secondaryDark
2021-07-01 16:39:11 +00:00
items-center
justify-center
transition
2021-07-01 16:39:11 +00:00
"
>
<i class="material-icons opacity-75">{{ navigation.icon }}</i>
<span class="mt-2 text-xs font-semibold">{{ navigation.title }}</span>
2021-07-01 16:39:11 +00:00
</nuxt-link>
</nav>
</aside>
2020-03-04 01:17:02 +00:00
</template>
2021-05-18 06:26:59 +00:00
<script>
export default {
data() {
return {
2021-07-01 16:39:11 +00:00
primaryNavigation: [
{ target: "index", icon: "home", title: "Home" },
2021-07-02 16:30:08 +00:00
{ target: "api", icon: "apps", title: "APIs" },
2021-07-01 16:39:11 +00:00
{ target: "realtime", icon: "language", title: "Realtime" },
{ target: "graphql", icon: "code", title: "GraphQL" },
{ target: "doc", icon: "book", title: "Docs" },
{ target: "profile", icon: "person", title: "Profile" },
{ target: "settings", icon: "settings", title: "Settings" },
],
}
},
2021-05-18 06:26:59 +00:00
}
</script>
2020-06-19 17:37:40 +00:00
<style scoped lang="scss">
.active {
@apply text-accent;
2020-06-19 17:37:40 +00:00
}
</style>