From 77b867c9247a1b1f1db0e11adb3839ff90c86385 Mon Sep 17 00:00:00 2001 From: Giorgio Gilestro Date: Tue, 26 May 2026 00:29:51 +0200 Subject: [PATCH] landing: lift screenshots off the page; align feature thumbnails Two fixes after a visual review: 1. Drop-shadow on every `.shot` so screenshots read as raised elements, not part of the page chrome. Soft slate shadow in light mode; deeper pure-black shadow + accent-tinted glow on hover in dark mode (the slate shadow disappears against the near-black background). The hover state also nudges the card up 1px so the lift is felt, not just seen. 2. Vertical alignment of the news / macro / hourly thumbnails inside the three feature cards. The cards are already equal-height (grid row, default stretch); now `.feature-card__body { flex-grow: 1 }` plus `display:flex; flex-direction:column` on the card pushes the body text to fill the column, which lands every thumbnail at the same y regardless of how much copy sits above it. Fixed 18px gap between body text and thumbnail. --- app/static/css/cassandra.css | 55 ++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/app/static/css/cassandra.css b/app/static/css/cassandra.css index 4f8f076..0f2f7a8 100644 --- a/app/static/css/cassandra.css +++ b/app/static/css/cassandra.css @@ -1570,6 +1570,11 @@ a.btn-secondary:hover { color: var(--accent); border-color: var(--accent); } border-radius: 4px; padding: 22px 22px 24px; background: var(--surface); + /* Flex column so the screenshot thumbnail can dock to the bottom via + margin-top:auto — that's what lines the three thumbnails up across + cards regardless of body-text length. */ + display: flex; + flex-direction: column; } .feature-card__tag { font-family: var(--font-mono); @@ -1590,6 +1595,10 @@ a.btn-secondary:hover { color: var(--accent); border-color: var(--accent); } line-height: 1.6; color: var(--muted); margin: 0; + /* Grow to fill the flex column so the thumbnail below docks to the + bottom of the card. With grid-stretched equal-height cards, this is + what aligns the thumbnails across the three cards. */ + flex-grow: 1; } /* --- Section primitives reused across pricing/about/legal ---------- */ @@ -1731,11 +1740,12 @@ a.btn-secondary:hover { color: var(--accent); border-color: var(--accent); } strip, and a -based lightbox. See app/templates/landing.html. */ /* All clickable screenshots are