Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(qa): ISSUE-006 — unify marketing shell (StickyNav + sections/Footer everywhere)

Beenu Arora77039a41153c
diff --git a/apps/web/src/app/(marketing)/about/page.tsx b/apps/web/src/app/(marketing)/about/page.tsx
index 81c2c2121..3ddf3235b 100644
--- a/apps/web/src/app/(marketing)/about/page.tsx
+++ b/apps/web/src/app/(marketing)/about/page.tsx
@@ -1,8 +1,8 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { CONNECTOR_COUNT } from '@/data/connectorCount';
+// Site-wide nav + footer are rendered by `(marketing)/layout.tsx` so this
+// page is content-only. See ISSUE-006 shell unification (2026-06-29).
/**
* `/about` — short, opinionated company page.
@@ -55,10 +55,8 @@ export default function AboutPage() {
return (
<main
data-theme="dark"
- className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
+ className="relative overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-16">
<div className="mx-auto max-w-3xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -143,7 +141,6 @@ export default function AboutPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/blog/[slug]/page.tsx b/apps/web/src/app/(marketing)/blog/[slug]/page.tsx
index 6a01b1b48..6dbd1c0cc 100644
--- a/apps/web/src/app/(marketing)/blog/[slug]/page.tsx
+++ b/apps/web/src/app/(marketing)/blog/[slug]/page.tsx
@@ -2,8 +2,6 @@ import type { Metadata } from 'next';
import Link from 'next/link';
import { notFound } from 'next/navigation';
import { MDXRemote } from 'next-mdx-remote/rsc';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { mdxBodyComponents } from '@/components/marketing/MdxBody';
import {
formatPostDate,
@@ -72,11 +70,9 @@ export default async function BlogPostPage({
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
<PostHero post={post} />
<PostBody body={post.body} />
<PostFooter post={post} />
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/blog/page.tsx b/apps/web/src/app/(marketing)/blog/page.tsx
index 3fb9ee404..58de6b5f4 100644
--- a/apps/web/src/app/(marketing)/blog/page.tsx
+++ b/apps/web/src/app/(marketing)/blog/page.tsx
@@ -1,7 +1,5 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { formatPostDate, listPosts } from '@/lib/blog';
/**
@@ -36,8 +34,6 @@ export default function BlogIndexPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-5xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -143,7 +139,6 @@ export default function BlogIndexPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/contact/page.tsx b/apps/web/src/app/(marketing)/contact/page.tsx
index c1f112e2b..5f6944568 100644
--- a/apps/web/src/app/(marketing)/contact/page.tsx
+++ b/apps/web/src/app/(marketing)/contact/page.tsx
@@ -1,7 +1,5 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
/**
* `/contact` — channel directory.
@@ -80,8 +78,6 @@ export default function ContactPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-3xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -146,7 +142,6 @@ export default function ContactPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/customers/[slug]/page.tsx b/apps/web/src/app/(marketing)/customers/[slug]/page.tsx
index 5769aee68..fb937e2e4 100644
--- a/apps/web/src/app/(marketing)/customers/[slug]/page.tsx
+++ b/apps/web/src/app/(marketing)/customers/[slug]/page.tsx
@@ -2,8 +2,6 @@ import type { Metadata } from 'next';
import Link from 'next/link';
import { notFound } from 'next/navigation';
import { MDXRemote } from 'next-mdx-remote/rsc';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { mdxBodyComponents } from '@/components/marketing/MdxBody';
import {
getCustomerBySlug,
@@ -71,13 +69,11 @@ export default async function CustomerStoryPage({
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
<CustomerHero study={study} />
<StatBand stats={study.frontmatter.result_numbers ?? []} />
<PullQuote study={study} />
<CustomerBody body={study.body} />
<RelatedFeatures study={study} />
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/customers/page.tsx b/apps/web/src/app/(marketing)/customers/page.tsx
index 7128f2d96..b465ac913 100644
--- a/apps/web/src/app/(marketing)/customers/page.tsx
+++ b/apps/web/src/app/(marketing)/customers/page.tsx
@@ -1,7 +1,5 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { listCustomers } from '@/lib/customers';
/**
@@ -33,8 +31,6 @@ export default function CustomersIndexPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-5xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -152,7 +148,6 @@ export default function CustomersIndexPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/layout.tsx b/apps/web/src/app/(marketing)/layout.tsx
index b01aa0017..edeef8344 100644
--- a/apps/web/src/app/(marketing)/layout.tsx
+++ b/apps/web/src/app/(marketing)/layout.tsx
@@ -1,13 +1,43 @@
import type { ReactNode } from 'react';
import { velvetFontVariables } from '@/lib/marketing-fonts';
+import { StickyNav } from '@/components/landing/sections/StickyNav';
+import { Footer } from '@/components/landing/sections/Footer';
/**
- * Marketing route-group layout (T7.1 VelvetEdge retheme).
+ * Marketing route-group layout (T7.1 VelvetEdge retheme, ISSUE-006
+ * shell unification 2026-06-29).
*
* Scopes the velvet jewel-tone fonts (DM Serif Display / Poppins /
* Source Code Pro) and the `.velvet-root` CSS-variable boundary to
* the marketing surfaces (`/sovereign`, `/customers`, `/blog`,
- * `/waitlist`) so they share the look of the root landing at `/`.
+ * `/waitlist`, …) so they share the look of the root landing at `/`.
+ *
+ * Why nav + footer live here (and no longer in every page.tsx)
+ * -----------------------------------------------------------
+ * Before this refactor every (marketing) page imported `LandingNav`
+ * and `landing/Footer` and rendered them in JSX. That meant:
+ * - 11 marketing pages plus a few standalones (`/benchmark`,
+ * `/why-open-source`, `/not-found`) had two *different* shells
+ * than the landing page itself, which used `StickyNav` and
+ * `sections/Footer`. Visitors saw the nav rebuild and the footer
+ * re-label every time they crossed a route boundary (Platform vs
+ * Product, 4 columns vs 5 columns, Sovereign vs Solutions).
+ * - The next person to add a marketing page could trivially forget
+ * either component and ship a chrome-less page.
+ *
+ * After this refactor:
+ * - The canonical site-wide chrome (`StickyNav` + `sections/Footer`)
+ * lives in exactly one place — here. Every (marketing) page is now
+ * a content-only component.
+ * - The landing page (`apps/web/src/app/page.tsx`) renders the same
+ * pair directly because Next.js layouts don't cascade across route
+ * groups; `/` is *not* under `(marketing)`.
+ * - `/benchmark`, `/why-open-source`, and the branded `not-found.tsx`
+ * also import the pair directly (they live at the app root, not
+ * inside the group).
+ * - The older `LandingNav` and `landing/Footer` files have been
+ * deleted; any future "marketing nav tweak" only needs to touch
+ * StickyNav.tsx and sections/Footer.tsx.
*
* The console (`/alerts`, `/cases`, …) lives in the `(app)` route
* group, which has its own layout.tsx and is unaffected.
@@ -18,7 +48,9 @@ export default function MarketingLayout({ children }: { children: ReactNode }) {
data-theme="dark"
className={`velvet-root relative min-h-screen bg-velvet-surface-base font-velvet-body text-velvet-content-primary ${velvetFontVariables}`}
>
+ <StickyNav />
{children}
+ <Footer />
</div>
);
}
diff --git a/apps/web/src/app/(marketing)/press/page.tsx b/apps/web/src/app/(marketing)/press/page.tsx
index d310bbf59..8c893ed16 100644
--- a/apps/web/src/app/(marketing)/press/page.tsx
+++ b/apps/web/src/app/(marketing)/press/page.tsx
@@ -1,7 +1,5 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
/**
* `/press` — press / media contact and asset directory.
@@ -55,8 +53,6 @@ export default function PressPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-3xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -138,7 +134,6 @@ export default function PressPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/pricing/page.tsx b/apps/web/src/app/(marketing)/pricing/page.tsx
index d1ce41072..bd8a6e4a2 100644
--- a/apps/web/src/app/(marketing)/pricing/page.tsx
+++ b/apps/web/src/app/(marketing)/pricing/page.tsx
@@ -1,8 +1,6 @@
import type { Metadata } from 'next';
import Link from 'next/link';
import { Check } from 'lucide-react';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
import { CONNECTOR_COUNT } from '@/data/connectorCount';
/**
@@ -205,8 +203,6 @@ export default function PricingPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-4xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -253,7 +249,6 @@ export default function PricingPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/privacy/page.tsx b/apps/web/src/app/(marketing)/privacy/page.tsx
index c1ff4ec3e..8d91b8ac5 100644
--- a/apps/web/src/app/(marketing)/privacy/page.tsx
+++ b/apps/web/src/app/(marketing)/privacy/page.tsx
@@ -1,6 +1,4 @@
import type { Metadata } from 'next';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
/**
* `/privacy` — privacy policy.
@@ -68,8 +66,6 @@ export default function PrivacyPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-16">
<div className="mx-auto max-w-3xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -97,7 +93,6 @@ export default function PrivacyPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/sovereign/page.tsx b/apps/web/src/app/(marketing)/sovereign/page.tsx
index cad0b47b2..526a2d0ed 100644
--- a/apps/web/src/app/(marketing)/sovereign/page.tsx
+++ b/apps/web/src/app/(marketing)/sovereign/page.tsx
@@ -1,7 +1,5 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
/**
* `/sovereign` — deployment-flexibility one-pager (T6.3).
@@ -205,8 +203,6 @@ export default function SovereignPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
{/* Hero */}
<section className="px-6 pt-32 pb-16">
<div className="mx-auto max-w-4xl">
@@ -590,7 +586,6 @@ export default function SovereignPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/terms/page.tsx b/apps/web/src/app/(marketing)/terms/page.tsx
index 4b81e7629..4bf0b51aa 100644
--- a/apps/web/src/app/(marketing)/terms/page.tsx
+++ b/apps/web/src/app/(marketing)/terms/page.tsx
@@ -1,6 +1,4 @@
import type { Metadata } from 'next';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
/**
* `/terms` — terms of service.
@@ -72,8 +70,6 @@ export default function TermsPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
<section className="px-6 pt-32 pb-16">
<div className="mx-auto max-w-3xl">
<span className="text-xs font-semibold uppercase tracking-wider text-brand-300">
@@ -101,7 +97,6 @@ export default function TermsPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/(marketing)/waitlist/page.tsx b/apps/web/src/app/(marketing)/waitlist/page.tsx
index 2e56154fe..25b6fc3d7 100644
--- a/apps/web/src/app/(marketing)/waitlist/page.tsx
+++ b/apps/web/src/app/(marketing)/waitlist/page.tsx
@@ -24,17 +24,15 @@
* once they're logged in. Keeping the form tight is one of the few
* conversion levers we have on a B2B-SOC waitlist.
*
- * The visual chrome (LandingNav, dark surface, brand colour, footer)
- * mirrors `/sovereign` so the page feels native to the marketing site
- * without dragging in a separate design system. The Tailwind classes
- * are deliberately the same ones the rest of the marketing site uses
- * so we don't grow the design surface for a single page.
+ * The visual chrome (sticky nav, dark surface, brand colour, footer)
+ * is rendered by `(marketing)/layout.tsx` so this page is content-only
+ * (ISSUE-006 shell unification, 2026-06-29). The Tailwind classes are
+ * deliberately the same ones the rest of the marketing site uses so we
+ * don't grow the design surface for a single page.
*/
import { useMemo, useState } from 'react';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
// ---------------------------------------------------------------------------
// Form schema constants
@@ -163,8 +161,6 @@ export default function WaitlistPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
-
{/* Hero */}
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-3xl">
@@ -369,7 +365,6 @@ export default function WaitlistPage() {
</div>
</section>
- <Footer />
</main>
);
}
diff --git a/apps/web/src/app/benchmark/page.tsx b/apps/web/src/app/benchmark/page.tsx
index 90cd42d85..80e7066d0 100644
--- a/apps/web/src/app/benchmark/page.tsx
+++ b/apps/web/src/app/benchmark/page.tsx
@@ -1,7 +1,11 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
+// Site-wide nav + footer (ISSUE-006 shell unification, 2026-06-29).
+// `/benchmark` lives at the app root rather than inside the
+// (marketing) route group, so it imports the shell directly rather
+// than inheriting from `(marketing)/layout.tsx`.
+import { StickyNav } from '@/components/landing/sections/StickyNav';
+import { Footer } from '@/components/landing/sections/Footer';
import {
BenchmarkResults,
fetchLatestEvalReport,
@@ -65,7 +69,7 @@ export default async function BenchmarkPage() {
return (
<main className="relative min-h-screen overflow-x-hidden bg-surface-base text-white">
- <LandingNav />
+ <StickyNav />
<section className="relative px-6 pt-32 pb-20">
<div className="mx-auto max-w-4xl">
diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsx
index 4d2402e91..accda47b7 100644
--- a/apps/web/src/app/not-found.tsx
+++ b/apps/web/src/app/not-found.tsx
@@ -1,8 +1,8 @@
import type { Metadata } from 'next';
import Link from 'next/link';
import { ArrowRight, Telescope } from 'lucide-react';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
+import { StickyNav } from '@/components/landing/sections/StickyNav';
+import { Footer } from '@/components/landing/sections/Footer';
import { docs } from '@/lib/docs';
/**
@@ -15,10 +15,19 @@ import { docs } from '@/lib/docs';
* wrong signal for someone who landed on a stale `/signup` link or
* mistyped a route.
*
- * Design: keep the same `LandingNav` + `Footer` chrome the rest of the
- * marketing site uses (so the user never feels like they have left the
- * site), and surface a small list of the destinations they were probably
- * looking for — interactive demo, pricing, contact, docs.
+ * Design: keep the same `StickyNav` + `sections/Footer` chrome the rest
+ * of the marketing site uses (so the user never feels like they have
+ * left the site), and surface a small list of the destinations they
+ * were probably looking for — interactive demo, pricing, contact, docs.
+ *
+ * Why the imports are direct (not the (marketing) layout)
+ * --------------------------------------------------------
+ * `not-found.tsx` lives at the app root, not inside the (marketing)
+ * route group, because Next.js renders it for *any* unmatched route
+ * — including ones outside the marketing surface. Route-group layouts
+ * don't cascade across groups, so this page renders the canonical
+ * chrome directly (same pair the landing page and the (marketing)
+ * group use). See ISSUE-006 shell unification (2026-06-29).
*/
export const metadata: Metadata = {
@@ -68,7 +77,7 @@ export default function NotFoundPage() {
data-theme="dark"
className="relative min-h-screen overflow-x-hidden bg-surface-base text-fg-primary"
>
- <LandingNav />
+ <StickyNav />
<section className="px-6 pt-32 pb-12">
<div className="mx-auto max-w-3xl text-center">
diff --git a/apps/web/src/app/why-open-source/page.tsx b/apps/web/src/app/why-open-source/page.tsx
index a5acbe6ca..311ca0d43 100644
--- a/apps/web/src/app/why-open-source/page.tsx
+++ b/apps/web/src/app/why-open-source/page.tsx
@@ -1,7 +1,11 @@
import type { Metadata } from 'next';
import Link from 'next/link';
-import { LandingNav } from '@/components/landing/LandingNav';
-import { Footer } from '@/components/landing/Footer';
+// Site-wide nav + footer (ISSUE-006 shell unification, 2026-06-29).
+// `/why-open-source` lives at the app root rather than inside the
+// (marketing) route group, so it imports the shell directly rather
+// than inheriting from `(marketing)/layout.tsx`.
+import { StickyNav } from '@/components/landing/sections/StickyNav';
+import { Footer } from '@/components/landing/sections/Footer';
import { docs } from '@/lib/docs';
export const metadata: Metadata = {
@@ -108,7 +112,7 @@ const NON_REGULATED_REASONS = [
export default function WhyOpenSourcePage() {
return (
<main className="relative min-h-screen overflow-x-hidden bg-surface-base text-white">
- <LandingNav />
+ <StickyNav />
<section className="relative px-6 pt-32 pb-16">
<div className="mx-auto max-w-3xl">
diff --git a/apps/web/src/components/landing/Footer.tsx b/apps/web/src/components/landing/Footer.tsx
deleted file mode 100644
index 3c95bcce0..000000000
--- a/apps/web/src/components/landing/Footer.tsx
+++ /dev/null
@@ -1,127 +0,0 @@
-import Link from 'next/link';
-import packageJson from '../../../package.json';
-import { docs } from '@/lib/docs';
-import { Logo } from './Logo';
-
-const APP_VERSION = packageJson.version;
-
-const COLUMNS = [
- {
- label: 'Platform',
- links: [
- { label: 'Features', href: '/#features' },
- { label: 'How it works', href: '/#architecture' },
- { label: 'MITRE coverage', href: '/#mitre' },
- { label: 'Sovereign + air-gap', href: '/sovereign' },
- { label: 'Customers', href: '/customers' },
- { label: 'Benchmark', href: '/benchmark' },
- { label: 'Console', href: '/dashboard' },
- ],
- },
- {
- label: 'Open source',
- links: [
- { label: 'Why open source', href: '/why-open-source' },
- { label: 'GitHub', href: 'https://github.com/beenuar/AiSOC' },
- { label: 'Quickstart', href: docs('quickstart') },
- { label: 'Roadmap', href: 'https://github.com/beenuar/AiSOC/blob/main/ROADMAP.md' },
- { label: 'Changelog', href: 'https://github.com/beenuar/AiSOC/blob/main/CHANGELOG.md' },
- ],
- },
- {
- label: 'Community',
- links: [
- { label: 'Issues', href: 'https://github.com/beenuar/AiSOC/issues' },
- { label: 'Discussions', href: 'https://github.com/beenuar/AiSOC/discussions' },
- { label: 'Contributing', href: docs('contributing/guidelines') },
- { label: 'Code of conduct', href: 'https://github.com/beenuar/AiSOC/blob/main/CODE_OF_CONDUCT.md' },
- ],
- },
- {
- label: 'Project',
- links: [
- { label: 'Security policy', href: 'https://github.com/beenuar/AiSOC/blob/main/SECURITY.md' },
- { label: 'License (MIT)', href: 'https://github.com/beenuar/AiSOC/blob/main/LICENSE' },
- { label: 'Releases', href: 'https://github.com/beenuar/AiSOC/releases' },
- ],
- },
-];
-
-export function Footer() {
- return (
- <footer className="relative border-t border-velvet-border bg-velvet-surface-base font-velvet-body text-velvet-content-secondary">
- <div className="mx-auto max-w-7xl px-6 py-16">
- <div className="grid grid-cols-2 gap-10 md:grid-cols-6">
- <div className="col-span-2">
- <Logo size={36} withWordmark />
- <p className="mt-4 max-w-sm text-sm font-light leading-relaxed text-velvet-content-secondary">
- An open-source AI security operations centre, maintained by the
- AiSOC community and released under the MIT licence.
- </p>
- <div className="mt-5 flex gap-3">
- <a
- href="https://github.com/beenuar/AiSOC"
- target="_blank"
- rel="noreferrer"
- aria-label="GitHub"
- className="inline-flex h-9 w-9 items-center justify-center rounded-md border border-velvet-border bg-velvet-surface-raised/60 text-velvet-content-secondary transition hover:border-velvet-border-strong hover:text-velvet-content-primary"
- >
- <svg viewBox="0 0 24 24" className="h-4 w-4" fill="currentColor" aria-hidden="true">
- <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.28-.01-1.02-.02-2-3.2.69-3.88-1.54-3.88-1.54-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.69.08-.69 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.68 1.24 3.34.95.1-.74.4-1.24.73-1.53-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.18a10.9 10.9 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.42-2.7 5.39-5.27 5.68.41.36.78 1.06.78 2.14 0 1.55-.01 2.79-.01 3.17 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z" />
- </svg>
- </a>
- </div>
- </div>
-
- {COLUMNS.map((col) => (
- <div key={col.label}>
- <h4 className="text-xs font-semibold uppercase tracking-wider text-velvet-content-tertiary">
- {col.label}
- </h4>
- <ul className="mt-4 space-y-2.5">
- {col.links.map((link) => {
- const external = link.href.startsWith('http');
- return (
- <li key={link.label}>
- {external ? (
- <a
- href={link.href}
- target="_blank"
- rel="noreferrer"
- className="text-sm text-velvet-content-secondary transition hover:text-velvet-content-primary"
- >
- {link.label}
- </a>
- ) : (
- <Link
- href={link.href}
- className="text-sm text-velvet-content-secondary transition hover:text-velvet-content-primary"
- >
- {link.label}
- </Link>
- )}
- </li>
- );
- })}
- </ul>
- </div>
- ))}
- </div>
-
- <div className="mt-12 flex flex-col items-start justify-between gap-3 border-t border-velvet-border pt-6 text-xs text-velvet-content-tertiary sm:flex-row sm:items-center">
- <div>
- © {new Date().getFullYear()} AiSOC contributors. Released under the MIT License.
- </div>
- <a
- href="https://github.com/beenuar/AiSOC/releases"
- target="_blank"
- rel="noreferrer"
- className="font-mono hover:text-velvet-content-primary"
- >
- v{APP_VERSION}
- </a>
- </div>
- </div>
- </footer>
- );
-}
diff --git a/apps/web/src/components/landing/LandingNav.tsx b/apps/web/src/components/landing/LandingNav.tsx
deleted file mode 100644
index 94d6e91b2..000000000
--- a/apps/web/src/components/landing/LandingNav.tsx
+++ /dev/null
@@ -1,132 +0,0 @@
-'use client';
-
-import Link from 'next/link';
-import { useEffect, useState } from 'react';
-import clsx from 'clsx';
-import { Logo } from './Logo';
-
-const NAV_LINKS = [
- { label: 'Platform', href: '/#features' },
- { label: 'Sovereign', href: '/sovereign' },
- { label: 'Customers', href: '/customers' },
- { label: 'Why open source', href: '/why-open-source' },
- { label: 'Benchmark', href: '/benchmark' },
-];
-
-/**
- * Sticky landing-page navigation. Becomes opaque + bordered on scroll so the
- * hero feels open at the top but content underneath stays readable as you
- * scroll. Mobile collapses links into a sheet to keep the bar uncluttered.
- */
-export function LandingNav() {
- const [scrolled, setScrolled] = useState(false);
- const [open, setOpen] = useState(false);
-
- useEffect(() => {
- const onScroll = () => setScrolled(window.scrollY > 12);
- onScroll();
- window.addEventListener('scroll', onScroll, { passive: true });
- return () => window.removeEventListener('scroll', onScroll);
- }, []);
-
- return (
- <header
- className={clsx(
- 'fixed inset-x-0 top-0 z-40 transition-all',
- scrolled
- ? 'border-b border-velvet-content-primary/5 bg-velvet-surface-base/85 backdrop-blur-md'
- : 'border-b border-transparent bg-transparent',
- )}
- >
- <div className="mx-auto flex h-16 max-w-7xl items-center justify-between px-6">
- <Link href="/" aria-label="AiSOC home" className="flex items-center gap-3">
- <Logo size={32} withWordmark />
- </Link>
-
- <nav className="hidden items-center gap-8 md:flex">
- {NAV_LINKS.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- className="text-sm font-medium text-velvet-content-secondary transition-colors hover:text-velvet-content-primary"
- >
- {link.label}
- </Link>
- ))}
- </nav>
-
- <div className="hidden items-center gap-3 md:flex">
- <a
- href="https://github.com/beenuar/AiSOC"
- target="_blank"
- rel="noreferrer"
- className="inline-flex items-center gap-2 rounded-md border border-velvet-border bg-velvet-surface-raised/60 px-3 py-1.5 text-sm font-medium text-velvet-content-secondary transition hover:border-velvet-border-strong hover:bg-velvet-surface-raised hover:text-velvet-content-primary"
- >
- <svg viewBox="0 0 24 24" className="h-4 w-4" aria-hidden="true" fill="currentColor">
- <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.28-.01-1.02-.02-2-3.2.69-3.88-1.54-3.88-1.54-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.69.08-.69 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.68 1.24 3.34.95.1-.74.4-1.24.73-1.53-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.18a10.9 10.9 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.42-2.7 5.39-5.27 5.68.41.36.78 1.06.78 2.14 0 1.55-.01 2.79-.01 3.17 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z" />
- </svg>
- GitHub
- </a>
- <Link
- href="/dashboard"
- className="inline-flex items-center gap-2 rounded-md bg-velvet-emerald-cta px-4 py-1.5 text-sm font-semibold text-velvet-content-primary transition hover:brightness-110 motion-safe:hover:shadow-glow-emerald-sm"
- >
- Launch console
- <svg viewBox="0 0 20 20" className="h-3.5 w-3.5" fill="currentColor" aria-hidden="true">
- <path d="M7.05 4.05a1 1 0 011.41 0l5 5a1 1 0 010 1.41l-5 5a1 1 0 11-1.41-1.41L11.09 10 7.05 5.46a1 1 0 010-1.41z" />
- </svg>
- </Link>
- </div>
-
- <button
- type="button"
- onClick={() => setOpen((v) => !v)}
- className="md:hidden inline-flex h-9 w-9 items-center justify-center rounded-md border border-velvet-border bg-velvet-surface-raised/60 text-velvet-content-secondary hover:border-velvet-border-strong"
- aria-expanded={open}
- aria-label="Toggle menu"
- >
- <svg viewBox="0 0 20 20" className="h-5 w-5" fill="currentColor" aria-hidden="true">
- {open ? (
- <path d="M6.28 5.22a.75.75 0 011.06 0L10 7.88l2.66-2.66a.75.75 0 111.06 1.06L11.06 8.94l2.66 2.66a.75.75 0 11-1.06 1.06L10 10l-2.66 2.66a.75.75 0 11-1.06-1.06l2.66-2.66-2.66-2.66a.75.75 0 010-1.06z" />
- ) : (
- <path d="M3 5.5A.5.5 0 013.5 5h13a.5.5 0 010 1h-13a.5.5 0 01-.5-.5zM3 10a.5.5 0 01.5-.5h13a.5.5 0 010 1h-13A.5.5 0 013 10zm.5 4a.5.5 0 000 1h13a.5.5 0 000-1h-13z" />
- )}
- </svg>
- </button>
- </div>
-
- {open && (
- <div className="border-t border-velvet-content-primary/5 bg-velvet-surface-base/95 backdrop-blur-md md:hidden">
- <div className="space-y-1 px-4 py-3">
- {NAV_LINKS.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- onClick={() => setOpen(false)}
- className="block rounded-md px-3 py-2 text-sm text-velvet-content-secondary hover:bg-velvet-surface-raised hover:text-velvet-content-primary"
- >
- {link.label}
- </Link>
- ))}
- <div className="flex gap-2 pt-2">
- <a
- href="https://github.com/beenuar/AiSOC"
- target="_blank"
- rel="noreferrer"
- className="flex-1 rounded-md border border-velvet-border bg-velvet-surface-raised/60 px-3 py-2 text-center text-sm font-medium text-velvet-content-secondary"
- >
- GitHub
- </a>
- <Link
- href="/dashboard"
- className="flex-1 rounded-md bg-velvet-emerald-cta px-3 py-2 text-center text-sm font-semibold text-velvet-content-primary"
- >
- Launch
- </Link>
- </div>
- </div>
- </div>
- )}
- </header>
- );
-}
diff --git a/apps/web/src/components/landing/sections/StickyNav.tsx b/apps/web/src/components/landing/sections/StickyNav.tsx
index 8276f5d93..6b5f5fa02 100644
--- a/apps/web/src/components/landing/sections/StickyNav.tsx
+++ b/apps/web/src/components/landing/sections/StickyNav.tsx
@@ -1,12 +1,24 @@
'use client';
/**
- * Sticky marketing nav for the T6.5 landing page (`apps/web/src/app/page.tsx`).
+ * Sticky marketing nav — canonical site-wide marketing chrome.
*
- * The existing console nav (`landing/LandingNav.tsx`) is left in place because
- * it's still imported from `/sovereign`, `/blog`, `/customers`, etc. — this
- * file is the dedicated chrome for the GTM landing page only and is scoped
- * to `landing/sections/` so it cannot collide.
+ * Originally written for the T6.5 landing page only, this component is now
+ * the single nav used by the landing page (`apps/web/src/app/page.tsx`),
+ * every page in the `(marketing)` route group, and every standalone
+ * marketing surface (e.g. `/benchmark`, `/why-open-source`, the branded
+ * `not-found`). The older `LandingNav` was deleted as part of the
+ * ISSUE-006 (Phases 6+) shell unification — the two had diverged into
+ * subtly different link sets and footer pairings, and visitors saw the
+ * chrome shift every time they crossed a route boundary.
+ *
+ * Cross-page link rule
+ * --------------------
+ * Hrefs MUST be absolute (`/#solution`, not `#solution`). Hash-only
+ * anchors used to work because StickyNav lived only on `/`, but the
+ * unified nav now renders on subpages too. From `/about`, a bare
+ * `#solution` would scroll to a non-existent local anchor; the
+ * leading `/` makes Next.js navigate to the landing page first.
*
* Behaviour matches `docs/design/landing-page-brief.md` §6.1:
* - transparent at the very top of the page
@@ -22,12 +34,17 @@ import { GithubMark } from './icons';
import { docs } from '@/lib/docs';
import { cn } from '@/lib/utils';
+// All hrefs are absolute (`/#section` or `/page`) so the nav works on
+// every route. `Benchmark` and `Pricing` point at the real standalone
+// pages where they exist; `Product` / `Solutions` / `Connectors` still
+// anchor into the landing-page sections because those have no
+// dedicated page yet.
const NAV_LINKS: ReadonlyArray<{ label: string; href: string }> = [
- { label: 'Product', href: '#solution' },
- { label: 'Solutions', href: '#pillars' },
- { label: 'Connectors', href: '#connectors' },
- { label: 'Benchmark', href: '#benchmark' },
- { label: 'Pricing', href: '#pricing' },
+ { label: 'Product', href: '/#solution' },
+ { label: 'Solutions', href: '/#pillars' },
+ { label: 'Connectors', href: '/#connectors' },
+ { label: 'Benchmark', href: '/benchmark' },
+ { label: 'Pricing', href: '/pricing' },
{ label: 'Docs', href: docs('intro') },
];
@@ -104,7 +121,7 @@ export function StickyNav() {
<span aria-hidden="true">Star on GitHub</span>
</a>
<Link
- href="#pricing"
+ href="/pricing"
className="rounded-md px-3 py-1.5 text-sm font-medium text-velvet-content-secondary transition-colors duration-150 ease-landing-out-quart hover:text-velvet-content-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-velvet-emerald-mint focus-visible:ring-offset-2 focus-visible:ring-offset-velvet-surface-base"
>
Self-host