{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-06",
  "title": "Before/After Hero",
  "author": "VenusUI",
  "description": "A split hero with a draggable before/after comparison of your product's effect.",
  "registryDependencies": [
    "button",
    "https://venusui.com/r/image-compare.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/hero-06/components/hero-06.tsx",
      "content": "import { Button } from \"@/components/ui/button\"\nimport { ImageCompare } from \"@/registry/default/ui/image-compare\"\n\nfunction Placeholder({ variant }: { variant: \"before\" | \"after\" }) {\n  const after = variant === \"after\"\n  return (\n    <div className={after ? \"size-full bg-card p-5\" : \"size-full bg-muted p-5\"} aria-hidden=\"true\">\n      <div className={after ? \"h-3 w-28 rounded bg-foreground/70\" : \"h-3 w-28 rounded bg-foreground/20\"} />\n      <div className=\"mt-4 grid grid-cols-3 gap-3\">\n        {[0, 1, 2, 3, 4, 5].map((i) => (\n          <div key={i} className={after ? \"h-14 rounded-lg border bg-background shadow-xs\" : \"h-14 rounded-sm bg-foreground/10\"} />\n        ))}\n      </div>\n    </div>\n  )\n}\n\n/**\n * Hero with a before/after slider that shows your product's effect.\n * Swap the placeholders for two real screenshots of the same size.\n */\nexport function Hero06() {\n  return (\n    <section className=\"border-b bg-background\">\n      <div className=\"mx-auto grid max-w-6xl items-center gap-12 px-4 py-20 sm:px-6 lg:grid-cols-[1fr_1.2fr] lg:py-28\">\n        <div>\n          <h1 className=\"text-4xl font-semibold tracking-tight text-balance sm:text-5xl\">Same app. Better product.</h1>\n          <p className=\"mt-5 max-w-md text-base text-pretty text-muted-foreground sm:text-lg\">\n            Drag the divider to see the difference. Describe the change your product makes in one sentence.\n          </p>\n          <div className=\"mt-8 flex flex-col gap-3 sm:flex-row\">\n            <Button size=\"lg\" className=\"h-10 px-5\">\n              Try it free\n            </Button>\n            <Button size=\"lg\" variant=\"outline\" className=\"h-10 px-5\">\n              See case studies\n            </Button>\n          </div>\n        </div>\n        <ImageCompare\n          beforeLabel=\"Before\"\n          afterLabel=\"After\"\n          defaultPosition={45}\n          before={<Placeholder variant=\"before\" />}\n          after={<Placeholder variant=\"after\" />}\n        />\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "hero"
  ],
  "type": "registry:block"
}