From 4256bf6b298ab4915570961efae4a84cbdfceecc Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Sun, 4 Oct 2026 15:45:15 +0200 Subject: [PATCH] =?UTF-8?q?Home:=20oben=20der=20rote=20diora-Schriftzug=20?= =?UTF-8?q?statt=20der=20Begr=C3=BC=C3=9Fung;=20sw=20v88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- static/js/home.js | 10 +++------- static/js/sw.js | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/static/js/home.js b/static/js/home.js index d193fc3..a689d20 100644 --- a/static/js/home.js +++ b/static/js/home.js @@ -194,11 +194,6 @@ '' + body + ''; } - function greeting() { - const h = new Date().getHours(); - return h < 5 ? 'Gute Nacht' : h < 11 ? 'Guten Morgen' : h < 18 ? 'Hallo' : 'Guten Abend'; - } - let lastHtml = ''; let host = null; @@ -209,7 +204,7 @@ host.className = 'home'; tab.appendChild(host); } - let html = '
' + greeting() + '
'; + let html = '
diora
'; for (const part of [booksSection, podcastSection, radioSection, ambientSection]) { try { html += part(); } catch (e) { console.warn('home', e); } } @@ -272,7 +267,8 @@ const style = document.createElement('style'); style.textContent = [ '#tab-home .home { max-width: 760px; margin: 0 auto; padding-bottom: 24px; }', - '#tab-home .home-hello { font-size: 22px; font-weight: 700; margin: 4px 0 18px; letter-spacing: 0.02em; }', + // The wordmark as in the web's navbar: red, bold, the page's monospace. + '#tab-home .home-brand { font-size: 26px; font-weight: 700; color: var(--accent, #e63946); margin: 4px 0 18px; letter-spacing: 0.05em; }', '#tab-home .home-section { margin-bottom: 22px; }', '#tab-home .home-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }', '#tab-home .home-head h2 { margin: 0; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nui-muted, #9a9a9a); }', diff --git a/static/js/sw.js b/static/js/sw.js index 7020212..e347250 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v87'; +const CACHE = 'diora-v88'; const SHELL = [ '/static/css/app.css', '/static/js/app.js',