better artist banner heights
This commit is contained in:
@@ -253,10 +253,8 @@ pub fn artist_page(props: &Props) -> Html {
|
|||||||
|
|
||||||
html! {
|
html! {
|
||||||
<div>
|
<div>
|
||||||
if let Some(ref banner) = d.artist_banner {
|
<div class={if d.artist_banner.is_some() { "artist-banner-wrap" } else { "" }}
|
||||||
<div class="artist-banner" style={format!("background-image: url('{banner}')")}>
|
style={d.artist_banner.as_ref().map(|b| format!("background-image: url('{b}')")).unwrap_or_default()}>
|
||||||
</div>
|
|
||||||
}
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div class="flex gap-2 items-center">
|
<div class="flex gap-2 items-center">
|
||||||
@@ -329,6 +327,7 @@ pub fn artist_page(props: &Props) -> Html {
|
|||||||
<p class="text-sm text-muted loading">{ "Loading track counts..." }</p>
|
<p class="text-sm text-muted loading">{ "Loading track counts..." }</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
</div> // close artist-banner-wrap
|
||||||
|
|
||||||
if let Some(ref msg) = *message {
|
if let Some(ref msg) = *message {
|
||||||
<div class="card" style="border-color: var(--success);">
|
<div class="card" style="border-color: var(--success);">
|
||||||
|
|||||||
@@ -148,13 +148,27 @@ a:hover { color: var(--accent-hover); }
|
|||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
}
|
}
|
||||||
.artist-links a:hover { color: var(--accent); }
|
.artist-links a:hover { color: var(--accent); }
|
||||||
.artist-banner {
|
.artist-banner-wrap {
|
||||||
width: 100%;
|
background-size: 100% auto;
|
||||||
height: 200px;
|
background-position: top center;
|
||||||
background-size: cover;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
margin-bottom: 1rem;
|
margin: -2rem -2rem 1rem -2rem;
|
||||||
|
padding: 2rem;
|
||||||
|
padding-top: 30%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.artist-banner-wrap::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: linear-gradient(to bottom, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.85) 60%, rgba(15,23,42,0.95) 100%);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.artist-banner-wrap > * {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.artist-photo {
|
.artist-photo {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
|
|||||||
Reference in New Issue
Block a user