mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
minor refactors
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
<template>
|
||||
<div class="r-home">
|
||||
<NowPlaying />
|
||||
<Recommendations />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.r-home {
|
||||
height: 100%;
|
||||
width: 31rem;
|
||||
height: calc(100% - 1rem);
|
||||
background-color: $card-dark;
|
||||
padding: $smaller $small;
|
||||
padding: 0 $small $small 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script setup>
|
||||
import NowPlaying from '../NowPlaying.vue';
|
||||
import Recommendations from '../Recommendation.vue';
|
||||
</script>
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="r-sidebar">
|
||||
<div class="grid">
|
||||
<div class="r-content border">
|
||||
<div class="r-content">
|
||||
<div class="r-dash" v-show="current_tab === tabs.home">
|
||||
<DashBoard />
|
||||
</div>
|
||||
@@ -57,7 +57,7 @@ function changeTab(tab) {
|
||||
|
||||
<style lang="scss">
|
||||
.r-sidebar {
|
||||
width: 34em;
|
||||
width: 32em;
|
||||
|
||||
@include phone-only {
|
||||
display: none;
|
||||
@@ -74,7 +74,8 @@ function changeTab(tab) {
|
||||
|
||||
.r-content {
|
||||
grid-area: content;
|
||||
width: 31rem;
|
||||
width: 29rem;
|
||||
|
||||
|
||||
@include tablet-landscape {
|
||||
display: none;
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
<template>
|
||||
<div class="up-next">
|
||||
<p class="heading">COMING UP NEXT</p>
|
||||
<div class="r-grid">
|
||||
<div class="main-item h-1 border" @click="playNext">
|
||||
<div
|
||||
class="album-art image"
|
||||
:style="{
|
||||
backgroundImage: `url("${next.image}")`,
|
||||
}"
|
||||
></div>
|
||||
<div class="tags">
|
||||
<p class="title ellip">{{ next.title }}</p>
|
||||
<hr />
|
||||
<p class="artist ellip">
|
||||
<span v-for="artist in putCommas(next.artists)" :key="artist">{{
|
||||
artist
|
||||
}}</span>
|
||||
</p>
|
||||
<div class="main-item border" >
|
||||
<p class="heading">COMING UP NEXT</p>
|
||||
<div class="itemx" @click="playNext">
|
||||
<div
|
||||
class="album-art image"
|
||||
:style="{
|
||||
backgroundImage: `url("${next.image}")`,
|
||||
}"
|
||||
></div>
|
||||
<div class="tags">
|
||||
<p class="title ellip">{{ next.title }}</p>
|
||||
<hr />
|
||||
<p class="artist ellip">
|
||||
<span v-for="artist in putCommas(next.artists)" :key="artist">{{
|
||||
artist
|
||||
}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="scrollable-r border rounded">
|
||||
@@ -29,8 +31,7 @@
|
||||
<script>
|
||||
import perks from "@/composables/perks.js";
|
||||
import audio from "@/composables/playAudio.js";
|
||||
import { ref, toRefs } from "@vue/reactivity";
|
||||
import { watch } from "@vue/runtime-core";
|
||||
import { ref } from "@vue/reactivity";
|
||||
import TrackItem from "../shared/TrackItem.vue";
|
||||
|
||||
export default {
|
||||
@@ -41,6 +42,7 @@ export default {
|
||||
const { playNext } = audio;
|
||||
|
||||
const putCommas = perks.putCommas;
|
||||
|
||||
return {
|
||||
playNext,
|
||||
putCommas,
|
||||
@@ -55,7 +57,7 @@ export default {
|
||||
<style lang="scss">
|
||||
.up-next {
|
||||
background-color: $card-dark;
|
||||
padding: $small;
|
||||
padding: $small $small $small 0;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
|
||||
@@ -65,13 +67,22 @@ export default {
|
||||
}
|
||||
|
||||
.main-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
.itemx {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem;
|
||||
cursor: pointer;
|
||||
border-radius: 0.5rem;
|
||||
|
||||
&:hover {
|
||||
background-color: $blue;
|
||||
}
|
||||
}
|
||||
|
||||
.album-art {
|
||||
width: 4.5rem;
|
||||
height: 4.5rem;
|
||||
@@ -95,15 +106,11 @@ export default {
|
||||
font-size: small;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $blue;
|
||||
}
|
||||
}
|
||||
|
||||
.r-grid {
|
||||
position: relative;
|
||||
height: calc(100% - 2rem);
|
||||
height: calc(100% - 2.5rem);
|
||||
display: grid;
|
||||
grid-template-rows: min-content;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user