0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-30 07:03:05 +00:00
VueTube/NUXT/components/bottomNavigation.vue

51 lines
1.2 KiB
Vue
Raw Normal View History

2022-03-02 13:14:52 +00:00
<template>
2022-03-02 18:57:11 +00:00
<v-bottom-navigation v-model="tabSelection" shift class="bottomNav py-4 accent2">
2022-03-16 00:13:26 +00:00
<v-btn v-for="(item, i) in tabs" :key="i" class="navButton" :to="item.link" plain v-ripple="false">
2022-03-02 13:14:52 +00:00
<span v-text="item.name" />
2022-03-07 19:13:59 +00:00
<v-icon v-text="item.icon" :color="tabSelection == i ? 'primary' : 'grey'" :class="tabSelection == i ? 'tab primaryAlt' : ''" />
2022-03-02 13:14:52 +00:00
</v-btn>
</v-bottom-navigation>
</template>
<script>
export default {
data() {
return {
tabSelection: 0,
tabs: [
2022-03-16 00:31:03 +00:00
{ name: "Home", icon: "mdi-home", link: "/home" },
2022-03-02 13:14:52 +00:00
//{ name: "Shorts", icon: "mdi-lightning-bolt", link: "/shorts" },
//{ name: "Upload", icon: "mdi-plus", link: "/upload" },
2022-03-02 18:59:31 +00:00
{ name: "Subscriptions", icon: "mdi-youtube-subscription", link: "/subscriptions" },
2022-03-02 13:14:52 +00:00
{ name: "Library", icon: "mdi-view-list", link: "/library" },
],
}
}
}
</script>
<style scoped>
.bottomNav {
box-shadow: none !important;
height: 4rem !important;
2022-03-07 18:38:54 +00:00
position: fixed;
2022-03-02 13:14:52 +00:00
bottom: 0;
padding: 0 !important;
z-index: 99999;
2022-03-02 13:14:52 +00:00
}
.navButton {
width: 25vw !important;
font-size: .66rem !important;
2022-03-07 14:36:23 +00:00
/*border-radius: 2rem !important;*/
2022-03-02 13:14:52 +00:00
}
2022-03-07 13:52:38 +00:00
.tab {
padding: 0.1em 0.5em 0.1em 0.5em;
border-radius: 1em;
}
2022-03-02 13:14:52 +00:00
</style>