Files
sofa/app/not-found.tsx
T
jake 271069cc0c Replace server actions with API routes and add SWR data-fetching hooks
- Convert discover, stats, status, and system-health server actions to
  proper API route handlers under `app/api/`; delete `lib/actions/explore.ts`,
  `lib/actions/settings.ts`, and `lib/actions/setup.ts`
- Add `use-discover`, `use-stats`, and `use-system-health` SWR hooks
  that call the new routes; update `command-palette`, `title-card`,
  `update-toast`, and `stats-display` to consume them
- Lift auth centering wrapper from individual login/register pages into
  `(auth)/layout.tsx`; switch both pages from `auth.api.getSession` to
  the cached `getSession()` helper
- Relocate setup wizard from `app/(auth)/setup/` to `app/setup/` (outside
  auth group) with dedicated `copy-button` and `refresh-button` client
  components
- Move `not-found.tsx` and `error.tsx` to app root so they apply
  globally instead of only within the pages route group
2026-03-08 19:09:21 -04:00

58 lines
2.3 KiB
TypeScript

import Link from "next/link";
import { SofaLogo } from "@/components/sofa-logo";
export default function NotFound() {
return (
<div className="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-6">
{/* Warm projector glow */}
<div className="pointer-events-none absolute top-[40%] left-1/2 h-[500px] w-[500px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/4 blur-[160px]" />
<div className="relative z-10 flex flex-col items-center text-center">
{/* Large ghosted 404 */}
<h1
className="animate-stagger-item font-display text-[8rem] text-foreground/[0.06] leading-[0.85] tracking-tight sm:text-[11rem] md:text-[14rem]"
style={{ "--stagger-index": 0 } as React.CSSProperties}
>
404
</h1>
{/* Message */}
<div
className="animate-stagger-item space-y-3"
style={{ "--stagger-index": 1 } as React.CSSProperties}
>
<h2 className="font-display text-2xl tracking-tight sm:text-3xl">
Scene not found
</h2>
<p className="mx-auto max-w-sm text-muted-foreground text-sm leading-relaxed">
This page was left on the cutting room floor. It may have been
moved, removed, or never made it past the screenplay.
</p>
</div>
{/* Actions */}
<div
className="mt-8 flex animate-stagger-item items-center gap-3"
style={{ "--stagger-index": 2 } as React.CSSProperties}
>
<Link
href="/"
className="group relative inline-flex h-10 items-center justify-center overflow-hidden rounded-lg bg-primary px-6 font-medium text-primary-foreground text-sm transition-shadow hover:shadow-lg hover:shadow-primary/20"
>
<span className="relative z-10">Return home</span>
<div className="absolute inset-0 bg-gradient-to-t from-black/10 to-transparent opacity-0 transition-opacity group-hover:opacity-100" />
</Link>
</div>
{/* Logo watermark */}
<div
className="mt-16 animate-stagger-item text-muted-foreground/20"
style={{ "--stagger-index": 3 } as React.CSSProperties}
>
<SofaLogo className="size-8" />
</div>
</div>
</div>
);
}