From e298d25c927c38fcac139d917ade7f90e75050c2 Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 21 Jun 2026 20:13:14 -0400 Subject: [PATCH] home2 cards round 4: all cards tinted + top strip, inset photos, centered static headers - All four cards now tinted with a taller (18px), darker (~24%) top color strip. - Photos (news top, art right) sit inset + rounded so the card colour frames them. - Static cards: header centered; CTA pinned to the bottom so Play/Daily Moment links line up. News tint = soft amber, Art = soft lilac, Play = sky, Moment = sage. - Hub spacing: intro pulled up a touch, more gap between the intro and the cards. Co-Authored-By: Claude Opus 4.8 --- frontend/src/lib/components/RoomCard.svelte | 64 ++++++++++----------- frontend/src/lib/rooms.js | 2 + frontend/src/routes/home2/+page.svelte | 4 +- 3 files changed, 34 insertions(+), 36 deletions(-) diff --git a/frontend/src/lib/components/RoomCard.svelte b/frontend/src/lib/components/RoomCard.svelte index 9335dca..9ab89bd 100644 --- a/frontend/src/lib/components/RoomCard.svelte +++ b/frontend/src/lib/components/RoomCard.svelte @@ -1,7 +1,7 @@ @@ -34,19 +34,27 @@ diff --git a/frontend/src/lib/rooms.js b/frontend/src/lib/rooms.js index 3180f29..8a9e051 100644 --- a/frontend/src/lib/rooms.js +++ b/frontend/src/lib/rooms.js @@ -12,6 +12,7 @@ export const ROOMS = [ size: 'large', preview: 'news', icon: '📰', + tint: '#fbecdb', // soft amber }, { id: 'art', @@ -22,6 +23,7 @@ export const ROOMS = [ size: 'wide', preview: 'art', icon: '🖼️', + tint: '#f4ecf3', // soft lilac }, { id: 'play', diff --git a/frontend/src/routes/home2/+page.svelte b/frontend/src/routes/home2/+page.svelte index 87e736d..cf7cdcc 100644 --- a/frontend/src/routes/home2/+page.svelte +++ b/frontend/src/routes/home2/+page.svelte @@ -108,9 +108,9 @@ .hub { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; box-sizing: border-box; - padding: clamp(16px, 3vw, 40px) clamp(18px, 5vw, 64px) clamp(40px, 6vw, 72px); + padding: clamp(12px, 2.4vw, 30px) clamp(18px, 5vw, 64px) clamp(40px, 6vw, 72px); } - .intro { text-align: center; margin: clamp(8px, 2vw, 22px) 0 clamp(28px, 4vw, 44px); } + .intro { text-align: center; margin: clamp(6px, 1.2vw, 14px) 0 clamp(40px, 6vw, 64px); } .intro h1 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0; letter-spacing: -0.015em; line-height: 1.08;