add "add to favorite" buttons to artist and album page headers

+ fix album page play buttton
This commit is contained in:
geoffrey45
2022-12-27 18:55:35 +03:00
committed by Mungai Njoroge
parent 4476a8ebe0
commit f7a054d569
9 changed files with 63 additions and 23 deletions
+21
View File
@@ -0,0 +1,21 @@
<template>
<button class="heart-button circular"><HeartSvg /></button>
</template>
<script setup lang="ts">
import HeartSvg from "@/assets/icons/heart.svg";
</script>
<style lang="scss">
.heart-button {
$bg: rgb(247, 149, 149);
background: $bg;
align-items: center;
padding: 0 1rem;
gap: $smaller;
&:hover {
background: $bg;
}
}
</style>
+1 -4
View File
@@ -169,7 +169,6 @@ async function addToFav(trackhash: string) {
background-color: $gray5;
.index {
.text {
transition-delay: 500ms;
@@ -202,7 +201,6 @@ async function addToFav(trackhash: string) {
}
.index {
opacity: 0.5;
font-size: 0.8rem;
width: 100%;
position: relative;
@@ -211,7 +209,7 @@ async function addToFav(trackhash: string) {
justify-content: center;
.text {
opacity: 1;
opacity: 0.5;
display: block;
margin: auto 0;
transition: all 0.25s;
@@ -226,7 +224,6 @@ async function addToFav(trackhash: string) {
align-content: center;
transition: all 0.2s;
transform: translateX(-1.5rem);
color: red;
}
}