"use client"; import { Autoplay, Pagination } from "swiper/modules"; import { Swiper, SwiperSlide } from "swiper/react"; import Link from "next/link"; import "swiper/css"; import "swiper/css/pagination"; export default function Hero() { const swiperOptions = { slidesPerView: 1, loop: true, speed: 4000, freeMode: true, autoplay: { delay: 0, disableOnInteraction: false, }, pagination: { el: ".swiper-pagination", clickable: true, }, modules: [Autoplay, Pagination], }; const slides = [ { id: 1, image: "/assets/img/cta-bg.jpg", title: " Transforming Coconut Processing with", subtitle: "End-to-End Solutions", text: " From deshelling to coconut drying - we engineer smart, efficient, and scalable coconut processing machinery tailored to your needs.", }, { id: 2, image: "/assets/img/cta-bg.jpg", title: " Transforming Coconut Processing with", subtitle: "End-to-End Solutions", text: " From deshelling to coconut drying - we engineer smart, efficient, and scalable coconut processing machinery tailored to your needs.", }, { id: 3, image: "/assets/img/cta-bg.jpg", title: " Transforming Coconut Processing with", subtitle: "End-to-End Solutions", text: " From deshelling to coconut drying - we engineer smart, efficient, and scalable coconut processing machinery tailored to your needs.", }, ]; return ( {slides.map((slide) => (

{slide.title} {slide.subtitle}

{slide.text}

Get A Quote
))}
); }