From d7fc548abfab39c97b8dd365fb676d5a9ad4fbc9 Mon Sep 17 00:00:00 2001 From: Michi Date: Thu, 26 Nov 2026 20:39:04 +0100 Subject: [PATCH] panel-kopf: dezenter banner aus projektfarbe + geblurrtem thumbnail Co-Authored-By: Claude Opus 4.8 --- public/app.js | 2 ++ public/index.html | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index 1f3323f..5a19fa5 100644 --- a/public/app.js +++ b/public/app.js @@ -3280,6 +3280,8 @@ function openEditor(p) { editing = p editingTasks = (p.tasks ?? []).map((t) => ({ ...t })) document.getElementById('pAvatar').innerHTML = avatar(p, 'lg') + document.getElementById('panel').style.setProperty('--pc', nameColor(p.name)) + document.getElementById('pBanner').innerHTML = `` document.getElementById('panelTitle').textContent = p.name document.getElementById('pFav').innerHTML = favBtn(p) wireFav(document.getElementById('pFav'), p) diff --git a/public/index.html b/public/index.html index 7137ec7..ffc7531 100644 --- a/public/index.html +++ b/public/index.html @@ -250,10 +250,15 @@ #overlay.open { opacity: 1; pointer-events: auto; } #panel { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .22s ease; z-index: 21; display: flex; flex-direction: column; } #panel.open { transform: none; } - .phead { padding: 18px 20px 0; display: flex; gap: 14px; align-items: center; } + .phead { position: relative; overflow: hidden; padding: 20px 20px 2px; display: flex; gap: 14px; align-items: center; } .phead h3 { margin: 0; font-size: 18px; word-break: break-word; } .phead .sub { margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .phead .close { margin-left: auto; align-self: flex-start; } + .phead > *:not(.pbanner) { position: relative; z-index: 1; } + /* soft header banner: project colour wash + optional blurred thumbnail */ + .pbanner { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(135deg, color-mix(in srgb, var(--pc, var(--accent)) 24%, transparent), transparent 62%); } + .pbanner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--surface)); } + .pbanner img { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(30px) saturate(1.15); opacity: .22; } .pquick { display: flex; gap: 6px; padding: 12px 20px 0; flex-wrap: wrap; } #ptabs { margin: 14px 20px 0; } #ptabs button { flex: 1; justify-content: center; } @@ -1146,6 +1151,7 @@