mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
implement favoriting artists
This commit is contained in:
committed by
Mungai Njoroge
parent
f7a054d569
commit
a0cf95024c
@@ -1,14 +1,26 @@
|
||||
<template>
|
||||
<button class="heart-button circular"><HeartSvg /></button>
|
||||
<button class="heart-button circular" @click="emit('handleFav')">
|
||||
<HeartFillSvg v-if="state" />
|
||||
<HeartSvg v-else />
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import HeartSvg from "@/assets/icons/heart.svg";
|
||||
import HeartFillSvg from "@/assets/icons/heart.fill.svg";
|
||||
|
||||
defineProps<{
|
||||
state: boolean | undefined;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: "handleFav"): void;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.heart-button {
|
||||
$bg: rgb(247, 149, 149);
|
||||
$bg: rgb(255, 184, 184);
|
||||
background: $bg;
|
||||
align-items: center;
|
||||
padding: 0 1rem;
|
||||
|
||||
Reference in New Issue
Block a user