diff --git a/components/HeroCarousel.tsx b/components/HeroCarousel.tsx new file mode 100644 index 0000000..9e14660 --- /dev/null +++ b/components/HeroCarousel.tsx @@ -0,0 +1,65 @@ +"use client"; + +import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader +import { Carousel } from "react-responsive-carousel"; + +import Image from "next/image"; + +const heroImages = [ + { + imgUrl: "/assets/images/hero-1.svg", + alt: "smart watch", + }, + { + imgUrl: "/assets/images/hero-2.svg", + alt: "bag", + }, + { + imgUrl: "/assets/images/hero-3.svg", + alt: "lamp", + }, + { + imgUrl: "/assets/images/hero-4.svg", + alt: "air fryer", + }, + { + imgUrl: "/assets/images/hero-5.svg", + alt: "chair", + }, +]; + +const HeroCarousel = () => { + return ( +
+ + {heroImages.map((image) => ( + {image.alt} + ))} + + + arrow +
+ ); +}; + +export default HeroCarousel;