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.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(qa): ISSUE-004 — branded not-found.tsx (dark theme, nav, back-home)
Beenu Arora701a555bf2e5
diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsxnew file mode 100644index 000000000..4d2402e91--- /dev/null+++ b/apps/web/src/app/not-found.tsx@@ -0,0 +1,140 @@+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 { docs } from '@/lib/docs';++/**+ * Global 404 fallback.+ *+ * Before this page landed, Next.js shipped its default `not-found.tsx`+ * which is a bare white `404 | This page could not be found.` with no+ * navigation, no AiSOC branding, and no link home. On a dark-themed+ * marketing site it reads as "you have left tryaisoc.com" — exactly the+ * 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.+ */++export const metadata: Metadata = {+ title: '404 — page not found · AiSOC',+ description:+ 'That URL is not part of the AiSOC marketing site. Jump back to the homepage, open the interactive demo, or pick one of the popular destinations below.',+ // Tell crawlers we know this is a 404 surface; do not let them index it.+ robots: { index: false, follow: false },+};++interface Destination {+ label: string;+ href: string;+ blurb: string;+ external?: boolean;+}++const DESTINATIONS: ReadonlyArray<Destination> = [+ {+ label: 'Open the live dashboard',+ href: '/dashboard',+ blurb:+ 'Anonymous, pre-seeded investigation. No signup. Demo data resets daily at 00:00 UTC.',+ },+ {+ label: 'See pricing',+ href: '/pricing',+ blurb: 'Free to self-host. Pay only when we host.',+ },+ {+ label: 'Read the docs',+ href: docs('intro'),+ blurb: 'Architecture, agent contract, deployment recipes, connector SDK.',+ external: true,+ },+ {+ label: 'Contact the team',+ href: '/contact',+ blurb:+ 'Sovereign deployments, design-partner conversations, security disclosures.',+ },+];++export default function NotFoundPage() {+ return (+ <main+ 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 text-center">+ <span className="inline-flex items-center gap-2 rounded-full border border-brand-500/30 bg-brand-500/10 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-brand-300">+ <Telescope className="h-3.5 w-3.5" aria-hidden="true" />+ 404 · page not found+ </span>+ <h1 className="mt-6 text-4xl font-bold tracking-tight text-white md:text-5xl">+ We do not have a page at that URL.+ </h1>+ <p className="mt-5 text-lg leading-relaxed text-gray-400">+ This usually means a link is out of date, a route was retired,+ or the URL has a typo. AiSOC is still live — pick one of the+ destinations below, or jump back to the homepage.+ </p>+ <div className="mt-8 flex flex-wrap items-center justify-center gap-3">+ <Link+ href="/"+ className="inline-flex h-11 items-center gap-2 rounded-md bg-brand-500 px-5 text-sm font-semibold text-white shadow-[0_1px_0_rgba(255,255,255,0.18)_inset] transition-colors hover:bg-brand-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base"+ >+ Back to home+ <ArrowRight className="h-3.5 w-3.5" aria-hidden="true" />+ </Link>+ <Link+ href="/dashboard"+ className="inline-flex h-11 items-center gap-2 rounded-md border border-white/15 bg-white/[0.02] px-5 text-sm font-semibold text-white transition-colors hover:bg-white/[0.06] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base"+ >+ Open the live dashboard+ </Link>+ </div>+ </div>+ </section>++ <section className="px-6 pb-24">+ <div className="mx-auto max-w-3xl">+ <h2 className="text-xs font-semibold uppercase tracking-wider text-gray-500">+ Popular destinations+ </h2>+ <ul className="mt-4 grid gap-3 sm:grid-cols-2">+ {DESTINATIONS.map((dest) => {+ const external = dest.external ?? false;+ return (+ <li key={dest.href}>+ <Link+ href={dest.href}+ rel={external ? 'noreferrer' : undefined}+ target={external ? '_blank' : undefined}+ className="group flex h-full flex-col gap-1.5 rounded-xl border border-white/10 bg-white/[0.02] p-4 transition-colors hover:border-brand-500/40 hover:bg-white/[0.04] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base"+ >+ <span className="flex items-center gap-2 text-sm font-semibold text-white">+ {dest.label}+ <ArrowRight+ className="h-3.5 w-3.5 text-brand-300 transition-transform group-hover:translate-x-0.5"+ aria-hidden="true"+ />+ </span>+ <span className="text-sm text-gray-400">{dest.blurb}</span>+ </Link>+ </li>+ );+ })}+ </ul>+ </div>+ </section>++ <Footer />+ </main>+ );+}