2025-08-21 15:58:23 +08:00

112 lines
5.1 KiB
JavaScript

"use client";
import { testimonials6 } from "@/data/testimonials";
import Image from "next/image";
import React from "react";
import { Pagination } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";
export default function Testimonials3() {
return (
<section id="snippet-3" className="wrapper !bg-[#ffffff] ">
<div className="container pt-20 xl:pt-28 lg:pt-28 md:pt-28 pb-16 xl:pb-20 lg:pb-20 md:pb-20">
<div className="flex flex-wrap mx-[-15px] xl:mx-[-35px] !mt-[-50px]">
<div className="xl:w-4/12 w-full flex-[0_0_auto] !px-[15px] max-w-full xl:!px-[35px] !mt-[50px]">
<h2 className="!text-[calc(1.305rem_+_0.66vw)] font-bold xl:!text-[1.8rem] !leading-[1.3] !mt-10 !mb-3">
Our Community
</h2>
<p className="lead text-[1.05rem] !leading-[1.6] !mb-6">
Customer satisfaction is our major goal. See what our clients are
saying about our services.
</p>
<a
href="#"
className="btn btn-primary !text-white !bg-[#1fc76f] border-[#1fc76f] hover:text-white hover:bg-[#1fc76f] hover:!border-[#1fc76f] active:text-white active:bg-[#1fc76f] active:border-[#1fc76f] disabled:text-white disabled:bg-[#1fc76f] disabled:border-[#1fc76f] !rounded-[50rem] hover:translate-y-[-0.15rem] hover:shadow-[0_0.25rem_0.75rem_rgba(30,34,40,0.15)]"
>
All Testimonials
</a>
</div>
{/* /column */}
<div className="xl:w-8/12 w-full flex-[0_0_auto] !px-[15px] max-w-full xl:!px-[35px] !mt-[50px]">
<div className="!relative">
<div
className="shape !rounded-[50%] !bg-[#fff8ee] rellax !w-[6rem] !h-[6rem] absolute"
data-rellax-speed={1}
style={{ top: "-0.7rem", right: "-1.7rem" }}
/>
<div
className="shape !rounded-[50%] bg-line red rellax !w-[6rem] !h-[6rem] absolute opacity-50"
data-rellax-speed={1}
style={{ bottom: "-0.5rem", left: "-1.4rem" }}
/>
<div className="swiper-container dots-closer !mb-6 relative z-10">
<Swiper
className="swiper"
breakpoints={{
0: { slidesPerView: 1 },
575: {
slidesPerView: 1,
},
768: {
slidesPerView: 2,
},
}}
modules={[Pagination]}
pagination={{
clickable: true,
el: ".spdt4",
}}
>
{testimonials6.map((testimonial) => (
<SwiperSlide className="swiper-slide" key={testimonial.id}>
<div className="item-inner">
<div className="card">
<div className="card-body flex-[1_1_auto] p-[40px]">
<blockquote className="!text-[0.85rem] !leading-[1.7] font-medium !pl-4 icon !mb-0 relative p-0 border-0 before:content-['\201d'] before:absolute before:top-[-1.5rem] before:left-[-0.9rem] before:text-[rgba(52,63,82,0.05)] before:text-[10rem] before:leading-none before:z-[1]">
<p>{testimonial.quote}</p>
<div className="flex items-center text-left">
<Image
className="!rounded-[50%] !w-[3.5rem]"
srcSet={testimonial.imageSrcSet}
alt="image"
src={testimonial.imageSrc}
width="100"
height="100"
/>
<div className="info !pl-4">
<h5 className="!mb-1 text-[.95rem] !leading-[1.5]">
{testimonial.name}
</h5>
<p className="!mb-0 text-[.85rem]">
{testimonial.role}
</p>
</div>
</div>
</blockquote>
</div>
{/*/.card-body */}
</div>
{/* /.card */}
</div>
{/* /.item-inner */}
</SwiperSlide>
))}
{/*/.swiper-wrapper */}
</Swiper>
<div className="swiper-controls">
<div className="swiper-pagination spdt4"></div>
</div>
{/* /.swiper */}
</div>
{/* /.swiper-container */}
</div>
{/* /.relative */}
</div>
{/* /column */}
</div>
{/* /.row */}
</div>
</section>
);
}