{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-2",
  "title": "Product Screenshot Showcase",
  "description": "Product screenshot gallery section with a large browser-framed image, version badge and caption, plus a five-thumbnail strip that swaps the featured screen.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "dialog"
  ],
  "files": [
    {
      "path": "registry/blocks/gallery/2/gallery-block.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Dialog,\n  DialogContent,\n  DialogDescription,\n  DialogTitle,\n  DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst screens = [\n  {\n    id: 1,\n    label: \"Acme Dashboard: Overview\",\n    url: \"app.acme.io/dashboard\",\n    version: \"v2.4\",\n    description:\n      \"A unified command center for monitoring pipeline health, active deployments, and real-time system metrics across all environments.\",\n    src: \"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&q=80\",\n    alt: \"Acme dashboard overview showing pipeline metrics\",\n  },\n  {\n    id: 2,\n    label: \"Analytics\",\n    url: \"app.acme.io/analytics\",\n    description:\n      \"Deep-dive into usage trends, funnel conversion, and retention cohorts.\",\n    src: \"https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=75\",\n    alt: \"Analytics charts and metrics\",\n  },\n  {\n    id: 3,\n    label: \"Deployments\",\n    url: \"app.acme.io/deployments\",\n    description:\n      \"Track every release: status, rollback controls, and canary traffic splits.\",\n    src: \"https://images.unsplash.com/photo-1667372393119-3d4c48d07fc9?w=800&q=75\",\n    alt: \"Deployment pipeline and release status\",\n  },\n  {\n    id: 4,\n    label: \"Team Settings\",\n    url: \"app.acme.io/team\",\n    description:\n      \"Manage members, roles, SSO configuration, and access policies.\",\n    src: \"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&q=75\",\n    alt: \"Team settings and member management\",\n  },\n  {\n    id: 5,\n    label: \"Audit Logs\",\n    url: \"app.acme.io/audit\",\n    description:\n      \"Immutable event history with filtering, export, and alert rules.\",\n    src: \"https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?w=800&q=75\",\n    alt: \"Audit log event timeline\",\n  },\n  {\n    id: 6,\n    label: \"API Keys\",\n    url: \"app.acme.io/api-keys\",\n    description:\n      \"Generate, rotate, and scope API credentials with fine-grained permissions.\",\n    src: \"https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800&q=75\",\n    alt: \"API key management interface\",\n  },\n]\n\nexport default function GalleryBlock() {\n  const [activeId, setActiveId] = useState(screens[0].id)\n  const active = screens.find((screen) => screen.id === activeId) ?? screens[0]\n  const thumbnails = screens.slice(1)\n\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-20 text-foreground\">\n      <div className=\"mx-auto flex w-full max-w-5xl flex-col gap-8\">\n        <div className=\"flex flex-col gap-1.5\">\n          <span className=\"text-[10px] font-semibold tracking-[0.18em] text-muted-foreground uppercase\">\n            Product Screenshots\n          </span>\n          <h2 className=\"font-heading text-2xl font-bold tracking-tight sm:text-3xl\">\n            See Acme in action\n          </h2>\n        </div>\n\n        <div className=\"rounded-xl border border-border bg-card shadow-sm\">\n          <div className=\"flex items-center gap-2.5 rounded-t-[inherit] border-b border-border bg-muted px-4 py-2.5\">\n            <div className=\"flex items-center gap-1.5\">\n              <span className=\"size-2.5 border border-border bg-background\" />\n              <span className=\"size-2.5 border border-border bg-background\" />\n              <span className=\"size-2.5 border border-border bg-background\" />\n            </div>\n            <div className=\"mx-2 flex flex-1 items-center gap-2 rounded-md border border-border bg-background px-3 py-1\">\n              <span className=\"size-1.5 bg-muted-foreground/30\" />\n              <span className=\"flex-1 truncate text-xs text-muted-foreground\">\n                {active.url}\n              </span>\n            </div>\n            <IconPlaceholder\n              lucide=\"ZoomIn\"\n              tabler=\"IconZoomIn\"\n              hugeicons=\"SearchAddIcon\"\n              phosphor=\"MagnifyingGlassPlus\"\n              remixicon=\"RiZoomInLine\"\n              className=\"size-4 shrink-0 text-muted-foreground/40\"\n              aria-hidden=\"true\"\n            />\n          </div>\n\n          <Dialog>\n            <DialogTrigger\n              render={\n                <button\n                  type=\"button\"\n                  aria-label={`Enlarge ${active.label}`}\n                  className=\"group relative block aspect-video w-full cursor-zoom-in overflow-hidden rounded-b-[inherit] bg-muted text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\"\n                />\n              }\n            >\n              <img\n                key={active.id}\n                src={active.src}\n                alt={active.alt}\n                className=\"size-full object-cover transition-transform duration-300 group-hover:scale-[1.02]\"\n              />\n              <span className=\"pointer-events-none absolute right-3 bottom-3 flex items-center gap-1.5 rounded-4xl bg-foreground/70 px-2 py-1 text-[10px] font-medium tracking-wide text-background opacity-0 backdrop-blur-sm transition-opacity duration-200 group-hover:opacity-100\">\n                <IconPlaceholder\n                  lucide=\"ZoomIn\"\n                  tabler=\"IconZoomIn\"\n                  hugeicons=\"SearchAddIcon\"\n                  phosphor=\"MagnifyingGlassPlus\"\n                  remixicon=\"RiZoomInLine\"\n                  className=\"size-3.5\"\n                  aria-hidden=\"true\"\n                />\n                Enlarge\n              </span>\n            </DialogTrigger>\n\n            <DialogContent showCloseButton className=\"gap-0 p-0 sm:max-w-3xl\">\n              <DialogTitle className=\"sr-only\">{active.label}</DialogTitle>\n              <DialogDescription className=\"sr-only\">\n                {active.description}\n              </DialogDescription>\n              <div className=\"aspect-video w-full overflow-hidden rounded-t-[inherit] bg-muted\">\n                <img\n                  src={active.src}\n                  alt={active.alt}\n                  className=\"size-full object-contain\"\n                />\n              </div>\n              <div className=\"flex items-center justify-between gap-3 border-t border-border px-4 py-3\">\n                <span className=\"text-sm font-semibold tracking-tight text-foreground\">\n                  {active.label}\n                </span>\n                <span className=\"truncate text-xs text-muted-foreground\">\n                  {active.url}\n                </span>\n              </div>\n            </DialogContent>\n          </Dialog>\n        </div>\n\n        <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between sm:gap-6\">\n          <div className=\"flex flex-col gap-1.5\">\n            <div className=\"flex items-center gap-2\">\n              <span className=\"text-base font-semibold tracking-tight\">\n                {active.label}\n              </span>\n              {active.version && (\n                <Badge\n                  variant=\"secondary\"\n                  className=\"text-[10px] font-medium tracking-wide\"\n                >\n                  {active.version}\n                </Badge>\n              )}\n            </div>\n            <p className=\"max-w-lg text-sm leading-relaxed text-muted-foreground\">\n              {active.description}\n            </p>\n          </div>\n          <Button\n            render={<a href=\"#\" />}\n            nativeButton={false}\n            variant=\"outline\"\n            className=\"shrink-0 gap-2 text-xs font-medium\"\n          >\n            <IconPlaceholder\n              lucide=\"ExternalLink\"\n              tabler=\"IconExternalLink\"\n              hugeicons=\"ExternalLinkIcon\"\n              phosphor=\"ArrowSquareOut\"\n              remixicon=\"RiExternalLinkLine\"\n              className=\"size-3.5\"\n              aria-hidden=\"true\"\n            />\n            View Live Demo\n          </Button>\n        </div>\n\n        <div className=\"border-t border-border\" />\n\n        <div className=\"flex flex-col gap-3\">\n          <span className=\"text-[10px] font-semibold tracking-[0.18em] text-muted-foreground uppercase\">\n            More Screens\n          </span>\n          <div className=\"grid grid-cols-3 gap-3 sm:grid-cols-5\">\n            {thumbnails.map((thumb) => {\n              const isActive = thumb.id === activeId\n              return (\n                <button\n                  key={thumb.id}\n                  type=\"button\"\n                  onClick={() => setActiveId(thumb.id)}\n                  className=\"group flex cursor-pointer flex-col gap-1.5 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\"\n                >\n                  <div\n                    className={[\n                      \"relative aspect-video w-full overflow-hidden rounded-md border transition-all duration-200\",\n                      isActive\n                        ? \"border-foreground/60 ring-1 ring-foreground/20\"\n                        : \"border-border group-hover:border-foreground/30\",\n                    ].join(\" \")}\n                  >\n                    <img\n                      src={thumb.src}\n                      alt={thumb.alt}\n                      className=\"size-full object-cover transition-transform duration-300 group-hover:scale-[1.04]\"\n                    />\n                    {!isActive && (\n                      <div className=\"absolute inset-0 bg-foreground/0 transition-colors duration-200 group-hover:bg-foreground/5\" />\n                    )}\n                  </div>\n                  <span\n                    className={[\n                      \"truncate text-xs font-medium transition-colors\",\n                      isActive\n                        ? \"text-foreground\"\n                        : \"text-muted-foreground group-hover:text-foreground/70\",\n                    ].join(\" \")}\n                  >\n                    {thumb.label}\n                  </span>\n                </button>\n              )\n            })}\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/gallery-2.tsx"
    }
  ],
  "meta": {
    "height": "1212px",
    "tier": "free"
  },
  "docs": "Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.",
  "categories": [
    "gallery"
  ],
  "type": "registry:block"
}