{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-08",
  "type": "registry:block",
  "description": "Horizontal scroll-snap strip of portrait frames with numbered counters and arrow navigation.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/gallery/gallery-08.tsx",
      "content": "\"use client\"\n\nimport { useRef } from \"react\"\nimport {\n  ArrowLeft,\n  ArrowRight,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\n\nconst frames = [\n  {\n    title: \"Designali Agency\",\n    place: \"Brand and website\",\n    year: \"2025\",\n    gradient: 'url(\"/images/templates/design-agency.jpg\") center / cover',\n  },\n  {\n    title: \"Portfolio Simple\",\n    place: \"Next.js template\",\n    year: \"2025\",\n    gradient: 'url(\"/images/templates/portfolio-simple.jpg\") center / cover',\n  },\n  {\n    title: \"Ali Imam\",\n    place: \"Personal site\",\n    year: \"2024\",\n    gradient: 'url(\"/images/templates/aliimam-comp.jpg\") center / cover',\n  },\n  {\n    title: \"Dalim Agency\",\n    place: \"Agency website\",\n    year: \"2024\",\n    gradient: 'url(\"/images/templates/dalim-agency-old.jpg\") center / cover',\n  },\n  {\n    title: \"Dalim Visuals\",\n    place: \"CGI and motion\",\n    year: \"2023\",\n    gradient: 'url(\"/images/templates/dalim-visuals-old.jpg\") center / cover',\n  },\n  {\n    title: \"Dalim Graphic\",\n    place: \"Graphic design\",\n    year: \"2023\",\n    gradient: 'url(\"/images/templates/dalim-graphic-old.jpg\") center / cover',\n  },\n]\n\nexport default function Gallery08() {\n  const track = useRef<HTMLDivElement>(null)\n  const scroll = (dir: number) => {\n    const el = track.current\n    if (!el) return\n    el.scrollBy({ left: dir * el.clientWidth * 0.8, behavior: \"smooth\" })\n  }\n\n  return (\n    <section className=\"w-full overflow-hidden bg-background py-20\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-6\">\n          <div>\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n              Designali work\n            </p>\n            <h2 className=\"mt-3 text-3xl font-semibold tracking-tight md:text-4xl\">\n              Projects designed and built by Ali Imam\n            </h2>\n          </div>\n          <div className=\"flex gap-2\">\n            <Button\n              variant=\"outline\"\n              size=\"icon-lg\"\n              aria-label=\"Previous\"\n              onClick={() => scroll(-1)}\n            >\n              <ArrowLeft />\n            </Button>\n            <Button\n              variant=\"outline\"\n              size=\"icon-lg\"\n              aria-label=\"Next\"\n              onClick={() => scroll(1)}\n            >\n              <ArrowRight />\n            </Button>\n          </div>\n        </div>\n        <div\n          ref={track}\n          className=\"-mx-6 mt-10 flex snap-x snap-mandatory gap-4 overflow-x-auto scroll-px-6 px-6 pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n        >\n          {frames.map((frame, i) => (\n            <figure\n              key={frame.title}\n              className=\"group w-[78%] shrink-0 snap-start sm:w-[45%] lg:w-[30%]\"\n            >\n              <div className=\"relative aspect-[3/4] overflow-hidden border border-border\">\n                <div\n                  className=\"absolute inset-0 transition-transform duration-700 group-hover:scale-105\"\n                  style={{ background: frame.gradient }}\n                />\n                <span className=\"absolute top-4 left-4 bg-background/85 px-2 py-1 font-sans text-[11px] tabular-nums backdrop-blur\">\n                  {String(i + 1).padStart(2, \"0\")} / {String(frames.length).padStart(2, \"0\")}\n                </span>\n              </div>\n              <figcaption className=\"mt-3 flex items-baseline justify-between gap-4\">\n                <span className=\"font-medium\">{frame.title}</span>\n                <span className=\"text-xs text-muted-foreground\">\n                  {frame.place}, {frame.year}\n                </span>\n              </figcaption>\n            </figure>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "800px"
  },
  "categories": [
    "gallery"
  ]
}