Files
b8f09c8142 Migrate site from Bun to Astro (#130)
* feat(site): scaffold Astro migration, convert 3 pages

Phase 1+2 of the Astro migration:

- Astro v6.2.1 installed, srcDir: 'site', static output to build/
- Shared layout: Base.astro (head, fonts, meta, slots), Header.astro
  (star count in one place: 23k), Footer.astro
- CSS moved from public/css/ to site/styles/ (9 files, @import chains
  resolve via Vite)
- Three pages converted: privacy, cases/neo-mirai, live-mode
  (all return 200 on astro dev)

Remaining: designing, slop, homepage, content collections (docs),
JS migration, server/index.js deletion, build.js cleanup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(site): migrate all 6 main pages to Astro

Converts the remaining pages:
- designing/index.html → site/pages/designing/index.astro (551 lines)
- slop/index.html → site/pages/slop/index.astro (909 lines)
- index.html → site/pages/index.astro (1278 lines, the homepage)

Base.astro gains OG meta tag props, before-header/after-header
slots (for grain overlay and section nav), and configurable mainId.

Homepage uses link tags to public/css/ instead of frontmatter CSS
imports to avoid esbuild choking on :has() in main.css. Curly
braces inside <code> elements (CSS snippets in changelog) escaped
with HTML entities to prevent Astro JSX expression parsing.

All 6 pages return 200 on astro dev. Branch: feat/astro-migration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(site): content collections for docs and tutorials

Replaces the 1532-line build-sub-pages.js generator with Astro v6
content collections:

- 24 skill editorial files move to site/content/skills/
- 4 tutorial files move to site/content/tutorials/
- site/content.config.ts defines both collections with glob loaders
- site/pages/docs/[...slug].astro reads skills collection + command
  metadata from source/skills/ at build time
- site/pages/docs/index.astro renders the command grid grouped by
  category (create, evaluate, refine, simplify, harden, system)
- site/pages/tutorials/ mirrors the pattern with ordered index
- Doc.astro layout provides sidebar nav, breadcrumbs, and related-
  command chips from the COMMAND_RELATIONSHIPS data
- Category/relationship data extracted to site/data/sub-pages-data.ts

All 15 tested pages return 200: 6 main pages + 5 docs + 2 tutorials
+ 2 index pages. The old generator is not yet deleted (Task #6).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(site): move JS source from public/js/ to site/scripts/

Moves all 49 JS files (app.js + 48 in js/) into site/scripts/.
Vite now processes them through its module bundler instead of
serving them raw from public/.

app.js import paths updated from ./js/X to ./X (the js/ nesting
is gone since app.js now lives alongside the subdirectories).

Homepage and live-mode page switch from <script is:inline src="/app.js">
to Vite-processed <script> imports, so tree-shaking, bundling,
and minification happen automatically at build time.

public/js/ still exists for now (cleanup in Task #6) and the
generated/counts.js build output path needs updating there too.
@paper-design/shaders added to npm dependencies (was missing).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(site): delete old Bun server, generator, and duplicated files

Cleanup after the Astro migration:

Deleted:
- server/index.js (233 lines, replaced by `astro dev`)
- scripts/build-sub-pages.js (1532 lines, replaced by content collections)
- scripts/lib/render-page.js (247 lines, replaced by Base.astro layout)
- content/site/partials/header.html (replaced by Header.astro component)
- public/index.html, privacy.html, designing/, live-mode/, cases/
  (replaced by .astro pages in site/pages/)
- public/css/ (moved to site/styles/)
- public/js/ old source files (moved to site/scripts/)
- public/app.js (moved to site/scripts/app.js)

Kept in public/:
- antipattern-examples/ (standalone HTML demos, not Astro pages)
- antipattern-images/, assets/, neo-mirai/ (static assets)
- js/detect-antipatterns-browser.js (referenced by antipattern examples)
- js/generated/counts.js (build output from scripts/build.js)
- _data/api/ (generated API data, now written to public/ so Astro
  passes it through to build/)

Updated:
- astro.config.mjs: added redirects (skills->docs, cheatsheet->docs,
  gallery->slop, neon-mirai->neo-mirai, etc.)
- package.json: dev->astro dev, build->build:skills+build:site,
  preview->astro preview
- scripts/build.js: removed buildStaticSite(), generateSubPages(),
  static-asset copying. API data writes to public/_data/ instead of
  build/_data/. Site-header validator is a no-op (shared component).
  Em-dash validator scans site/components + site/layouts, not pages
  (pages contain content from other sources like detector descriptions).
- .gitignore: removed public/slop/ entry

Tests: 186/186 pass. Skills build: clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(site): fix redirect config for Astro compatibility

Move the dynamic /skills/:id -> /docs/:id redirect to public/_redirects
(Cloudflare Pages native format) since Astro's redirect config can't
handle dynamic routes that don't match existing page patterns.

Remove duplicate trailing-slash redirect entries that caused warnings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(site): switch remaining pages from /css/ link tags to frontmatter imports

Doc.astro, docs/index, tutorials/index, and tutorials/[slug] were
still using <link href="/css/sub-pages.css"> which pointed at the
deleted public/css/ directory. Switched to frontmatter CSS imports
(import '../../styles/sub-pages.css') which Vite resolves from
site/styles/.

Homepage also switches from link tags to frontmatter imports for
main.css and sub-pages.css — the esbuild error that originally
forced the link-tag workaround was caused by unescaped curly braces
in the HTML content (since fixed), not by the CSS itself.

All pages verified visually in Chrome: homepage hero, foundation
grid, docs index (card grid with categories), docs detail (sidebar +
editorial content + visual mockups), designing (core loop diagram),
privacy, tutorials. Header renders with 23k stars on every page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(site): fix edge-to-edge sections, broken API paths, CSS links

Three fixes:

1. Homepage sections sat on the viewport edge because Base.astro's
   <main> lacked the site-content class (provides max-width + padding).
   Added mainClass prop to Base.astro; homepage sets mainClass="site-content".

2. "Failed to load commands" because app.js fetched /api/commands
   which only existed in the old Bun server's routing. Updated to
   fetch from /_data/api/commands.json (the static JSON files that
   build:skills writes to public/_data/).

3. CSS reference fix (previous commit was incomplete): Doc.astro,
   docs/index, tutorials pages all used <link href="/css/sub-pages.css">
   pointing at deleted public/css/. Switched to frontmatter imports.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(site): add sidebar to docs index page

The docs index was using Base.astro directly without the skills-layout
grid, so it rendered without a sidebar. Added the same sidebar structure
from Doc.astro (category-grouped command list) and wrapped the content
in the skills-layout grid.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(site): extract footer CSS to shared file, import in Base.astro

Footer was unstyled on sub-pages because footer CSS lived only in
main.css (loaded by the homepage) not in sub-pages.css. Extracted
the 95 lines of footer rules into site/styles/footer.css and
imported it in Base.astro so every page gets footer styles regardless
of which page-specific CSS it loads.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(demos): move landing-demo into repo, add as slop specimens

Moves ~/code/landing-demo/ into demos/landing-demo/ (without
node_modules or the redundant .claude/.agents skill copies — the
repo root's skill is found by walking up). PRODUCT.md, DESIGN.md,
DESIGN.json, PROMPT.md, and SCRIPT.md stay in place so running
Claude from demos/landing-demo/ picks up the project context.

Also copies both pages as slop specimens to public/antipattern-examples/
with the detector script baked in:
- new-slop-2026.html (Fraunces + warm cream editorial monoculture)
- old-slop-2022.html (purple gradient + glassmorphism + neon glow)

These can be linked from the slop page gallery alongside the
existing 11 synthetic specimens.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(slop): replace single demo iframe with Then vs Now comparison

The "See it" section (01) on the slop page now shows two side-by-side
browser frames: 2022 slop (purple gradients, glassmorphism, neon glow)
and 2026 slop (Fraunces, warm cream, editorial restraint). Both run
the detector overlay live — hover either to see which rules fire.

Replaces the single visual-mode-demo.html iframe. Responsive: stacks
vertically on viewports below 900px.

Caption: "Same engine, different decade, both flagged."

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(slop): switch to single-frame era toggle, center the section

Replaces the side-by-side dual-iframe layout with a single large
frame and a segmented 2022/2026 toggle. Clicking the toggle swaps
which iframe is visible (both pre-loaded, instant switch). Browser
chrome title updates to match the active era.

Centers the lede text and toggle above the frame for visual
cohesion with the full-width iframe below.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(slop): left-align See It section, toggle inline with lede

Moves the era toggle to the right of the lede paragraph using a
flex row (align-items: flex-end). Left-aligned text + right-docked
toggle matches the rest of the page's flow instead of standing out
as a centered island. Stacks vertically on narrow viewports.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(slop): left-align iframe, remove max-width and auto margin

The visual-mode-preview had max-width: 1040px + margin: 0 auto
which centered it within the column. Override both in the
.slop-then-now context so the frame fills the full content width
flush with the text above. Caption left-aligned to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore(site): update star count to 24k (24,062)

One file, one edit. The Astro migration working as intended.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(build): regenerate pnpm-lock.yaml for astro + shaders deps

Cloudflare Pages uses pnpm with frozen-lockfile. The lockfile was
stale after adding astro, @astrojs/cloudflare, and
@paper-design/shaders via npm.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(build): resolve 3 bugbot review issues

1. Restore public/slop/ to .gitignore — prevents accidental legacy
   generator output from conflicting with the Astro page.

2. Move astro and @paper-design/shaders to devDependencies — these
   are site-build tools, not CLI runtime deps. Removes @astrojs/cloudflare
   entirely (unused; static output mode needs no adapter).

3. Fix Astro wiping build:skills output — CF config (_headers,
   _redirects, _routes.json) and API data now write to public/ so
   Astro copies them through. Dist ZIPs copy to build/_data/dist/
   as a post-build step (after Astro finishes).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(build): merge duplicate devDependencies, use npx for astro CLI

The previous commit created a second devDependencies key in
package.json. JSON doesn't support duplicate keys — pnpm ignored
the first block (with astro), so `astro build` wasn't found.

Merged astro and @paper-design/shaders into the existing
devDependencies block. Changed `astro build/dev/preview` to
`npx astro build/dev/preview` so pnpm finds the local binary
on Cloudflare Pages (which doesn't add node_modules/.bin to PATH
by default).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(demos): remove private demo script and prompt from public repo

SCRIPT.md contained a detailed conference talk script with personal
delivery strategies, rehearsed Q&A answers, and venue details.
PROMPT.md contained the origin brief for the demo page. Neither
belongs in a public repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(build): gitignore generated public/ artifacts, consolidate redirects

1. Generated files written to public/ by build:skills (API data,
   CF config, browser detector, counts.js) are now gitignored.
   Prevents noisy diffs and merge conflicts from committed build
   artifacts.

2. Removed duplicate redirects from astro.config.mjs. All redirects
   now live in one place: the _redirects file generated by
   scripts/build.js (which Cloudflare Pages processes natively).
   Eliminates the dual-maintenance risk where the two sources
   could drift apart.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 11:29:10 -07:00

351 lines
9.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Lumina — The future of intelligent workflows</title>
<link rel="icon" href="data:," />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #0a0a14;
--bg-elev: #14141f;
--text: #ffffff;
--text-muted: rgba(255, 255, 255, 0.6);
--border: rgba(255, 255, 255, 0.08);
--purple: #8b5cf6;
--violet: #7c3aed;
--pink: #ec4899;
--cyan: #06b6d4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: 'Inter', system-ui, sans-serif;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
line-height: 1.6;
overflow-x: hidden;
}
/* Nav */
.nav {
position: sticky; top: 0; z-index: 10;
backdrop-filter: blur(24px);
background: rgba(10, 10, 20, 0.6);
border-bottom: 1px solid var(--border);
}
.nav-inner {
max-width: 1180px; margin: 0 auto;
padding: 18px 32px;
display: flex; align-items: center; gap: 40px;
}
.logo {
font-weight: 700; font-size: 22px;
letter-spacing: -0.02em;
background: linear-gradient(135deg, var(--purple), var(--pink));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-muted); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.nav-cta a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.pill {
background: linear-gradient(135deg, var(--purple), var(--pink));
color: #fff;
padding: 9px 18px; border-radius: 999px;
font-weight: 600; font-size: 14px;
box-shadow: 0 0 32px rgba(139, 92, 246, 0.5);
}
/* Hero */
.hero {
padding: 140px 32px 160px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -200px; left: 50%;
transform: translateX(-50%);
width: 800px; height: 800px;
background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
filter: blur(80px);
z-index: 0;
}
.hero::after {
content: '';
position: absolute;
top: 100px; right: 5%;
width: 400px; height: 400px;
background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
filter: blur(80px);
z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
display: inline-block;
padding: 6px 14px;
border-radius: 999px;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.3);
color: var(--purple);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 12px;
font-weight: 600;
margin-bottom: 32px;
}
.h1 {
font-weight: 800;
font-size: clamp(48px, 7vw, 88px);
line-height: 1.05;
letter-spacing: -0.03em;
max-width: 920px;
margin: 0 auto 28px;
background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, var(--pink) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.lede {
font-size: 20px;
color: var(--text-muted);
max-width: 620px;
margin: 0 auto 44px;
}
.ctas { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.btn {
padding: 14px 32px;
border-radius: 12px;
font-weight: 600;
font-size: 15px;
text-decoration: none;
display: inline-flex; align-items: center; gap: 8px;
transition: all 0.2s ease;
border: 0;
}
.btn-primary {
background: linear-gradient(135deg, var(--purple), var(--pink));
color: #fff;
box-shadow: 0 0 40px rgba(139, 92, 246, 0.5), 0 4px 16px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 0 60px rgba(139, 92, 246, 0.7);
}
.btn-ghost {
color: #fff;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(12px);
}
.trust { font-size: 13px; color: var(--text-muted); }
.trust strong { color: #fff; font-weight: 600; }
/* Logo strip */
.logos {
padding: 56px 32px;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.logos-inner {
max-width: 1100px; margin: 0 auto;
display: flex; justify-content: space-between; align-items: center;
flex-wrap: wrap; gap: 32px;
font-weight: 600; font-size: 18px; color: var(--text-muted);
opacity: 0.6;
}
/* Features */
.features {
padding: 120px 32px;
max-width: 1180px;
margin: 0 auto;
position: relative;
}
.features-head {
text-align: center;
max-width: 720px;
margin: 0 auto 80px;
}
.features-head h2 {
font-weight: 800;
font-size: clamp(36px, 4.5vw, 52px);
line-height: 1.1;
letter-spacing: -0.03em;
margin: 0 0 20px;
background: linear-gradient(135deg, #fff, #c4b5fd);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.features-head p { font-size: 18px; color: var(--text-muted); margin: 0; }
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.card {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(24px);
border: 1px solid var(--border);
border-radius: 24px;
padding: 40px 32px;
text-align: center;
transition: all 0.3s ease;
}
.card:hover {
border-color: rgba(139, 92, 246, 0.3);
background: rgba(139, 92, 246, 0.04);
transform: translateY(-4px);
}
.icon {
width: 56px; height: 56px;
border-radius: 16px;
background: linear-gradient(135deg, var(--purple), var(--pink));
display: inline-flex; align-items: center; justify-content: center;
font-size: 28px;
margin-bottom: 24px;
box-shadow: 0 0 32px rgba(139, 92, 246, 0.4);
}
.card h3 {
font-weight: 700;
font-size: 22px;
margin: 0 0 12px;
letter-spacing: -0.02em;
color: #fff;
}
.card p {
font-size: 15px;
color: var(--text-muted);
margin: 0;
}
/* CTA */
.cta-section {
padding: 120px 32px;
text-align: center;
position: relative;
overflow: hidden;
}
.cta-section::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}
.cta-section > * { position: relative; }
.cta-section h2 {
font-weight: 800;
font-size: clamp(36px, 5vw, 60px);
line-height: 1.1;
letter-spacing: -0.03em;
margin: 0 0 20px;
max-width: 720px;
margin-left: auto; margin-right: auto;
background: linear-gradient(135deg, #fff, #c4b5fd, var(--pink));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.cta-section p {
font-size: 18px;
color: var(--text-muted);
margin: 0 auto 40px;
max-width: 540px;
}
/* Footer */
.footer {
padding: 40px 32px;
text-align: center;
font-size: 13px;
color: var(--text-muted);
border-top: 1px solid var(--border);
}
</style>
</head>
<body>
<nav class="nav">
<div class="nav-inner">
<div class="logo">Lumina ✨</div>
<div class="nav-links">
<a href="#">Product</a>
<a href="#">Solutions</a>
<a href="#">Pricing</a>
<a href="#">Customers</a>
<a href="#">Docs</a>
</div>
<div class="nav-cta">
<a href="#">Sign in</a>
<a href="#" class="pill">Get started →</a>
</div>
</div>
</nav>
<section class="hero">
<div class="eyebrow">🚀 Powered by AI</div>
<h1 class="h1">Build faster with intelligent workflows</h1>
<p class="lede">The all-in-one platform that helps modern teams ship better products in record time. Powered by AI, designed for humans.</p>
<div class="ctas">
<a href="#" class="btn btn-primary">Join the waitlist →</a>
<a href="#" class="btn btn-ghost">Watch demo</a>
</div>
<div class="trust">Backed by <strong>top-tier investors</strong></div>
</section>
<section class="logos">
<div class="logos-inner">
<span>Northwind</span>
<span>Halcyon</span>
<span>Meridian</span>
<span>Fieldnote</span>
<span>Atlas &amp; Co.</span>
<span>Verity</span>
</div>
</section>
<section class="features">
<div class="features-head">
<h2>Everything you need to ship faster</h2>
<p>One platform. Endless possibilities. Built for the future.</p>
</div>
<div class="grid">
<div class="card">
<div class="icon"></div>
<h3>Lightning Fast</h3>
<p>Move from idea to production in minutes, not months. Our AI handles the heavy lifting so you can focus on what matters.</p>
</div>
<div class="card">
<div class="icon">🔒</div>
<h3>Enterprise Secure</h3>
<p>SOC 2 compliant infrastructure with end-to-end encryption. Your data is safe, always.</p>
</div>
<div class="card">
<div class="icon">📈</div>
<h3>Built to Scale</h3>
<p>From your first prototype to millions of users, Lumina grows with your team without breaking a sweat.</p>
</div>
</div>
</section>
<section class="cta-section">
<h2>Ready to transform how your team builds?</h2>
<p>Join thousands of teams already shipping faster with Lumina.</p>
<a href="#" class="btn btn-primary">Get early access →</a>
</section>
<footer class="footer">
© 2022 Lumina, Inc. Powered by AI in San Francisco.
</footer>
</body>
</html>