From fa4204112b492a87b2195e360eccc2274fcc9bb0 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 17 Jun 2026 15:34:26 +0200 Subject: [PATCH] =?UTF-8?q?Frontend:=20Zeitangabe=20als=20Milchglas-Overla?= =?UTF-8?q?y=20=C3=BCber=20dem=20Bild?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Zeit („heute 12:27 Uhr") wandert aus card-content nach oben über das Bild/Thumbnail als absolutes Overlay - Milchglas-Effekt: rgba(255,255,255,0.28) + backdrop-filter blur(10px) - Rote Schrift (#dc3545) für gute Lesbarkeit auf hellem Grund - Abgerundete Ecken (10px), dezenter Schatten - Spart Platz in der Karte, sieht edler aus - Text-only-Karten behalten die Zeit inline im card-content --- app.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index a9683bd..43503a4 100644 --- a/app.py +++ b/app.py @@ -1750,8 +1750,17 @@ def public_frontend(): pass text_only_class = " text-only" if not media_first else "" + time_block = "" + if time_html: + time_overlay = f'
{time_html}
' + if media_first: + time_block = time_overlay + else: + time_block = f'
{time_html}
' + elif not media_first: + time_block = f'
{date_str}
' cards += f"""
- """ + media_first + """ + """ + media_first + time_block + """ """ + (f'
📍 {r["halle"]}
' if r["halle"] else '') + """ """ + (f'
🚫 AUSVERKAUFT: {r["spiel_titel"]}
' if r["category"] == "ausverkauft" and r["spiel_titel"] else '') + """
@@ -1759,7 +1768,6 @@ def public_frontend(): """ + type_emoji + """
- """ + (f'
{time_html}
' if time_html else f'
{date_str}
') + """

""" + preview + """

""" @@ -1803,7 +1811,9 @@ def public_frontend(): .story-author { font-weight:600; color:#20228a; font-size:0.78rem; } .story-date { color:#999; font-size:0.7rem; margin-left:auto; } .story-time { font-size:0.7rem; color:#666; font-weight:500; } - .story-time-rel { color:#20228a; font-weight:700; } + .story-time-rel { color:#dc3545; font-weight:700; } + .story-time-overlay { position:absolute; bottom:8px; left:8px; z-index:5; background:rgba(255,255,255,0.28); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); color:#dc3545; padding:0.3rem 0.65rem; border-radius:10px; font-size:0.8rem; font-weight:700; letter-spacing:0.02em; line-height:1.3; box-shadow:0 2px 8px rgba(0,0,0,0.08); } + .story-time-overlay .story-time-rel { color:#dc3545; } .story-preview { display:none; } .text-only .story-preview { display:block; font-size:0.8rem; line-height:1.4; color:#444; } .text-only .card-content { padding-top:0.4rem; }