diff --git a/frontend/src/routes/home3/+page.svelte b/frontend/src/routes/home3/+page.svelte index 8c70466..bccbe71 100644 --- a/frontend/src/routes/home3/+page.svelte +++ b/frontend/src/routes/home3/+page.svelte @@ -92,9 +92,11 @@ - News + Home + News Games Art + Entertainment @@ -111,12 +113,14 @@ - - - + + + + + GOOD NEWS - {headline} + {headline} {news?.summary || "We read the week so you don't have to doomscroll it. Five quietly hopeful stories, summarised to the gist."} Read article @@ -300,6 +304,11 @@ background: #fff; border: 1px solid var(--news-border); display: flex; flex-direction: column; box-shadow: 0 6px 20px -14px rgba(0, 131, 173, 0.4); } + /* photo + headline both link to the article (clickable, not just the text links) */ + .news-photo-a { display: block; } + .news-photo-a:hover { filter: brightness(0.97); } + .headline-a { display: block; text-decoration: none; color: inherit; } + .headline-a:hover h2 { color: var(--teal); } /* Photos fill edge-to-edge (cover, no box). Only figures/diagrams (detected by their wide/tall shape) get the soft tinted matte + white framed plate, so labels stay whole. */ .news-photo { aspect-ratio: 5/4; }
{news?.summary || "We read the week so you don't have to doomscroll it. Five quietly hopeful stories, summarised to the gist."}