{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "slide-puzzle-404-demo",
  "type": "registry:block",
  "title": "Slide Puzzle: Not Found",
  "description": "Sliding Tile Background example, Not Found: A docs 404 where the numbered tiles are buttons: press one, or use the arrow keys, and it slides into a free slot. A take on the animated background (backdrop). Fits integrations, CTA, team, 404 page and hero sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "integrations",
    "cta",
    "team",
    "404-page",
    "hero",
    "animated-background",
    "background",
    "interaction",
    "landing"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/slide-puzzle#slide-puzzle-404-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/slide-puzzle.json"
  ],
  "files": [
    {
      "path": "components/slide-puzzle-404-demo.tsx",
      "type": "registry:component",
      "content": "import * as React from \"react\";\n\nimport { SlidePuzzle, type SlidePuzzleTile } from \"@/components/ui/slide-puzzle\";\n\n// Tinta's docs 404: numbered tiles you can slide about while you're here. No links, so every tile is a button.\nconst COLORS = [\"#ff5a1f\", \"#2563eb\", \"#10b981\", \"#7c3aed\", \"#f43f5e\", \"#f59e0b\", \"#0ea5e9\", \"#ef4444\", \"#65a30d\"];\n\nconst TILES: SlidePuzzleTile[] = COLORS.map((color, i) => ({\n  id: `tile-${i + 1}`,\n  label: `Tile ${i + 1}`,\n  icon: (\n    <span\n      className=\"flex size-full items-center justify-center text-lg font-semibold tabular-nums text-white\"\n      style={{ backgroundColor: color }}\n    >\n      {i + 1}\n    </span>\n  ),\n}));\n\nexport function SlidePuzzleNotFoundDemo() {\n  return (\n    <section className=\"w-full max-w-5xl overflow-hidden rounded-3xl border border-zinc-950/[0.06] bg-white text-zinc-950 dark:border-white/10 dark:bg-zinc-950 dark:text-white\">\n      <SlidePuzzle tiles={TILES} drift={false} seed={12}>\n        <div className=\"flex max-w-sm flex-col items-center text-center\">\n          <p className=\"font-mono text-xs font-medium text-zinc-400\">Error 404</p>\n          <h2 className=\"mt-3 text-balance text-3xl font-medium tracking-[-0.03em] sm:text-4xl\">\n            This page slid out of place.\n          </h2>\n          <p className=\"mt-3 text-pretty text-[15px] leading-relaxed text-zinc-500 dark:text-zinc-400\">\n            The link points at an empty slot. Push a few tiles around while you&apos;re here, or head back to the docs.\n          </p>\n          <div className=\"mt-6 flex flex-wrap items-center justify-center gap-2\">\n            <a\n              href=\"#home\"\n              className=\"inline-flex h-9 items-center gap-1 rounded-full bg-[#ff5a1f] px-4 text-sm font-medium text-white shadow-[inset_0_1px_0_rgb(255_255_255/0.25)] transition-colors hover:bg-[#f04d12] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#ff5a1f]\"\n            >\n              <svg viewBox=\"0 0 16 16\" className=\"size-3.5\" aria-hidden>\n                <path d=\"M10 4 6 8l4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n              Back home\n            </a>\n            <a\n              href=\"#search\"\n              className=\"inline-flex h-9 items-center rounded-full border border-zinc-950/10 bg-white px-4 text-sm font-medium transition-colors hover:bg-zinc-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#ff5a1f] dark:border-white/10 dark:bg-zinc-900 dark:hover:bg-zinc-800\"\n            >\n              Search the docs\n            </a>\n          </div>\n        </div>\n      </SlidePuzzle>\n    </section>\n  );\n}\n"
    }
  ]
}