diff --git a/README.md b/README.md index 387e85b..8a96760 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,16 @@ npm run dev - `src/pages/index.astro`: the marketing homepage - `src/pages/`: Product, Why, Self-hosted, Security, and the other hub routes - `src/pages/404.astro`: branded not-found -- `src/layouts/MarketingPage.astro`: shared header/footer chrome for inner pages -- `src/lib/site.ts`: nav, footer groups, CTAs -- `src/components/`: Header, CheckRunPanel, RunFlow, Rivelle blocks +- `src/layouts/MarketingPage.astro`: header/footer chrome for inner pages; the + pages themselves compose full-bleed sections +- `src/lib/site.ts`: `siteSections` is the canonical site map — the header nav, + the footer, and the 404 all render it, so a route cannot exist without being + reachable from every page +- `src/components/marketing/`: the subpage system — `PageHero`, `Section`, + `Card`/`Grid`, `Steps`, `MarkList`, `CodePanel`, `CheckRunPanel`, `Callout`, + `Faq`, `Prose`, `CtaLink`/`Actions` +- `src/components/blocks/`, `src/components/ui/`: Rivelle blocks and primitives + used by the homepage template - `src/layouts/Layout.astro`: head, meta, OG tags, header/footer chrome - `src/styles/global.css`: product-green palette, JetBrains Mono, light/dark via `prefers-color-scheme` diff --git a/src/components/CheckRunPanel.astro b/src/components/CheckRunPanel.astro deleted file mode 100644 index 91190e8..0000000 --- a/src/components/CheckRunPanel.astro +++ /dev/null @@ -1,38 +0,0 @@ ---- -interface Props { - lines: string[]; -} - -const { lines } = Astro.props; ---- - -
-
- - Check run -
-
{
-      lines.map((line) => {
-        const isPass = line.trimStart().startsWith('✓');
-        const isSep = line.includes('──');
-        const isTitle = line.trim() === 'openpreflight';
-        let cls = 'block text-[var(--ink)]';
-        if (isPass) cls = 'block text-[var(--pass)]';
-        else if (isSep || isTitle) cls = 'block text-[var(--ink-muted)]';
-        if (isSep) {
-          return (
-            
-          );
-        }
-        return {line || '\u00a0'};
-      })
-    }
-
diff --git a/src/components/Header.astro b/src/components/Header.astro deleted file mode 100644 index 1aed4a9..0000000 --- a/src/components/Header.astro +++ /dev/null @@ -1,31 +0,0 @@ ---- -const DOCS = 'https://docs.openpreflight.xyz'; -const REPO = 'https://github.com/openpreflight/openpreflight'; ---- - -
-
- - - openpreflight - - -
-
diff --git a/src/components/RunFlow.astro b/src/components/RunFlow.astro deleted file mode 100644 index 8b64f2c..0000000 --- a/src/components/RunFlow.astro +++ /dev/null @@ -1,36 +0,0 @@ ---- -interface Step { - title: string; - detail: string; -} - -interface Props { - steps: Step[]; -} - -const { steps } = Astro.props; ---- - -
    - { - steps.map((step, i) => ( -
  1. - {i < steps.length - 1 && ( -
  2. - )) - } -
diff --git a/src/components/blocks/footer-01.tsx b/src/components/blocks/footer-01.tsx index 697fb09..3ae1c81 100644 --- a/src/components/blocks/footer-01.tsx +++ b/src/components/blocks/footer-01.tsx @@ -54,7 +54,7 @@ function Footer01({ {...props} >
-
+