{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dithering-404",
  "title": "Dithering 404",
  "description": "A full-screen not found page with a dithered vortex behind a lost message.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/shaders/dithering-404/dithering-404.tsx",
      "content": "import { Dithering, type DitheringProps } from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\ntype Dithering404Props = React.ComponentProps<\"section\"> & {\n  code?: string\n  title?: string\n  description?: string\n  primaryAction?: { label: string; href: string }\n  secondaryAction?: { label: string; href: string }\n  colorBack?: string\n  colorFront?: string\n  shape?: DitheringProps[\"shape\"]\n}\n\nfunction Dithering404({\n  code = \"404\",\n  title = \"Lost in the noise\",\n  description = \"The page you're looking for drifted off somewhere. It may have moved, or it never existed at all.\",\n  primaryAction = { label: \"Take me home\", href: \"/\" },\n  secondaryAction = { label: \"Contact support\", href: \"#\" },\n  colorBack = \"#000000\",\n  colorFront = \"#a3e635\",\n  shape = \"swirl\",\n  className,\n  style,\n  ...props\n}: Dithering404Props) {\n  return (\n    <section\n      data-slot=\"dithering-404\"\n      className={cn(\n        \"dark relative isolate flex min-h-svh w-full flex-col items-center justify-center overflow-hidden px-6 py-40 text-center text-white\",\n        className\n      )}\n      style={{ backgroundColor: colorBack, ...style }}\n      {...props}\n    >\n      <Dithering\n        aria-hidden\n        className=\"absolute inset-0 -z-10 size-full\"\n        colorBack={colorBack}\n        colorFront={colorFront}\n        shape={shape}\n        type=\"8x8\"\n        size={3}\n        scale={1.2}\n        speed={0.4}\n      />\n      {/* Darkens the middle of the swirl so the message stays readable. */}\n      <div\n        aria-hidden\n        className=\"absolute inset-0 -z-10\"\n        style={{\n          background: `radial-gradient(closest-side, ${colorBack} 25%, transparent)`,\n        }}\n      />\n      <div className=\"flex max-w-xl flex-col items-center gap-6\">\n        <span\n          className=\"font-mono text-[11px] tracking-widest uppercase\"\n          style={{ color: colorFront }}\n        >\n          Error {code}\n        </span>\n        <h1 className=\"font-heading text-[clamp(6rem,20vw,12rem)] leading-none tracking-tighter\">\n          {code}\n        </h1>\n        <h2 className=\"font-heading text-3xl tracking-tight text-balance sm:text-4xl\">\n          {title}\n        </h2>\n        <p className=\"max-w-md text-base text-pretty text-white/70\">\n          {description}\n        </p>\n        <div className=\"flex flex-wrap items-center justify-center gap-3\">\n          <a\n            href={primaryAction.href}\n            className={cn(\n              buttonVariants({ size: \"lg\" }),\n              \"bg-white text-black hover:bg-white/80\"\n            )}\n          >\n            {primaryAction.label}\n          </a>\n          <a\n            href={secondaryAction.href}\n            className={buttonVariants({ size: \"lg\", variant: \"outline\" })}\n          >\n            {secondaryAction.label}\n          </a>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { Dithering404 }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "404"
  ],
  "type": "registry:block"
}