add queue page

This commit is contained in:
geoffrey45
2022-08-28 15:37:46 +03:00
parent 2cb30e294f
commit ca211b6dcf
6 changed files with 56 additions and 18 deletions
+28 -12
View File
@@ -5,8 +5,18 @@
:key="menu.name"
:to="{ name: menu.route_name, params: menu?.params }"
>
<div v-if="menu.separator" :class="{ separator: menu.separator }"></div>
<div class="nav-button" id="home-button" v-else>
<div
v-if="menu.separator"
:class="{
separator: menu.separator,
}"
></div>
<div
class="nav-button"
id="home-button"
:class="{ active: menu.route_name === $route.name }"
v-else
>
<div class="in">
<component :is="menu.icon"></component>
<span>{{ menu.name }}</span>
@@ -36,6 +46,15 @@ const menus = [
params: { path: "$home" },
icon: FolderSvg,
},
{
separator: true,
},
{
name: "queue",
route_name: Routes.queue,
icon: PlaylistSvg,
},
{
name: "search",
route_name: Routes.search,
@@ -54,29 +73,25 @@ const menus = [
<style lang="scss">
.side-nav-container {
color: #fff;
text-transform: capitalize;
margin-top: 1rem;
font-size: 0.85rem;
.active {
background-color: $gray4;
}
.nav-button {
border-radius: $small;
display: flex;
align-items: flex-start;
justify-content: flex-start;
padding: 0.6rem 0;
padding: $smaller 0;
&:hover {
background-color: $gray3;
}
.nav-icon {
height: 2rem;
width: 2rem;
margin: 0 $small 0 $small;
border-radius: $small;
background-color: rgb(26, 24, 24);
}
.in {
display: flex;
align-items: center;
@@ -90,6 +105,7 @@ const menus = [
svg {
margin: 0 $small 0 $small;
border-radius: $small;
transform: scale(0.9);
}
svg > path {
-2
View File
@@ -18,5 +18,3 @@ import useSettingsStore from "@/stores/settings";
const settings = useSettingsStore();
</script>
<style lang="scss"></style>