mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-08 04:25:07 +00:00
43 lines
1,021 B
Vue
43 lines
1,021 B
Vue
<template>
|
|
|
|
<v-bottom-navigation v-model="tabSelection" shift class="bottomNav py-4">
|
|
<v-btn v-for="(item, i) in tabs" :key="i" rounded class="navButton" :to="item.link">
|
|
|
|
<span v-text="item.name" />
|
|
<v-icon v-text="item.icon" :color="tabSelection == i ? 'primary' : 'grey'" />
|
|
|
|
</v-btn>
|
|
</v-bottom-navigation>
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tabSelection: 0,
|
|
tabs: [
|
|
{ name: "Home", icon: "mdi-home", link: "/" },
|
|
//{ name: "Shorts", icon: "mdi-lightning-bolt", link: "/shorts" },
|
|
//{ name: "Upload", icon: "mdi-plus", link: "/upload" },
|
|
{ name: "Subscriptions", icon: "mdi-youtube-subscription", link: "/subs" },
|
|
{ name: "Library", icon: "mdi-view-list", link: "/library" },
|
|
],
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.bottomNav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
padding: 0 !important;
|
|
}
|
|
.navButton {
|
|
width: 25vw !important;
|
|
font-size: .66rem !important;
|
|
border-radius: 2rem !important;
|
|
}
|
|
</style>
|