"use client"; import "swiper/css"; import "swiper/css/effect-cards"; import "swiper/css/pagination"; import { AnimatePresence, motion } from "framer-motion"; import { ArrowRight } from "lucide-react"; import { useEffect, useRef } from "react"; import type { Swiper as SwiperType } from "swiper"; import { Autoplay, EffectCards, Pagination } from "swiper/modules"; import { Swiper, SwiperSlide } from "swiper/react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; const IMAGES = [ { src: "/block-media/shadcnblocks/block/lummi/person1.jpg", alt: "پرتره سارا احمدی در فضای شهری", name: "سارا احمدی", description: "مدیر محصول با تمرکز بر طراحی داشبورد و تجربه کاربری CRM.", link: "#", }, { src: "/block-media/shadcnblocks/block/lummi/person2.jpg", alt: "پرتره مریم رضایی در نور طبیعی", name: "مریم رضایی", description: "تمرکز بر پرتره‌های طبیعی و احساسات خام در محیط‌های باز و آرام.", link: "#", }, { src: "/block-media/shadcnblocks/block/lummi/random11.jpg", alt: "پرتره نیلوفر کریمی در استودیو", name: "نیلوفر کریمی", description: "آتلیه خلاق با نورپردازی دقیق برای پرتره‌های حرفه‌ای و مینیمال.", link: "#", }, { src: "/block-media/shadcnblocks/block/lummi/person3.jpg", alt: "پرتره امیر حسینی در فضای باز", name: "امیر حسینی", description: "ثبت مقاطع طلایی روز در طبیعت با تاکید بر عمق میدان و رنگ.", link: "#", }, { src: "/block-media/shadcnblocks/block/lummi/person1.jpg", alt: "پرتره لیلا محمدی در فضای شهری", name: "علی حسنی ", description: "متخصص بازاریابی دیجیتال با تجربه در اتوماسیون و کمپین‌های ایمیل.", link: "#", } ]; const css = ` .mySwiper19 { width: 260px; height: 340px; } .mySwiper19 .swiper-slide { display: flex; align-items: center; justify-content: center; border-radius: 25px; } .mySwiper19 .swiper-pagination { bottom: -40px !important; } .mySwiper19 .swiper-pagination-bullet-active { background-color: var(--primary); } `; interface Gallery19Props { className?: string; } const Gallery19 = ({ className }: Gallery19Props) => { const swiperRef = useRef(null); useEffect(() => { swiperRef.current?.update(); }, []); return (
{ swiperRef.current = swiper; }} > {IMAGES.map((image, index) => { const [firstName, lastName] = image.name.split(" "); return ( {image.alt}

{firstName} {lastName ? ( {" "} {lastName} ) : null}

{image.description}

); })}
); }; export { Gallery19 };