mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
feat(fullscreen): track name on top, large & bold; artist name below, small
Swap DOM order and styles in the info cluster: - fs-track-title: clamp(28px,4.5vw,68px) / weight 900 / var(--accent) — primary - fs-artist-name: clamp(13px,1.5vw,22px) / weight 400 / 55% opacity — secondary - fs-cluster gap: 12px → 8px (denser hierarchy) - fs-meta: margin-top: 4px for breathing room after artist name Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -392,12 +392,12 @@ export default function FullscreenPlayer({ onClose }: FullscreenPlayerProps) {
|
|||||||
<FsArt fetchUrl={artUrl} cacheKey={artKey} />
|
<FsArt fetchUrl={artUrl} cacheKey={artKey} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Artist — massive statement */}
|
{/* Track title — massive statement */}
|
||||||
<p className="fs-artist-name">{currentTrack?.artist ?? '—'}</p>
|
|
||||||
|
|
||||||
{/* Track title — accent, light weight */}
|
|
||||||
<p className="fs-track-title">{currentTrack?.title ?? '—'}</p>
|
<p className="fs-track-title">{currentTrack?.title ?? '—'}</p>
|
||||||
|
|
||||||
|
{/* Artist — secondary, below track */}
|
||||||
|
<p className="fs-artist-name">{currentTrack?.artist ?? '—'}</p>
|
||||||
|
|
||||||
{/* Metadata row */}
|
{/* Metadata row */}
|
||||||
{metaParts.length > 0 && (
|
{metaParts.length > 0 && (
|
||||||
<div className="fs-meta">
|
<div className="fs-meta">
|
||||||
|
|||||||
+12
-12
@@ -3028,7 +3028,7 @@
|
|||||||
z-index: 4;
|
z-index: 4;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 12px;
|
gap: 8px;
|
||||||
max-width: 85vw;
|
max-width: 85vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3066,30 +3066,29 @@
|
|||||||
color: rgba(255, 255, 255, 0.3);
|
color: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Artist name — massive, font-black, uppercase, wraps gracefully */
|
/* Track title — massive, font-black, primary — now on top */
|
||||||
.fs-artist-name {
|
.fs-track-title {
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
font-size: clamp(28px, 4.5vw, 68px);
|
font-size: clamp(28px, 4.5vw, 68px);
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
color: #ffffff;
|
color: var(--accent);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1.05;
|
line-height: 1.05;
|
||||||
text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
|
text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow, var(--accent));
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Track title — large, light, accent color, wraps gracefully */
|
/* Artist name — secondary, below track title */
|
||||||
.fs-track-title {
|
.fs-artist-name {
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
font-size: clamp(18px, 2.6vw, 40px);
|
font-size: clamp(13px, 1.5vw, 22px);
|
||||||
font-weight: 300;
|
font-weight: 400;
|
||||||
color: var(--accent);
|
color: rgba(255, 255, 255, 0.55);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1.2;
|
line-height: 1.3;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
@@ -3103,6 +3102,7 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: clamp(11px, 1vw, 13px);
|
font-size: clamp(11px, 1vw, 13px);
|
||||||
color: rgba(255, 255, 255, 0.5);
|
color: rgba(255, 255, 255, 0.5);
|
||||||
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-meta-dot {
|
.fs-meta-dot {
|
||||||
|
|||||||
Reference in New Issue
Block a user