{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-sections-product-carousel-hero","type":"registry:block","title":"Product Carousel Hero","files":[{"path":"components/blocks/marketing/hero-sections/product-carousel-hero.tsx","content":"import { useState } from 'react';\n\nimport { Button } from '@/components/ui/button';\nimport { ArrowLeft, ArrowRight, Check } from 'lucide-react';\n\nexport default function ProductCarouselHero() {\n  const [activeIndex, setActiveIndex] = useState(0);\n\n  const products = [\n    {\n      name: 'Premium Dashboard',\n      description:\n        'Analytics dashboard with advanced filtering and data visualization',\n      image:\n        'https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3',\n      color: '#4f46e5',\n    },\n    {\n      name: 'Mobile App',\n      description:\n        'Cross-platform mobile application with offline capabilities',\n      image:\n        'https://images.unsplash.com/photo-1551650975-87deedd944c3?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.0.3',\n      color: '#0ea5e9',\n    },\n    {\n      name: 'Design System',\n      description: 'Comprehensive UI library with 100+ components and variants',\n      image:\n        'https://images.unsplash.com/photo-1545235617-9465d2a55698?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3',\n      color: '#f59e0b',\n    },\n  ];\n\n  const nextSlide = () => {\n    setActiveIndex((prevIndex) => (prevIndex + 1) % products.length);\n  };\n\n  const prevSlide = () => {\n    setActiveIndex(\n      (prevIndex) => (prevIndex - 1 + products.length) % products.length\n    );\n  };\n\n  return (\n    <div className=\"from-background to-muted/30 relative bg-gradient-to-b\">\n      <div className=\"container mx-auto px-4 pt-24 pb-20 md:px-6 md:pt-32 md:pb-24 2xl:max-w-[1400px]\">\n        <div className=\"grid items-center gap-12 md:grid-cols-2 md:gap-16\">\n          <div className=\"flex flex-col justify-center space-y-4\">\n            <div className=\"space-y-2\">\n              <p className=\"text-primary text-sm font-medium tracking-widest uppercase\">\n                Introducing\n              </p>\n              <h1 className=\"text-3xl font-bold tracking-tight sm:text-4xl md:text-5xl lg:text-6xl\">\n                Build beautiful products, faster.\n              </h1>\n              <p className=\"text-muted-foreground max-w-[600px] md:text-xl\">\n                Our comprehensive suite of tools helps teams design, develop,\n                and deploy exceptional digital experiences.\n              </p>\n            </div>\n\n            <ul className=\"space-y-2 pt-4\">\n              <li className=\"flex items-center gap-2\">\n                <Check className=\"text-primary h-5 w-5\" />\n                <span>Pre-built components save development time</span>\n              </li>\n              <li className=\"flex items-center gap-2\">\n                <Check className=\"text-primary h-5 w-5\" />\n                <span>Intuitive drag-and-drop interface</span>\n              </li>\n              <li className=\"flex items-center gap-2\">\n                <Check className=\"text-primary h-5 w-5\" />\n                <span>Regular updates and dedicated support</span>\n              </li>\n            </ul>\n\n            <div className=\"flex flex-col gap-3 pt-4 sm:flex-row\">\n              <Button size=\"lg\" asChild>\n                <a href=\"#\">Start Free Trial</a>\n              </Button>\n              <Button size=\"lg\" variant=\"outline\" asChild>\n                <a href=\"#\">View Demo</a>\n              </Button>\n            </div>\n\n            <div className=\"pt-6\">\n              <p className=\"text-muted-foreground mb-2 text-sm\">\n                Trusted by leading companies:\n              </p>\n              <div className=\"flex flex-wrap items-center gap-6\">\n                {['Microsoft', 'Airbnb', 'Spotify', 'Uber'].map(\n                  (company, i) => (\n                    <div\n                      key={i}\n                      className=\"text-muted-foreground/70 font-medium\"\n                    >\n                      {company}\n                    </div>\n                  )\n                )}\n              </div>\n            </div>\n          </div>\n\n          <div className=\"relative\">\n            {/* Product showcase */}\n            <div className=\"relative aspect-[4/3] overflow-hidden rounded-xl border shadow-xl\">\n              <div\n                className=\"absolute inset-0 transition-opacity duration-500\"\n                style={{\n                  opacity: activeIndex === 0 ? 1 : 0,\n                  zIndex: activeIndex === 0 ? 10 : 0,\n                }}\n              >\n                <img\n                  src={products[0]!.image}\n                  alt={products[0]!.name}\n                  className=\"object-cover\"\n                />\n                <div className=\"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent\"></div>\n                <div className=\"absolute right-0 bottom-0 left-0 p-6\">\n                  <h3 className=\"mb-1 text-xl font-bold text-white\">\n                    {products[0]!.name}\n                  </h3>\n                  <p className=\"text-sm text-white/80\">\n                    {products[0]!.description}\n                  </p>\n                </div>\n              </div>\n\n              <div\n                className=\"absolute inset-0 transition-opacity duration-500\"\n                style={{\n                  opacity: activeIndex === 1 ? 1 : 0,\n                  zIndex: activeIndex === 1 ? 10 : 0,\n                }}\n              >\n                <img\n                  src={products[1]!.image}\n                  alt={products[1]!.name}\n                  className=\"object-cover\"\n                />\n                <div className=\"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent\"></div>\n                <div className=\"absolute right-0 bottom-0 left-0 p-6\">\n                  <h3 className=\"mb-1 text-xl font-bold text-white\">\n                    {products[1]!.name}\n                  </h3>\n                  <p className=\"text-sm text-white/80\">\n                    {products[1]!.description}\n                  </p>\n                </div>\n              </div>\n\n              <div\n                className=\"absolute inset-0 transition-opacity duration-500\"\n                style={{\n                  opacity: activeIndex === 2 ? 1 : 0,\n                  zIndex: activeIndex === 2 ? 10 : 0,\n                }}\n              >\n                <img\n                  src={products[2]!.image}\n                  alt={products[2]!.name}\n                  className=\"object-cover\"\n                />\n                <div className=\"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent\"></div>\n                <div className=\"absolute right-0 bottom-0 left-0 p-6\">\n                  <h3 className=\"mb-1 text-xl font-bold text-white\">\n                    {products[2]!.name}\n                  </h3>\n                  <p className=\"text-sm text-white/80\">\n                    {products[2]!.description}\n                  </p>\n                </div>\n              </div>\n            </div>\n\n            {/* Carousel controls */}\n            <div className=\"absolute right-0 -bottom-10 flex gap-2\">\n              <Button\n                variant=\"outline\"\n                size=\"icon\"\n                onClick={prevSlide}\n                className=\"h-10 w-10 rounded-full\"\n              >\n                <ArrowLeft className=\"h-4 w-4\" />\n                <span className=\"sr-only\">Previous</span>\n              </Button>\n              <Button\n                variant=\"outline\"\n                size=\"icon\"\n                onClick={nextSlide}\n                className=\"h-10 w-10 rounded-full\"\n              >\n                <ArrowRight className=\"h-4 w-4\" />\n                <span className=\"sr-only\">Next</span>\n              </Button>\n            </div>\n\n            {/* Product indicators */}\n            <div className=\"absolute -bottom-10 left-0 flex items-center gap-2\">\n              {products.map((product, index) => (\n                <button\n                  key={index}\n                  onClick={() => setActiveIndex(index)}\n                  className={`h-2.5 rounded-full transition-all ${\n                    activeIndex === index ? 'w-8' : 'w-2.5 opacity-50'\n                  }`}\n                  style={{ backgroundColor: product.color }}\n                  aria-label={`View ${product.name}`}\n                />\n              ))}\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-sections/product-carousel-hero.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 hero with a swipeable product carousel beside a headline and CTA. Showcases a range of items or plans at the top of an ecommerce landing page.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}