diff --git a/src/assets/scss/_variables.scss b/src/assets/scss/_variables.scss
index eb38065..49df347 100644
--- a/src/assets/scss/_variables.scss
+++ b/src/assets/scss/_variables.scss
@@ -15,7 +15,7 @@ $larger: 2rem;
$banner-height: 18rem;
$song-item-height: 4rem;
-$content-padding-bottom: 4rem;
+$content-padding-bottom: 2rem;
// apple human design guideline colors
$black: #181a1c;
diff --git a/src/components/AlbumView/ArtistAlbums.vue b/src/components/AlbumView/ArtistAlbums.vue
index f431039..cb65cff 100644
--- a/src/components/AlbumView/ArtistAlbums.vue
+++ b/src/components/AlbumView/ArtistAlbums.vue
@@ -1,11 +1,11 @@
- More from {{ artist.artist }}
+ {{ title }}
SEE ALL
@@ -13,26 +13,25 @@
diff --git a/src/components/ArtistView/Header.vue b/src/components/ArtistView/Header.vue
index 01e6790..2739b2a 100644
--- a/src/components/ArtistView/Header.vue
+++ b/src/components/ArtistView/Header.vue
@@ -1,9 +1,119 @@
-
@@ -21,29 +33,54 @@
import { isMedium, isSmall } from "@/stores/content-width";
import Header from "@/components/ArtistView/Header.vue";
+import TopTracks from "@/components/ArtistView/TopTracks.vue";
+// import Albums from "@/components/ArtistView/Albums.vue";
+import useArtistPageStore from "@/stores/pages/artist";
+import ArtistAlbums from "@/components/AlbumView/ArtistAlbums.vue";
+
import { computed } from "vue";
+import { onBeforeRouteUpdate } from "vue-router";
+
+const artistStore = useArtistPageStore();
interface ScrollerItem {
id: string | number;
- component: typeof Header;
- // props: Record;
- size: number;
+ component: any;
+ props?: Record;
+ // size: number;
}
const header: ScrollerItem = {
id: "artist-header",
component: Header,
- size: 19 * 16,
+ // size: 16 * 19,
+};
+
+const top_tracks: ScrollerItem = {
+ id: "artist-top-tracks",
+ component: TopTracks,
+ // size: 16 * 25,
+};
+
+const artistAlbums: ScrollerItem = {
+ id: "artist-albums",
+ component: ArtistAlbums,
+ // size: 16 * 16,
+ props: { title: "Albums", albums: artistStore.albums },
};
const scrollerItems = computed(() => {
- return [header];
+ return [header, top_tracks, artistAlbums];
+});
+
+onBeforeRouteUpdate((to, from, next) => {
+ artistStore.getData(to.params.hash as string);
});