From d3729b65a4b03c4ce9974dd7d663623fcbfff9c2 Mon Sep 17 00:00:00 2001 From: Adam Lamers Date: Thu, 2 Apr 2026 03:19:31 -0400 Subject: [PATCH] just let guests in for now --- src/App.css | 27 ++++++++++++++++++++++++++- src/auth/AuthGate.svelte | 30 +++++++++++++++++++++--------- 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/src/App.css b/src/App.css index aa5e8bc..e5bedab 100644 --- a/src/App.css +++ b/src/App.css @@ -182,12 +182,18 @@ body { border: none; color: var(--text-muted); cursor: pointer; - font-size: 1.2rem; + font-size: 0.9rem; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; + opacity: 0; + transition: opacity 0.1s; +} + +.section-header:hover .add-btn { + opacity: 1; } .add-btn:hover { @@ -1201,6 +1207,25 @@ body { cursor: not-allowed; } +.btn-secondary { + background-color: transparent; + border: 1px solid var(--brand); + color: var(--brand); + padding: 8px 16px; + border-radius: 4px; + cursor: pointer; + font-weight: 600; + transition: background-color 0.2s, color 0.2s; + display: flex; + align-items: center; + justify-content: center; +} + +.btn-secondary:hover { + background-color: var(--brand); + color: white; +} + /* Login Screen */ .login-screen { display: flex; diff --git a/src/auth/AuthGate.svelte b/src/auth/AuthGate.svelte index e71fb0c..67561f7 100644 --- a/src/auth/AuthGate.svelte +++ b/src/auth/AuthGate.svelte @@ -7,6 +7,7 @@ let authError = $state(null); let hasStoredToken = $state(false); + let isGuest = $state(false); onMount(() => { hasStoredToken = !!localStorage.getItem(TOKEN_KEY); @@ -20,12 +21,13 @@ import.meta.env.VITE_BYPASS_AUTH === "true" || new URLSearchParams(window.location.search).has("bypass_auth"); - const isAuthenticated = $derived(auth.isAuthenticated || hasStoredToken || isBypassEnabled); + const isAuthenticated = $derived(auth.isAuthenticated || hasStoredToken || isGuest || isBypassEnabled); $effect(() => { console.log("AuthGate: auth.isLoading:", auth.isLoading); console.log("AuthGate: auth.isAuthenticated:", auth.isAuthenticated); console.log("AuthGate: hasStoredToken:", hasStoredToken); + console.log("AuthGate: isGuest:", isGuest); console.log("AuthGate: isBypassEnabled:", isBypassEnabled); }); @@ -45,14 +47,24 @@ {/if} - +
+ + + +
{/if}