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
|
2021-07-04 16:59:37 +00:00
|
|
|
hover:bg-primaryDark hover:text-secondaryDark
|
2021-07-01 16:39:11 +00:00
|
|
|
items-center
|
|
|
|
|
justify-center
|
2021-07-04 16:59:37 +00:00
|
|
|
transition
|
2021-07-01 16:39:11 +00:00
|
|
|
"
|
2021-06-21 10:03:51 +00:00
|
|
|
>
|
2021-07-04 16:59:37 +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 {
|
2021-06-21 10:03:51 +00:00
|
|
|
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-06-21 10:03:51 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-05-18 06:26:59 +00:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2020-06-19 17:37:40 +00:00
|
|
|
<style scoped lang="scss">
|
2021-07-04 16:59:37 +00:00
|
|
|
.active {
|
|
|
|
|
@apply text-accent;
|
2020-06-19 17:37:40 +00:00
|
|
|
}
|
|
|
|
|
</style>
|