From c6e6c5ca4885c16ba63e57bdec6f247f4dbc4c91 Mon Sep 17 00:00:00 2001 From: Jack Mechem Date: Thu, 21 May 2026 21:13:06 -0700 Subject: [PATCH] Redesign --- app/auth/page.tsx | 35 ++-- app/components/DevConsole.tsx | 104 +++++------ app/components/Hero.tsx | 11 +- app/components/LinkCard.tsx | 10 +- app/components/LinksGrid.tsx | 2 +- app/components/NavBar.tsx | 72 -------- app/components/NetworkCard.tsx | 14 +- app/components/PowerCard.tsx | 40 ++--- app/components/ServicePill.tsx | 8 +- app/components/ServicesCard.tsx | 4 +- app/components/SideNav.tsx | 299 ++++++++++++++++++++++++++++++++ app/components/StatCard.tsx | 10 +- app/components/UptimeCard.tsx | 10 +- app/globals.css | 185 ++++++++++++++------ app/layout.tsx | 33 ++-- app/page.tsx | 25 ++- package-lock.json | 27 +++ package.json | 3 +- public/logo.svg | 6 + stores/useThemeStore.ts | 43 +++++ 20 files changed, 664 insertions(+), 277 deletions(-) delete mode 100644 app/components/NavBar.tsx create mode 100644 app/components/SideNav.tsx create mode 100644 public/logo.svg create mode 100644 stores/useThemeStore.ts diff --git a/app/auth/page.tsx b/app/auth/page.tsx index aa9aa79..e4babb6 100644 --- a/app/auth/page.tsx +++ b/app/auth/page.tsx @@ -50,7 +50,6 @@ export default function AuthPage() { setStatus("checking"); try { - // Step 1: verify password → get WebAuthn challenge const loginRes = await fetch("/api/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -65,7 +64,6 @@ export default function AuthPage() { const { session_id, challenge } = await loginRes.json(); - // Step 2: prompt YubiKey tap setStatus("waiting_yubikey"); const opts = challenge.publicKey; opts.challenge = b64uToBuf(opts.challenge); @@ -94,7 +92,6 @@ export default function AuthPage() { return; } - // Step 3: verify assertion → set cookie setStatus("verifying"); const assertion = cred.response as AuthenticatorAssertionResponse; @@ -140,23 +137,21 @@ export default function AuthPage() { const busy = status !== "idle"; return ( -
-
- {/* Header */} +
+
-

+

dell-xps-nixos-serv

-

+

Login

-

Enter system credentials

+

Enter system credentials

- {/* Username */}
-
- {/* Password */}
-
- {/* YubiKey cue */} {status === "waiting_yubikey" && ( -

+

Touch your YubiKey…

)} - {/* Error */} {error && (

{error}

)} - {/* Submit */}