diff --git a/src/pages/artist.rs b/src/pages/artist.rs index 249f268..b7ff17a 100644 --- a/src/pages/artist.rs +++ b/src/pages/artist.rs @@ -69,3 +69,21 @@ fn ArtistProfile(#[prop(into)] id: MaybeSignal) -> impl IntoView { } } + +#[component] +fn ArtistDetails(artist: Artist) -> impl IntoView { + let artist_id = artist.id.unwrap(); + let profile_image_path = format!("/assets/images/artist/{}.webp", artist_id); + + view! { +
+ + + +

{artist.name}

+
+
+

{artist.bio.unwrap_or_else(|| "No bio available.".to_string())}

+
+ } +}