Artist links and styling

This commit is contained in:
Aidan Westphal 2024-11-22 22:13:43 +00:00
parent e5ce0eab76
commit 954cc0edce
2 changed files with 15 additions and 3 deletions

View File

@ -13,7 +13,7 @@ pub fn AlbumInfo(albumdata: AlbumData) -> impl IntoView {
{
albumdata.artists.iter().map(|artist| {
view! {
<p class="album-artist">{artist.name.clone()}</p>
<a class="album-artist" href={format!("/artist/{}", artist.id.unwrap())}>{artist.name.clone()}</a>
}
}).collect::<Vec<_>>()
}

View File

@ -1,7 +1,5 @@
@import 'theme.scss';
.album-page-container {
width: 90vw;
@ -65,4 +63,18 @@
}
}
a {
color: $text-controls-color;
}
a:visited {
color: $text-controls-color;
}
a:hover {
color: $controls-hover-color;
}
a:active {
color: $controls-click-color;
}
}