{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "paint-reveal-demo",
  "type": "registry:block",
  "title": "Paint Reveal: Studio Hero",
  "description": "Hover Image Reveal example, Studio Hero: A brand studio's header over ink in water. The ink waits in black and white; moving through it paints the color in, and the stroke closes back over about half a second. On a phone the brush drifts by itself. The nav links stay clickable over the picture. 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-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/paint-reveal.json"
  ],
  "files": [
    {
      "path": "components/paint-reveal-demo.tsx",
      "type": "registry:component",
      "content": "import { PaintReveal } from \"@/components/ui/paint-reveal\";\n\n// One photo at several widths, cropped to the same 16:10 at each so the two\n// pictures still line up, and the browser fetches the smallest that's sharp.\nconst WIDTHS = [640, 960, 1280, 1600, 2000];\n\nconst ink = (width: number, grade = \"\") =>\n  `https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=${width}&h=${width * 0.625}&q=80${grade}`;\n\nconst inkSet = (grade = \"\") => WIDTHS.map((width) => `${ink(width, grade)} ${width}w`).join(\", \");\n\nconst GRAY = \"&sat=-100&con=10\";\n\nexport function PaintRevealDemo() {\n  return (\n    <PaintReveal\n      src={ink(1280, GRAY)}\n      srcSet={inkSet(GRAY)}\n      alt=\"Clouds of ink drifting through water, in black and white\"\n      revealSrc={ink(1280)}\n      revealSrcSet={inkSet()}\n      revealAlt=\"The same ink clouds in red, orange and electric blue\"\n      // The frame's width: up to 60rem here. Match it to where yours sits.\n      sizes=\"(min-width: 1024px) 60rem, 100vw\"\n      loading=\"lazy\"\n      className=\"h-[var(--demo-height,34rem)] w-full rounded-xl border border-zinc-200 bg-black text-white dark:border-zinc-800\"\n    >\n      <div className=\"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/75 via-transparent to-black/40\" />\n      <div className=\"relative flex h-full flex-col justify-between p-6 sm:p-10\">\n        <header className=\"flex items-center justify-between text-sm\">\n          <a href=\"#\" className=\"font-semibold tracking-tight\">\n            Tinta\n          </a>\n          <nav className=\"flex gap-5 text-white/70 sm:gap-7\">\n            <a href=\"#\" className=\"transition-colors hover:text-white\">\n              Work\n            </a>\n            <a href=\"#\" className=\"hidden transition-colors hover:text-white sm:inline\">\n              Studio\n            </a>\n            <a href=\"#\" className=\"transition-colors hover:text-white\">\n              Contact\n            </a>\n          </nav>\n        </header>\n        <div className=\"max-w-xl\">\n          <p className=\"font-mono text-xs tracking-widest text-white/60 uppercase\">\n            Brand &amp; motion studio · Lisbon\n          </p>\n          <h1 className=\"mt-3 text-4xl font-semibold tracking-tight text-balance sm:text-6xl\">\n            Color that stays with you.\n          </h1>\n          <p className=\"mt-4 max-w-sm text-pretty text-white/70\">\n            Identities, campaigns and the motion between them, for brands that want to be remembered.\n          </p>\n        </div>\n      </div>\n    </PaintReveal>\n  );\n}\n"
    }
  ]
}