diff --git a/frontend/src/routes/home3/+page.svelte b/frontend/src/routes/home3/+page.svelte index 28a2889..e385398 100644 --- a/frontend/src/routes/home3/+page.svelte +++ b/frontend/src/routes/home3/+page.svelte @@ -17,6 +17,12 @@ } let headline = $derived(clampWords(news?.title ?? 'What went right this week: the good news that actually matters')); + // small-joys shelf: 3 cells shown two at a time, rotated by the reader (no auto-motion) + const JOY_ACCENTS = ['#D2861B', '#8857C2', '#3F9A66']; + let joyIdx = $state(0); + const prevJoy = () => (joyIdx = (joyIdx + 2) % 3); + const nextJoy = () => (joyIdx = (joyIdx + 1) % 3); + onMount(async () => { try { const a = await getJSON('/api/art/today'); @@ -42,6 +48,40 @@ +{#snippet joyCard(i)} + {#if i === 0} +
Serene adj.
+/səˈriːn/
+Calm, peaceful, and untroubled. The quiet after a storm passes.
+Very little is needed to make a happy life.
+1928 ON THIS DAY
+Penicillin was discovered by a happy accident.
+Serene adj.
-/səˈriːn/
-Calm, peaceful, and untroubled. The quiet after a storm passes.
-Very little is needed to make a happy life.
-1928 ON THIS DAY
-Penicillin was discovered by a happy accident.