Artist links and styling
This commit is contained in:
parent
e5ce0eab76
commit
954cc0edce
@ -13,7 +13,7 @@ pub fn AlbumInfo(albumdata: AlbumData) -> impl IntoView {
|
|||||||
{
|
{
|
||||||
albumdata.artists.iter().map(|artist| {
|
albumdata.artists.iter().map(|artist| {
|
||||||
view! {
|
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<_>>()
|
}).collect::<Vec<_>>()
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
@import 'theme.scss';
|
@import 'theme.scss';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.album-page-container {
|
.album-page-container {
|
||||||
width: 90vw;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user