{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-gallery-portfolio-gallery","type":"registry:block","title":"Portfolio Gallery","files":[{"path":"components/blocks/marketing/gallery/portfolio-gallery.tsx","content":"import * as React from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Eye, Tag } from 'lucide-react';\n\ninterface PortfolioImage {\n  src: string;\n  alt: string;\n  width: number;\n  height: number;\n  category: string;\n  size: 'small' | 'medium' | 'large';\n}\n\nexport default function PortfolioGallery() {\n  const [filter, setFilter] = React.useState<string | null>(null);\n\n  // Images with their categories and size variations for portfolio layout\n  const images = React.useMemo<PortfolioImage[]>(\n    () => [\n      {\n        src: 'https://images.unsplash.com/photo-1627483297886-49710ae1fc22?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Minimalist white kitchen with marble countertops',\n        width: 1470,\n        height: 980,\n        category: 'Interior',\n        size: 'large',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600585152220-90363fe7e115?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Modern living room with accent furniture',\n        width: 1470,\n        height: 980,\n        category: 'Interior',\n        size: 'medium',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=1475&auto=format&fit=crop',\n        alt: 'Contemporary house exterior with landscaping',\n        width: 1475,\n        height: 983,\n        category: 'Exterior',\n        size: 'medium',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600585152915-d208bec867a1?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Modern dining room with pendant lighting',\n        width: 1470,\n        height: 980,\n        category: 'Interior',\n        size: 'small',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600607688969-a5bfcd646154?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Minimalist bathroom with freestanding tub',\n        width: 1470,\n        height: 980,\n        category: 'Interior',\n        size: 'small',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Luxury high-rise apartment building exterior',\n        width: 1470,\n        height: 980,\n        category: 'Exterior',\n        size: 'large',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600121848594-d8644e57abab?q=80&w=1470&auto=format&fit=crop',\n        alt: 'Open concept kitchen and living area',\n        width: 1470,\n        height: 980,\n        category: 'Interior',\n        size: 'medium',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1613977257592-4871e5fcd7c4?q=80&w=1374&auto=format&fit=crop',\n        alt: 'Modern residential architecture with large windows',\n        width: 1374,\n        height: 916,\n        category: 'Exterior',\n        size: 'medium',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?q=80&w=1632&auto=format&fit=crop',\n        alt: 'Elegant home office with wooden desk and natural lighting',\n        width: 1632,\n        height: 1088,\n        category: 'Interior',\n        size: 'small',\n      },\n      {\n        src: 'https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?q=80&w=1474&auto=format&fit=crop',\n        alt: 'Contemporary garden and landscape design',\n        width: 1474,\n        height: 983,\n        category: 'Landscape',\n        size: 'medium',\n      },\n    ],\n    []\n  );\n\n  // Extract all unique categories\n  const categories = React.useMemo(() => {\n    const categorySet = new Set<string>();\n    images.forEach((image) => categorySet.add(image.category));\n    return Array.from(categorySet);\n  }, [images]);\n\n  // Filter images based on selected category\n  const filteredImages = React.useMemo(() => {\n    if (!filter) return images;\n    return images.filter((image) => image.category === filter);\n  }, [images, filter]);\n\n  return (\n    <div className=\"w-full p-4 md:p-6\">\n      {/* Category filter */}\n      <div className=\"mb-8 flex flex-col items-center\">\n        <h2 className=\"mb-6 text-center text-2xl font-bold\">\n          Design Portfolio\n        </h2>\n        <div className=\"flex flex-wrap justify-center gap-2\">\n          <Button\n            variant={filter === null ? 'default' : 'outline'}\n            size=\"sm\"\n            onClick={() => setFilter(null)}\n            className=\"gap-1.5 rounded-full\"\n          >\n            <Tag className=\"h-3.5 w-3.5\" />\n            <span>All Projects</span>\n          </Button>\n          {categories.map((category) => (\n            <Button\n              key={category}\n              variant={filter === category ? 'default' : 'outline'}\n              size=\"sm\"\n              onClick={() => setFilter(category)}\n              className=\"gap-1.5 rounded-full\"\n            >\n              <Tag className=\"h-3.5 w-3.5\" />\n              <span>{category}</span>\n            </Button>\n          ))}\n        </div>\n      </div>\n\n      {/* Portfolio grid with varying image sizes */}\n      <div className=\"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n        {filteredImages.map((image, index) => {\n          // Set different spans for different sized images\n          const spanClasses = {\n            small: '',\n            medium: 'sm:col-span-1 md:col-span-1',\n            large: 'sm:col-span-2 md:col-span-2',\n          };\n\n          return (\n            <div\n              key={index}\n              className={`group relative overflow-hidden rounded-lg ${spanClasses[image.size]}`}\n            >\n              <div className=\"relative aspect-square sm:aspect-auto sm:h-64 md:h-80\">\n                <img\n                  src={image.src}\n                  alt={image.alt}\n                  sizes=\"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw\"\n                  className=\"object-cover transition-transform duration-500 group-hover:scale-105\"\n                />\n\n                {/* Overlay with details */}\n                <div className=\"absolute inset-0 flex flex-col items-center justify-center bg-black/60 p-4 opacity-0 backdrop-blur-sm transition-opacity duration-300 group-hover:opacity-100\">\n                  <h3 className=\"mb-2 text-center text-xl font-bold text-white\">\n                    {image.alt}\n                  </h3>\n\n                  <span className=\"mb-4 rounded-full bg-white/20 px-3 py-1 text-xs text-white\">\n                    {image.category}\n                  </span>\n\n                  <Button\n                    size=\"sm\"\n                    variant=\"secondary\"\n                    className=\"mt-2 gap-1.5\"\n                  >\n                    <Eye className=\"h-4 w-4\" />\n                    <span>View Project</span>\n                  </Button>\n                </div>\n              </div>\n            </div>\n          );\n        })}\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/gallery/portfolio-gallery.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"}],"description":"A portfolio layout that pairs project images with titles and short notes. Use it to present work, case studies, or a creative showcase to clients.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}