{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-18",
  "type": "registry:block",
  "description": "3D coverflow carousel of album covers with a centered focus and controls.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/gallery/gallery-18.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronLeft,\n  ChevronRight,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst covers = [\n  { title: \"Portfolio Simple\", artist: \"Designali template\", gradient: 'url(\"/images/templates/portfolio-simple.jpg\") center / cover' },\n  { title: \"Design Agency\", artist: \"Designali template\", gradient: 'url(\"/images/templates/design-agency.jpg\") center / cover' },\n  { title: \"Resort\", artist: \"Designali template\", gradient: 'url(\"/images/templates/resort.jpg\") center / cover' },\n  { title: \"AI\", artist: \"Designali template\", gradient: 'url(\"/images/templates/ai.jpg\") center / cover' },\n  { title: \"Vercel Style\", artist: \"Designali template\", gradient: 'url(\"/images/templates/vercel.jpg\") center / cover' },\n  { title: \"Ali Imam\", artist: \"Designali template\", gradient: 'url(\"/images/templates/aliimam-comp.jpg\") center / cover' },\n  { title: \"Dalim Agency\", artist: \"Designali template\", gradient: 'url(\"/images/templates/dalim-agency-old.jpg\") center / cover' },\n]\n\nexport default function Gallery18() {\n  const [index, setIndex] = useState(3)\n  const go = (dir: number) => setIndex((i) => Math.min(covers.length - 1, Math.max(0, i + dir)))\n  const current = covers[index]!\n\n  return (\n    <section className=\"w-full overflow-hidden bg-background py-20\">\n      <div className=\"mx-auto max-w-7xl px-6 text-center\">\n        <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">Ali&apos;s picks</p>\n        <h2 className=\"mt-3 text-3xl font-semibold tracking-tight md:text-4xl\">\n          Templates of the season\n        </h2>\n      </div>\n      <div className=\"relative mt-14 h-64 [perspective:1200px] sm:h-80\">\n        {covers.map((cover, i) => {\n          const offset = i - index\n          const abs = Math.abs(offset)\n          return (\n            <button\n              key={cover.title}\n              type=\"button\"\n              onClick={() => setIndex(i)}\n              aria-label={`${cover.title} by ${cover.artist}`}\n              aria-current={offset === 0}\n              className={cn(\n                \"absolute top-0 left-1/2 aspect-square h-full border border-border shadow-xl transition-all duration-500 ease-out\",\n                abs > 3 && \"pointer-events-none opacity-0\"\n              )}\n              style={{\n                background: cover.gradient,\n                transform: `translateX(calc(-50% + ${offset * 38}%)) rotateY(${offset === 0 ? 0 : offset > 0 ? -45 : 45}deg) scale(${offset === 0 ? 1 : 0.8})`,\n                zIndex: 10 - abs,\n                filter: offset === 0 ? \"none\" : `brightness(${1 - abs * 0.15})`,\n              }}\n            />\n          )\n        })}\n      </div>\n      <div className=\"mx-auto mt-10 flex max-w-7xl items-center justify-center gap-6 px-6\">\n        <Button variant=\"outline\" size=\"icon-lg\" aria-label=\"Previous\" disabled={index === 0} onClick={() => go(-1)}>\n          <ChevronLeft />\n        </Button>\n        <div className=\"w-48 text-center\">\n          <p className=\"truncate font-medium\">{current.title}</p>\n          <p className=\"truncate text-sm text-muted-foreground\">{current.artist}</p>\n        </div>\n        <Button variant=\"outline\" size=\"icon-lg\" aria-label=\"Next\" disabled={index === covers.length - 1} onClick={() => go(1)}>\n          <ChevronRight />\n        </Button>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "gallery"
  ]
}