{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-10",
  "type": "registry:block",
  "description": "Before and after renovation comparison slider beside a selectable project list.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/gallery/gallery-10.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  MoveHorizontal,\n} from \"@designali/icons\"\n\nconst projects = [\n  {\n    name: \"Dalim Agency to Designali\",\n    note: \"Rebuilt the agency site with a new brand identity, Next.js and Tailwind CSS.\",\n    before: 'url(\"/images/templates/dalim-agency-old.jpg\") center / cover',\n    after: 'url(\"/images/templates/design-agency.jpg\") center / cover',\n  },\n  {\n    name: \"Ali Imam portfolio\",\n    note: \"Refreshed the personal portfolio with a cleaner layout and production-ready components.\",\n    before: 'url(\"/images/templates/aliimam-old.jpg\") center / cover',\n    after: 'url(\"/images/templates/aliimam-comp.jpg\") center / cover',\n  },\n  {\n    name: \"Dalim UI to Designali Blocks\",\n    note: \"Evolved the Dalim UI kit into 460+ Designali blocks with semantic design tokens.\",\n    before: 'url(\"/images/templates/dalim-ui-old.jpg\") center / cover',\n    after: 'url(\"/img/dashboard-1-light.jpg\") center / cover',\n  },\n]\n\nexport default function Gallery10() {\n  const [active, setActive] = useState(0)\n  const [pos, setPos] = useState(50)\n  const project = projects[active]!\n\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto grid max-w-7xl gap-10 px-6 lg:grid-cols-[1fr_2fr] lg:items-center\">\n        <div>\n          <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n            Before / After\n          </p>\n          <h2 className=\"mt-3 text-3xl font-semibold tracking-tight md:text-4xl\">\n            Redesigns by Designali\n          </h2>\n          <p className=\"mt-4 text-muted-foreground\">\n            Drag the handle to compare. Earlier Dalim projects by Ali Imam,\n            redesigned and rebuilt at Designali.\n          </p>\n          <div className=\"mt-8 divide-y divide-border border-y border-border\">\n            {projects.map((p, i) => (\n              <button\n                key={p.name}\n                type=\"button\"\n                onClick={() => {\n                  setActive(i)\n                  setPos(50)\n                }}\n                className={`block w-full py-4 text-left transition-colors ${i === active ? \"text-foreground\" : \"text-muted-foreground hover:text-foreground\"}`}\n              >\n                <span className=\"flex items-center gap-3 font-medium\">\n                  <span className=\"font-sans text-xs\">0{i + 1}</span>\n                  {p.name}\n                </span>\n                {i === active && (\n                  <span className=\"mt-2 block pl-8 text-sm text-muted-foreground\">\n                    {p.note}\n                  </span>\n                )}\n              </button>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"relative aspect-[4/3] w-full overflow-hidden border border-border select-none\">\n          <div className=\"absolute inset-0\" style={{ background: project.after }} />\n          <div\n            className=\"absolute inset-0\"\n            style={{ background: project.before, clipPath: `inset(0 ${100 - pos}% 0 0)` }}\n          />\n          <span className=\"absolute top-4 left-4 bg-background/85 px-2 py-1 text-xs font-medium backdrop-blur\">\n            Before\n          </span>\n          <span className=\"absolute top-4 right-4 bg-background/85 px-2 py-1 text-xs font-medium backdrop-blur\">\n            After\n          </span>\n          <div\n            className=\"pointer-events-none absolute inset-y-0 w-px bg-white\"\n            style={{ left: `${pos}%` }}\n          >\n            <span className=\"absolute top-1/2 left-1/2 flex size-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center border border-white bg-black/60 text-white\">\n              <MoveHorizontal className=\"size-4\" />\n            </span>\n          </div>\n          <input\n            type=\"range\"\n            min={0}\n            max={100}\n            value={pos}\n            onChange={(e) => setPos(Number(e.target.value))}\n            aria-label=\"Comparison position\"\n            className=\"absolute inset-0 h-full w-full cursor-ew-resize opacity-0\"\n          />\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "gallery"
  ]
}