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 }) {