From 35f15ebc061076709293bbe4e3e2ace78ac79445 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Mar 2026 13:37:47 -0800 Subject: static landing page with single Start Now button Prerender the landing page, replace conditional auth header buttons with a single "Start Now" that checks the username cookie client-side. Set username cookie httpOnly: false in all login/register flows. Co-Authored-By: Claude Opus 4.6 --- src/components/LandingHeader.svelte | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'src/components') diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index a875e80a..febfc7fd 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -9,9 +9,13 @@ howItWorks = undefined, faq = undefined, about = undefined, - user = undefined, }: any = $props(); + function startNow() { + const match = document.cookie.match(/(?:^|;\s*)username=([^;]*)/); + goto(match ? `/${decodeURIComponent(match[1])}` : "/login"); + } + let header = $state(); @@ -32,21 +36,9 @@ {/if} - {#if user} - - - {:else} - - - {/if} + -- cgit v1.2.3