From 6393dd11ae69d65ae457eb808a13adab8ef99f1d Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 18 Feb 2026 15:12:56 +0000 Subject: [PATCH] update: redesign pages with unified shell and clean ui --- src/views/pages.js | 432 ++++++++++++++++++++++----------------------- 1 file changed, 211 insertions(+), 221 deletions(-) diff --git a/src/views/pages.js b/src/views/pages.js index 49ce0a6..7beedb1 100644 --- a/src/views/pages.js +++ b/src/views/pages.js @@ -9,8 +9,28 @@ function escapeHtml(value) { .replaceAll("'", "'"); } -function shell({ title, content, compact = false }) { +function shell({ title, content, compact = false, user = null }) { const container = compact ? "max-w-md" : "max-w-5xl"; + const authenticated = user?.authenticated; + const userId = user?.userId; + + const authButtons = authenticated + ? `
+ +
+ +
+
` + : `
+ Sign in + Get Started +
`; + + const menuItems = ` +
  • How it works
  • +
  • Pricing
  • +
  • Dashboard
  • + `; return ` @@ -28,25 +48,31 @@ function shell({ title, content, compact = false }) {