page name update

This commit is contained in:
Kenny 2022-02-24 14:55:29 -05:00
parent e13b8d6de7
commit 13c82422db
2 changed files with 27 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<v-app> <v-app>
<v-card class="topNav rounded-0" style="display: flex;" color="accent"> <v-card class="topNav rounded-0" style="display: flex;" color="accent">
<h2>Home</h2> <h2 v-text="page" />
<v-spacer /> <v-spacer />
<v-btn text><v-icon>mdi-magnify</v-icon></v-btn> <v-btn text><v-icon>mdi-magnify</v-icon></v-btn>
<v-btn text><v-icon>mdi-dots-vertical</v-icon></v-btn> <v-btn text><v-icon>mdi-dots-vertical</v-icon></v-btn>
@ -56,6 +56,8 @@
<script> <script>
export default { export default {
data: () => ({ data: () => ({
page: null,
tabSelection: 0, tabSelection: 0,
tabs: [ tabs: [
{ name: "Home", icon: "mdi-home", link: "/" }, { name: "Home", icon: "mdi-home", link: "/" },
@ -65,5 +67,9 @@
{ name: "Library", icon: "mdi-view-list", link: "/library" }, { name: "Library", icon: "mdi-view-list", link: "/library" },
] ]
}), }),
mounted() {
const pageName = this.$route.path.split("/")[1];
this.page = pageName.charAt(0).toUpperCase() + pageName.slice(1);
}
} }
</script> </script>

20
NUXT/pages/settings.vue Normal file
View File

@ -0,0 +1,20 @@
<template>
<div class="mainContainer">
<v-switch
v-model="$vuetify.theme.dark"
label="Dark Theme"
hint="Bravo Six, Going Dark."
inset persistent-hint
/>
</div>
</template>
<style scoped>
.mainContainer {
padding-left: 1em;
}
</style>