Initial Changes

This commit is contained in:
2025-03-01 15:29:32 +05:30
parent 12caeee710
commit e4d8b2cf58
20 changed files with 330 additions and 175 deletions

View File

@@ -14,7 +14,8 @@ import Autoplay from "embla-carousel-autoplay";
import Link from "next/link";
import { ArrowRight } from "lucide-react";
const Hero = () => {
const Hero = ({ data }) => {
console.log(data);
const plugin = React.useRef(
Autoplay({ delay: 4000, stopOnInteraction: true })
);
@@ -32,7 +33,7 @@ const Hero = () => {
return () => window.removeEventListener("resize", checkMobile);
}, []);
const heroData = [
const heroData = data || [
{
type: "image",
src: "/rudraksh banner image 2.avif",
@@ -84,7 +85,6 @@ const Hero = () => {
className="object-cover brightness-75"
priority={index === 0}
/>
</div>
</CarouselItem>
))}