Fix blank white pages by adding Nord theme styling to auth endpoints
Some checks failed
CI / update (push) Has been cancelled
Some checks failed
CI / update (push) Has been cancelled
- 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 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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 = `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Login</title>
|
||||
<style>
|
||||
:root{
|
||||
--nord0: #2E3440;
|
||||
--nord1: #3B4252;
|
||||
--nord4: #D8DEE9;
|
||||
}
|
||||
body {
|
||||
background-color: var(--nord1);
|
||||
color: var(--nord4);
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="signin-form" method="POST" action="/auth/signin/authentik">
|
||||
|
@@ -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 = `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Logout</title>
|
||||
<style>
|
||||
:root{
|
||||
--nord0: #2E3440;
|
||||
--nord1: #3B4252;
|
||||
--nord4: #D8DEE9;
|
||||
}
|
||||
body {
|
||||
background-color: var(--nord1);
|
||||
color: var(--nord4);
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="signout-form" method="POST" action="/auth/signout">
|
||||
|
Reference in New Issue
Block a user