{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "paint-reveal-work-demo",
  "type": "registry:block",
  "title": "Paint Reveal: Work Grid",
  "description": "Hover Image Reveal example, Work Grid: A portfolio grid in grayscale, with a smaller brush on each card. Only the card under the pointer draws anything, and `autoPlay={false}` keeps the grid still on phones. A take on the image reveal (hover reveal). Fits hero, portfolio and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "portfolio",
    "team",
    "image-reveal",
    "before-and-after",
    "image",
    "hover",
    "canvas"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/paint-reveal#paint-reveal-work-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/paint-reveal.json"
  ],
  "files": [
    {
      "path": "components/paint-reveal-work-demo.tsx",
      "type": "registry:component",
      "content": "import { PaintReveal } from \"@/components/ui/paint-reveal\";\n\nconst projects = [\n  { client: \"Nordlys\", kind: \"Holiday homes\", year: 2026, photo: \"1600607687939-ce8a6c25118c\" },\n  { client: \"Atelier Sund\", kind: \"Brand identity\", year: 2025, photo: \"1515886657613-9f3515b0c78f\" },\n  { client: \"Kvarter\", kind: \"Office fit-out\", year: 2025, photo: \"1524758631624-e2822e304c36\" },\n  { client: \"Fjell\", kind: \"Campaign\", year: 2024, photo: \"1506905925346-21bda4d32df4\" },\n];\n\nconst photo = (id: string, grade = \"\") =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=900&h=675&q=80${grade}`;\n\nexport function PaintRevealWorkDemo() {\n  return (\n    <section className=\"w-full max-w-4xl\">\n      <div className=\"mb-6 flex items-end justify-between gap-6\">\n        <h2 className=\"text-2xl font-semibold tracking-tight text-zinc-900 sm:text-3xl dark:text-zinc-50\">\n          Selected work\n        </h2>\n        <a href=\"#\" className=\"text-sm text-zinc-500 transition-colors hover:text-zinc-900 dark:hover:text-zinc-100\">\n          All projects →\n        </a>\n      </div>\n      <ul className=\"grid gap-x-5 gap-y-8 sm:grid-cols-2\">\n        {projects.map((project) => (\n          <li key={project.client}>\n            <a href=\"#\" className=\"group block\">\n              <PaintReveal\n                src={photo(project.photo, \"&sat=-100&con=6\")}\n                alt={`${project.client}: ${project.kind}`}\n                revealSrc={photo(project.photo)}\n                brushSize={130}\n                softness={0.6}\n                fadeMs={700}\n                autoPlay={false}\n                className=\"aspect-[4/3] w-full rounded-lg\"\n              />\n              <div className=\"mt-3 flex items-baseline justify-between gap-4 text-sm\">\n                <span className=\"font-medium text-zinc-900 dark:text-zinc-100\">{project.client}</span>\n                <span className=\"text-zinc-500 tabular-nums\">\n                  {project.kind} · {project.year}\n                </span>\n              </div>\n            </a>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    }
  ]
}