redesign the album bio component

This commit is contained in:
geoffrey45
2022-07-10 21:51:29 +03:00
parent 4688665156
commit cdab85912f
8 changed files with 63 additions and 30 deletions
+3 -4
View File
@@ -1,10 +1,8 @@
<template>
<div class="bottom-content">
<FeaturedArtists :artists="artists" />
<div v-if="bio">
<div class="separator" id="av-sep"></div>
<AlbumBio :bio="bio" />
</div>
<AlbumBio :bio="bio" :images="{ album: image, artist: artists[0].image }" />
</div>
</template>
@@ -16,6 +14,7 @@ import AlbumBio from "@/components/AlbumView/AlbumBio.vue";
defineProps<{
artists: Artist[];
bio: string | null;
image: string;
}>();
</script>
+10 -2
View File
@@ -7,14 +7,22 @@
<Content :tracks="album.tracks" />
</template>
<template #bottom>
<Bottom :artists="album.artists" :bio="album.bio" />
<Bottom
:artists="album.artists"
:bio="album.bio"
:image="album.info.image"
/>
</template>
</Page>
</template>
<script setup lang="ts">
import useAStore from "@/stores/pages/album";
import { onBeforeRouteUpdate, RouteLocationNormalized, RouteParams } from "vue-router";
import {
onBeforeRouteUpdate,
RouteLocationNormalized,
RouteParams,
} from "vue-router";
import Page from "@/layouts/HeaderContentBottom.vue";
import Bottom from "./Bottom.vue";