mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
make albums on artist page reactive
+ show artist name on artist album component on album page + attach artist page link to artist card + use small artist page on album header + use album color on genre banner on album page
This commit is contained in:
committed by
Mungai Njoroge
parent
075765088f
commit
e54fea2d4d
@@ -1,17 +1,35 @@
|
||||
<template>
|
||||
<div class="artist-card" :class="{ _is_on_sidebar: alt }">
|
||||
<img class="artist-image circular" :src="imguri + artist.image" loading="lazy" />
|
||||
<div class="artist-name t-center">
|
||||
{{ artist.name }}
|
||||
<RouterLink
|
||||
:to="{
|
||||
name: Routes.artist,
|
||||
params: {
|
||||
hash: artist.artisthash,
|
||||
},
|
||||
}"
|
||||
>
|
||||
<div
|
||||
class="artist-card"
|
||||
:class="{ _is_on_sidebar: alt }"
|
||||
:style="{ backgroundColor: `${artist.colors[0]}` }"
|
||||
>
|
||||
<img
|
||||
class="artist-image circular"
|
||||
:src="imguri + artist.image"
|
||||
loading="lazy"
|
||||
/>
|
||||
<div class="artist-name t-center">
|
||||
{{ artist.name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</RouterLink>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Routes } from "@/composables/enums";
|
||||
import { Artist } from "@/interfaces";
|
||||
import { paths } from "../../config";
|
||||
|
||||
const imguri = paths.images.artist;
|
||||
const imguri = paths.images.artist.large;
|
||||
|
||||
defineProps<{
|
||||
artist: Artist;
|
||||
|
||||
@@ -40,5 +40,6 @@ defineProps<{
|
||||
transition: all 0.5s ease-in-out;
|
||||
color: $white;
|
||||
background: $darkestblue !important;
|
||||
border-radius: 2rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user