{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-sections-image-carousel-hero","type":"registry:block","title":"Image Carousel Hero","files":[{"path":"components/blocks/marketing/hero-sections/image-carousel-hero.tsx","content":"import { useState, useEffect } from 'react';\n\nimport { Button } from '@/components/ui/button';\nimport { ArrowRight, ChevronLeft, ChevronRight } from 'lucide-react';\n\nexport default function ImageCarouselHero() {\n  const images = [\n    {\n      src: 'https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',\n      alt: 'Team collaborating in a modern office space',\n    },\n    {\n      src: 'https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',\n      alt: 'Designer working on a digital interface',\n    },\n    {\n      src: 'https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',\n      alt: 'Modern workspace with digital devices',\n    },\n  ];\n\n  const [currentImageIndex, setCurrentImageIndex] = useState(0);\n\n  useEffect(() => {\n    const interval = setInterval(() => {\n      setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length);\n    }, 5000);\n\n    return () => clearInterval(interval);\n  }, [images.length]);\n\n  const goToNextImage = () => {\n    setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length);\n  };\n\n  const goToPreviousImage = () => {\n    setCurrentImageIndex(\n      (prevIndex) => (prevIndex - 1 + images.length) % images.length\n    );\n  };\n\n  return (\n    <div className=\"relative min-h-[600px] overflow-hidden\">\n      {/* Image Carousel */}\n      <div className=\"absolute inset-0\">\n        {images.map((image, index) => (\n          <div\n            key={index}\n            className={`absolute inset-0 transition-opacity duration-1000 ${\n              index === currentImageIndex ? 'opacity-100' : 'opacity-0'\n            }`}\n          >\n            <img\n              src={image.src}\n              alt={image.alt}\n              className=\"object-cover\"\n            />\n            <div className=\"absolute inset-0 bg-black/40\"></div>\n          </div>\n        ))}\n\n        {/* Navigation Arrows */}\n        <button\n          onClick={goToPreviousImage}\n          className=\"bg-background/30 hover:bg-background/50 absolute top-1/2 left-4 z-20 hidden -translate-y-1/2 rounded-full p-2 backdrop-blur-sm transition-colors md:block\"\n          aria-label=\"Previous image\"\n        >\n          <ChevronLeft className=\"h-6 w-6 text-white\" />\n        </button>\n\n        <button\n          onClick={goToNextImage}\n          className=\"bg-background/30 hover:bg-background/50 absolute top-1/2 right-4 z-20 hidden -translate-y-1/2 rounded-full p-2 backdrop-blur-sm transition-colors md:block\"\n          aria-label=\"Next image\"\n        >\n          <ChevronRight className=\"h-6 w-6 text-white\" />\n        </button>\n\n        {/* Indicators */}\n        <div className=\"absolute bottom-6 left-1/2 z-10 flex -translate-x-1/2 gap-2\">\n          {images.map((_, index) => (\n            <button\n              key={index}\n              onClick={() => setCurrentImageIndex(index)}\n              className={`h-2.5 w-2.5 rounded-full ${\n                index === currentImageIndex\n                  ? 'bg-white'\n                  : 'bg-white/50 hover:bg-white/80'\n              } transition-colors`}\n              aria-label={`Go to image ${index + 1}`}\n            />\n          ))}\n        </div>\n      </div>\n\n      {/* Content */}\n      <div className=\"relative z-10 container mx-auto flex min-h-[600px] flex-col items-center justify-center px-4 py-24 text-center md:px-6 md:py-32 2xl:max-w-[1400px]\">\n        <div className=\"max-w-3xl space-y-8\">\n          <div className=\"space-y-4\">\n            <div className=\"inline-flex items-center rounded-full bg-white/10 px-3 py-1 text-sm font-medium text-white backdrop-blur-sm\">\n              <span>Launching Soon</span>\n            </div>\n            <h1 className=\"text-primary-foreground dark:text-primary text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl\">\n              Build exceptional digital experiences\n            </h1>\n            <p className=\"text-primary-foreground dark:text-primary text-xl\">\n              Our platform helps you create stunning websites and applications\n              with ease, designed to engage your audience and drive results.\n            </p>\n          </div>\n\n          <div className=\"flex flex-col justify-center gap-4 sm:flex-row\">\n            <Button\n              size=\"lg\"\n              asChild\n              variant=\"secondary\"\n              className=\"bg-primary-foreground text-primary dark:bg-primary dark:text-primary-foreground\"\n            >\n              <a href=\"#\">\n                Get Started\n                <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-sections/image-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 rotating image carousel next to a headline and CTA. Shows several product shots or screens at the top of a landing page in turn.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}