"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: "Create the building", subtitle: "you want here", text: "Proactively pontificate client-centered relationships visavis process centric leadership skills. Credibly.", }, { id: 2, image: "/assets/img/cta-bg.jpg", title: "Design your dream", subtitle: "with us today", text: "Empower your projects with innovative solutions and expert guidance from start to finish.", }, { id: 3, image: "/assets/img/cta-bg.jpg", title: "Build your future", subtitle: "with confidence", text: "Delivering excellence through teamwork, integrity, and cutting-edge technology. Credibly", }, ]; return ( {slides.map((slide) => (

{slide.title} {slide.subtitle}

{slide.text}

Explore More
))}
); }