style(artist): restructure header per design specs
- Move action buttons below Similar Artists section - Remove images from Similar Artists (text-only with bullet separators) - Remove solid background from biography - Add thin font weight (300) to bio area - Update Similar Artists to uppercase title with letter-spacing
This commit is contained in:
1 parent
008ef6e443
commit
65716c9e07
1 file changed
+63
-92
@@ -771,7 +771,7 @@
|
|||||||
|
|
||||||
<!-- Artist Header -->
|
<!-- Artist Header -->
|
||||||
<div class="artist-header section-anchor" bind:this={aboutSection}>
|
<div class="artist-header section-anchor" bind:this={aboutSection}>
|
||||||
<!-- Artist Image and Actions -->
|
<!-- Artist Image -->
|
||||||
<div class="artist-image-column">
|
<div class="artist-image-column">
|
||||||
<div class="artist-image-container">
|
<div class="artist-image-container">
|
||||||
{#if imageError || !artist.image}
|
{#if imageError || !artist.image}
|
||||||
@@ -789,35 +789,6 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="artist-actions">
|
|
||||||
<button
|
|
||||||
class="favorite-btn"
|
|
||||||
class:is-favorite={isFavorite}
|
|
||||||
onclick={toggleFavorite}
|
|
||||||
disabled={isFavoriteLoading}
|
|
||||||
title={isFavorite ? 'Remove from favorites' : 'Add to favorites'}
|
|
||||||
>
|
|
||||||
{#if isFavorite}
|
|
||||||
<Heart size={24} fill="var(--accent-primary)" color="var(--accent-primary)" />
|
|
||||||
{:else}
|
|
||||||
<Heart size={24} />
|
|
||||||
{/if}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="radio-btn"
|
|
||||||
class:loading={isRadioLoading}
|
|
||||||
class:glow={radioJustCreated}
|
|
||||||
onclick={createArtistRadio}
|
|
||||||
disabled={isRadioLoading}
|
|
||||||
title="Start Artist Radio"
|
|
||||||
>
|
|
||||||
{#if isRadioLoading}
|
|
||||||
<span class="loading-message">{radioLoadingMessage}</span>
|
|
||||||
{:else}
|
|
||||||
<Radio size={24} />
|
|
||||||
{/if}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Artist Info -->
|
<!-- Artist Info -->
|
||||||
@@ -851,34 +822,54 @@
|
|||||||
<div class="similar-loading">Loading similar artists...</div>
|
<div class="similar-loading">Loading similar artists...</div>
|
||||||
{:else if similarArtists.length > 0}
|
{:else if similarArtists.length > 0}
|
||||||
<div class="similar-artists">
|
<div class="similar-artists">
|
||||||
<div class="similar-title">Similar Artists</div>
|
<div class="similar-title">SIMILAR ARTISTS</div>
|
||||||
<div class="similar-list">
|
<div class="similar-list">
|
||||||
{#each similarArtists as similar}
|
{#each similarArtists as similar, index}
|
||||||
|
{#if index > 0}
|
||||||
|
<span class="similar-separator">•</span>
|
||||||
|
{/if}
|
||||||
<button
|
<button
|
||||||
class="similar-artist"
|
class="similar-artist"
|
||||||
onclick={() => onTrackGoToArtist?.(similar.id)}
|
onclick={() => onTrackGoToArtist?.(similar.id)}
|
||||||
title={similar.name}
|
title={similar.name}
|
||||||
>
|
>
|
||||||
{#if similarArtistImageErrors.has(similar.id) || !getSimilarArtistImage(similar)}
|
{similar.name}
|
||||||
<span class="similar-avatar placeholder">
|
|
||||||
<User size={12} />
|
|
||||||
</span>
|
|
||||||
{:else}
|
|
||||||
<img
|
|
||||||
src={getSimilarArtistImage(similar)}
|
|
||||||
alt={similar.name}
|
|
||||||
class="similar-avatar"
|
|
||||||
loading="lazy"
|
|
||||||
decoding="async"
|
|
||||||
onerror={() => handleSimilarArtistImageError(similar.id)}
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
<span class="similar-name">{similar.name}</span>
|
|
||||||
</button>
|
</button>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<!-- Action Buttons -->
|
||||||
|
<div class="artist-actions">
|
||||||
|
<button
|
||||||
|
class="favorite-btn"
|
||||||
|
class:is-favorite={isFavorite}
|
||||||
|
onclick={toggleFavorite}
|
||||||
|
disabled={isFavoriteLoading}
|
||||||
|
title={isFavorite ? 'Remove from favorites' : 'Add to favorites'}
|
||||||
|
>
|
||||||
|
{#if isFavorite}
|
||||||
|
<Heart size={24} fill="var(--accent-primary)" color="var(--accent-primary)" />
|
||||||
|
{:else}
|
||||||
|
<Heart size={24} />
|
||||||
|
{/if}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="radio-btn"
|
||||||
|
class:loading={isRadioLoading}
|
||||||
|
class:glow={radioJustCreated}
|
||||||
|
onclick={createArtistRadio}
|
||||||
|
disabled={isRadioLoading}
|
||||||
|
title="Start Artist Radio"
|
||||||
|
>
|
||||||
|
{#if isRadioLoading}
|
||||||
|
<span class="loading-message">{radioLoadingMessage}</span>
|
||||||
|
{:else}
|
||||||
|
<Radio size={24} />
|
||||||
|
{/if}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1496,7 +1487,7 @@
|
|||||||
.artist-actions {
|
.artist-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
justify-content: center;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.artist-info {
|
.artist-info {
|
||||||
@@ -1609,17 +1600,15 @@
|
|||||||
|
|
||||||
.biography {
|
.biography {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 16px;
|
margin-bottom: 16px;
|
||||||
background: var(--bg-secondary);
|
font-weight: 300;
|
||||||
border-radius: 12px;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bio-text {
|
.bio-text {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-bottom: 8px;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bio-text :global(p) {
|
.bio-text :global(p) {
|
||||||
@@ -1635,7 +1624,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
color: var(--accent-primary);
|
color: var(--accent-primary);
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
@@ -1651,9 +1640,8 @@
|
|||||||
.bio-source {
|
.bio-source {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
margin-top: 12px;
|
margin-top: 8px;
|
||||||
padding-top: 12px;
|
font-weight: 300;
|
||||||
border-top: 1px solid var(--bg-tertiary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jump-nav {
|
.jump-nav {
|
||||||
@@ -1893,8 +1881,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.similar-title {
|
.similar-title {
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1907,49 +1898,29 @@
|
|||||||
.similar-list {
|
.similar-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 10px;
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.similar-separator {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 10px;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.similar-artist {
|
.similar-artist {
|
||||||
display: inline-flex;
|
font-size: 14px;
|
||||||
align-items: center;
|
font-weight: 500;
|
||||||
gap: 8px;
|
color: var(--text-primary);
|
||||||
font-size: 12px;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 4px 8px;
|
padding: 2px 4px;
|
||||||
border-radius: 16px;
|
transition: color 150ms ease;
|
||||||
transition: background-color 150ms ease, color 150ms ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.similar-artist:hover {
|
.similar-artist:hover {
|
||||||
background-color: var(--bg-tertiary);
|
color: var(--accent-primary);
|
||||||
color: var(--text-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.similar-avatar {
|
|
||||||
width: 25px;
|
|
||||||
height: 25px;
|
|
||||||
border-radius: 50%;
|
|
||||||
object-fit: cover;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.similar-avatar.placeholder {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background-color: var(--bg-tertiary);
|
|
||||||
color: var(--text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.similar-name {
|
|
||||||
max-width: 140px;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
|
|||||||
Reference in new issue
Block a user