{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-section-v2",
  "title": "Gallery Section v2",
  "description": "A 3×3 image grid with grayscale-to-color hover transitions, uniform aspect ratios, and mono font captions below each card.",
  "dependencies": [],
  "registryDependencies": [
    "https://uiception.com/r/block-media.json"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/gallery-section-v2/page.tsx",
      "content": "import GallerySectionV2 from \"./components/gallery-section-v2\"\n\nexport default function Page() {\n  return <GallerySectionV2 />\n}\n",
      "type": "registry:page",
      "target": "app/gallery-section-v2/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/gallery-section-v2/components/gallery-section-v2.tsx",
      "content": "import { GalleryCard } from \"./gallery-card\"\nimport { createBlockImage } from \"@/lib/block-media\"\nimport { galleryFiles, type GalleryItem } from \"../lib/config\"\n\nconst blockImage = createBlockImage(\"gallery-section-v2\")\nconst galleryItems: GalleryItem[] = galleryFiles.map(\n  ({ file, ...rest }, index) => ({\n    id: String(index + 1),\n    ...rest,\n    imageSrc: blockImage(file),\n  }),\n)\n\nexport default function GallerySectionV2() {\n  return (\n    <section className=\"py-4 md:py-6 lg:py-8\">\n      <div className=\"mx-auto max-w-7xl px-4\">\n        <h2 className=\"mb-6 font-mono text-4xl lg:text-5xl\">\n          Gallery\n        </h2>\n        <div className=\"grid grid-cols-3 gap-x-6 gap-y-10\">\n          {galleryItems.map((item, index) => (\n            <GalleryCard\n              key={item.id}\n              item={item}\n              priority={index < 3}\n            />\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/gallery-section-v2/components/gallery-section-v2.tsx"
    },
    {
      "path": "registry/new-york/blocks/gallery-section-v2/components/gallery-card.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport Image from \"next/image\"\n\nimport type { GalleryItem } from \"../lib/config\"\n\ntype GalleryCardProps = { item: GalleryItem; priority?: boolean }\n\nexport function GalleryCard({ item, priority = false }: GalleryCardProps) {\n  const [loaded, setLoaded] = useState(false)\n\n  return (\n    <div className=\"group\">\n      <div className=\"relative isolate aspect-4/3 overflow-hidden\">\n        <Image\n          src={item.imageSrc}\n          alt={item.alt}\n          fill\n          unoptimized\n          priority={priority}\n          sizes=\"(max-width: 768px) 50vw, 33vw\"\n          className={`object-cover transition-opacity duration-500${loaded ? \" opacity-100\" : \" opacity-0\"}`}\n          onLoad={() => setLoaded(true)}\n          onError={() => setLoaded(true)}\n        />\n        {loaded && (\n          <div\n            aria-hidden\n            className=\"pointer-events-none absolute inset-0 bg-[#808080] mix-blend-color transition-opacity duration-500 group-hover:opacity-0\"\n          />\n        )}\n      </div>\n      <div className=\"mt-3 font-mono\">\n        <p className=\"text-sm font-medium leading-tight\">{item.title}</p>\n        <p className=\"mt-1 text-xs text-muted-foreground\">{item.description}</p>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/gallery-section-v2/components/gallery-card.tsx"
    },
    {
      "path": "registry/new-york/blocks/gallery-section-v2/lib/config.ts",
      "content": "export type GalleryItem = {\n  id: string\n  title: string\n  description: string\n  imageSrc: string\n  alt: string\n}\n\nexport const galleryFiles = [\n  { file: \"image-1.jpg\", title: \"Aron Visuals\",      description: \"Mountain landscape at golden hour\",  alt: \"Mountain landscape at golden hour\" },\n  { file: \"image-2.jpg\", title: \"Boudhayan Bardhan\", description: \"Coastal cliffs and ocean waves\",      alt: \"Coastal cliffs and ocean waves\" },\n  { file: \"image-3.jpg\", title: \"Etienne Bosiger\",   description: \"Forest trail through tall trees\",     alt: \"Forest trail through tall trees\" },\n  { file: \"image-4.jpg\", title: \"Filip Zrnzevic\",    description: \"City skyline at dusk\",                alt: \"City skyline at dusk\" },\n  { file: \"image-5.jpg\", title: \"Ivana Cajina\",      description: \"Desert dunes under a clear sky\",      alt: \"Desert dunes under a clear sky\" },\n  { file: \"image-6.jpg\", title: \"Justin Clark\",      description: \"Snow-capped peaks above a valley\",    alt: \"Snow-capped peaks above a valley\" },\n  { file: \"image-7.jpg\", title: \"Meghan Schiereck\",  description: \"Lush green hills and farmland\",       alt: \"Lush green hills and farmland\" },\n  { file: \"image-8.jpg\", title: \"Michael Baccin\",    description: \"Rocky shoreline at sunset\",           alt: \"Rocky shoreline at sunset\" },\n  { file: \"image-9.jpg\", title: \"Quentin\",           description: \"Misty lake surrounded by mountains\",  alt: \"Misty lake surrounded by mountains\" },\n]\n",
      "type": "registry:lib",
      "target": "app/gallery-section-v2/lib/config.ts"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-1.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-1.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-2.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-2.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-3.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-3.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-4.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-4.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-5.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-5.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-6.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-6.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-7.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-7.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-8.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-8.jpg.gitkeep"
    },
    {
      "path": "public/images/blocks/gallery-section-v2/image-9.jpg.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: jpg, jpeg, png, webp, avif, gif, or svg. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/images/blocks/gallery-section-v2/image-9.jpg.gitkeep"
    }
  ],
  "type": "registry:block"
}