fix: artist hero — large square pfp on left, brighter background

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-06-07 21:39:45 +02:00
1 parent 64aec78a43
commit 0ac7fc5383
2 files changed
+8 -12

No files matched your search

-2
View File
@@ -77,7 +77,6 @@ export async function loadArtistDetail(artist) {
const pfpInitial = document.getElementById('artist-hero-pfp-initial'); const pfpInitial = document.getElementById('artist-hero-pfp-initial');
if(pfpInitial) pfpInitial.textContent = artist.name?.[0]?.toUpperCase() || '?'; if(pfpInitial) pfpInitial.textContent = artist.name?.[0]?.toUpperCase() || '?';
const overlay = hero.querySelector('.artist-hero-overlay'); const overlay = hero.querySelector('.artist-hero-overlay');
if(overlay) overlay.style.background = '';
[bioEl, simEl, tsEl, albEl].forEach(el => { if(el) el.innerHTML = ''; }); [bioEl, simEl, tsEl, albEl].forEach(el => { if(el) el.innerHTML = ''; });
if(albEl) albEl.innerHTML = '<div class="spinner"></div>'; if(albEl) albEl.innerHTML = '<div class="spinner"></div>';
@@ -119,7 +118,6 @@ export async function loadArtistDetail(artist) {
hero.style.background = ''; hero.style.background = '';
const bgEl = document.getElementById('artist-hero-bg'); const bgEl = document.getElementById('artist-hero-bg');
if(bgEl) bgEl.style.backgroundImage = `url('${_bgCover || img}')`; if(bgEl) bgEl.style.backgroundImage = `url('${_bgCover || img}')`;
if(overlay) overlay.style.background = 'linear-gradient(to top,rgba(7,7,15,.92) 0%,rgba(7,7,15,.35) 100%)';
} }
if(img) { if(img) {
const pfpWrap = document.getElementById('artist-hero-pfp-wrap'); const pfpWrap = document.getElementById('artist-hero-pfp-wrap');
+8 -10
View File
@@ -821,19 +821,17 @@ button:focus{outline:none}
.artist-action-bar{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap} .artist-action-bar{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.artist-action-btn{display:flex;align-items:center;gap:6px;padding:9px 18px;border-radius:20px;border:1px solid var(--border2);background:var(--surface);color:var(--text);font-family:var(--font);font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s} .artist-action-btn{display:flex;align-items:center;gap:6px;padding:9px 18px;border-radius:20px;border:1px solid var(--border2);background:var(--surface);color:var(--text);font-family:var(--font);font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.artist-action-btn:hover{background:var(--surface2);border-color:var(--accent);color:var(--accent)} .artist-action-btn:hover{background:var(--surface2);border-color:var(--accent);color:var(--accent)}
.artist-hero{height:220px;border-radius:14px;overflow:hidden;position:relative;margin-bottom:24px;background:linear-gradient(135deg,var(--surface2),var(--surface))} .artist-hero{height:240px;border-radius:14px;overflow:hidden;position:relative;margin-bottom:24px;background:linear-gradient(135deg,var(--surface2),var(--surface))}
.artist-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(26px) brightness(0.22) saturate(0.5);transform:scale(1.1)} .artist-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(22px) brightness(0.42) saturate(0.55);transform:scale(1.1)}
.artist-hero-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;padding:20px 22px;gap:14px} .artist-hero-overlay{position:absolute;inset:0;display:flex;align-items:stretch;gap:0}
.artist-hero-pfp-wrap{width:72px;height:72px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid rgba(255,255,255,.15);background:linear-gradient(135deg,var(--surface2),var(--surface3,var(--surface)));display:flex;align-items:center;justify-content:center;position:relative} .artist-hero-pfp-wrap{aspect-ratio:1/1;height:100%;flex-shrink:0;overflow:hidden;position:relative;background:linear-gradient(135deg,var(--surface2),var(--surface3,var(--surface)))}
.artist-hero-pfp{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;display:block} .artist-hero-pfp{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.artist-hero-pfp-initial{font-size:26px;font-weight:700;color:var(--text2);line-height:1;pointer-events:none} .artist-hero-pfp-initial{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:700;color:var(--text2);line-height:1}
.artist-hero-info{min-width:0;flex:1;padding-bottom:2px} .artist-hero-info{min-width:0;flex:1;display:flex;align-items:flex-end;padding:20px 24px;background:linear-gradient(to left,rgba(7,7,15,.95) 0%,rgba(7,7,15,.1) 100%)}
.artist-hero-name{font-size:26px;font-weight:800;letter-spacing:-0.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .artist-hero-name{font-size:26px;font-weight:800;letter-spacing:-0.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:769px){ @media(min-width:769px){
.artist-hero{height:320px;border-radius:16px} .artist-hero{height:320px;border-radius:16px}
.artist-hero-overlay{padding:32px 36px;gap:22px} .artist-hero-info{padding:28px 36px}
.artist-hero-pfp-wrap{width:108px;height:108px}
.artist-hero-pfp-initial{font-size:42px}
.artist-hero-name{font-size:44px;letter-spacing:-2px} .artist-hero-name{font-size:44px;letter-spacing:-2px}
} }