From 352556a28318deb2ad012dfd5754d7e3f471584c Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sun, 31 Aug 2025 22:06:37 +0200 Subject: [PATCH] Fix blank white pages by adding Nord theme styling to auth endpoints - Add Nord theme CSS variables to login and logout pages - Use --nord1 background and --nord4 text colors to match site theme - Eliminates jarring white flash during authentication flow - Maintains professional appearance and brand consistency - Endpoints now blend seamlessly with site's dark theme --- src/routes/login/+server.ts | 17 ++++++++++++++++- src/routes/logout/+server.ts | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/routes/login/+server.ts b/src/routes/login/+server.ts index da37db3c..3bd99ba3 100644 --- a/src/routes/login/+server.ts +++ b/src/routes/login/+server.ts @@ -3,12 +3,27 @@ import type { RequestHandler } from './$types'; export const GET: RequestHandler = async ({ url }) => { const callbackUrl = url.searchParams.get('callbackUrl') || '/'; - // Create a minimal page that immediately triggers auth in the same window + // Create a minimal page with site styling that immediately triggers auth const html = ` Login +
diff --git a/src/routes/logout/+server.ts b/src/routes/logout/+server.ts index 301b3029..7ff65daf 100644 --- a/src/routes/logout/+server.ts +++ b/src/routes/logout/+server.ts @@ -3,12 +3,27 @@ import type { RequestHandler } from './$types'; export const GET: RequestHandler = async ({ url }) => { const callbackUrl = url.searchParams.get('callbackUrl') || '/'; - // Create a minimal page that immediately triggers logout in the same window + // Create a minimal page with site styling that immediately triggers logout const html = ` Logout +