StudioHighlight.js 5 KB
import React from "react";
import Heading from "@/components/Heading";
import { Col, Row } from "react-bootstrap";
import { Swiper, SwiperSlide } from "swiper/react";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
import { Autoplay, Navigation, Pagination } from "swiper/modules";

const CollectionData = [
  { image: "/image/studio-highlights/01.png" },
  { image: "/image/studio-highlights/02.png" },
  { image: "/image/studio-highlights/03.png" },
  { image: "/image/studio-highlights/01.png" },
  { image: "/image/studio-highlights/02.png" },
];
const StudioHighlight = () => {
  return (
    <>
      <section className="studiohighlight-section catalogues-sec sec_padd">
        <div className="custom_container_leftAuto container">
          <Row className="text-center">
            <Col>
              <Heading el="h2" heading="Studio Highlights" />
            </Col>
          </Row>
          <Row>
            <Col>
              {/* Swiper */}
              <Swiper
                slidesPerView={4}
                spaceBetween={30}
                loop={true}
                allowTouchMove={true}
                autoplay={{
                  delay: 0,
                  disableOnInteraction: false,
                  pauseOnMouseEnter: true,
                }}
                speed={6000}
                navigation={{
                  nextEl: ".cust-swiper-button-next",
                  prevEl: ".cust-swiper-button-prev",
                }}
                pagination={{ clickable: true }}
                modules={[Navigation, Autoplay, Pagination]}
                className="collectionSwiper"
                breakpoints={{
                  320: { slidesPerView: 1, spaceBetween: 15 },
                  640: { slidesPerView: 2, spaceBetween: 20 },
                  992: { slidesPerView: 3, spaceBetween: 25 },
                  1200: { slidesPerView: 3.7, spaceBetween: 30 },
                }}
              >
                {CollectionData.map((item, index) => (
                  <SwiperSlide key={index}>
                    <div className="collection-card">
                      <img
                        src={item.image}
                        alt={item.title}
                        className="img-fluid rounded-lg hover-zoom"
                      />
                    </div>
                  </SwiperSlide>
                ))}
                 <div className="position-absolute swiperbtn1 d-lg-flex d-none justify-content-between align-items-center w-100">
                <button className="cust-swiper-button-prev">
                  <svg
                    xmlns="http://www.w3.org/2000/svg"
                    width="48"
                    height="48"
                    viewBox="0 0 48 48"
                    fill="none"
                  >
                    <rect
                      y="48"
                      width="48"
                      height="48"
                      rx="24"
                      transform="rotate(-90 0 48)"
                      fill="white"
                      fill-opacity="0.25"
                    />
                    <rect
                      x="0.5"
                      y="47.5"
                      width="47"
                      height="47"
                      rx="23.5"
                      transform="rotate(-90 0.5 47.5)"
                      stroke="black"
                      stroke-opacity="0.2"
                    />
                    <path
                      d="M20.6667 31L22.4375 29.1406L18.7917 25.3125H34V22.6875H18.7917L22.4375 18.8594L20.6667 17L14 24L20.6667 31Z"
                      fill="black"
                    />
                  </svg>
                </button>
                <button className="cust-swiper-button-next">
                  <svg
                    xmlns="http://www.w3.org/2000/svg"
                    width="48"
                    height="48"
                    viewBox="0 0 48 48"
                    fill="none"
                  >
                    <rect
                      width="48"
                      height="48"
                      rx="24"
                      transform="matrix(0 -1 -1 0 48 48)"
                      fill="white"
                      fill-opacity="0.25"
                    />
                    <rect
                      x="-0.5"
                      y="-0.5"
                      width="47"
                      height="47"
                      rx="23.5"
                      transform="matrix(0 -1 -1 0 47 47)"
                      stroke="black"
                      stroke-opacity="0.2"
                    />
                    <path
                      d="M27.3333 31L25.5625 29.1406L29.2083 25.3125H14V22.6875H29.2083L25.5625 18.8594L27.3333 17L34 24L27.3333 31Z"
                      fill="black"
                    />
                  </svg>
                </button>
              </div>
              </Swiper>
             
            </Col>
          </Row>
        </div>
      </section>
    </>
  );
};

export default StudioHighlight;