Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Testimonial {
|
||||
quote: string;
|
||||
author: string;
|
||||
role: string;
|
||||
company: string;
|
||||
image: string;
|
||||
}
|
||||
|
||||
interface Testimonial31Props {
|
||||
heading?: string;
|
||||
description?: string;
|
||||
ctaText?: string;
|
||||
ctaHref?: string;
|
||||
testimonials?: Testimonial[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Testimonial31 = ({
|
||||
heading = "مورد اعتماد سازندگان محصول",
|
||||
description = "بر پایه عادتهایی ساخته شده که موفقترین تیمهای محصول را میسازد: تمرکز، سرعت و همیشه تلاش برای کیفیت بالا.",
|
||||
ctaText = "مطالعات موردی مشتریان را بخوانید",
|
||||
ctaHref = "#",
|
||||
testimonials = [
|
||||
{
|
||||
quote: "از این ابزار بهجای CRM استفاده میکنیم و هنوز هم جواب میدهد!",
|
||||
author: "نیلوفر حسینی",
|
||||
role: "مدیر محصول",
|
||||
company: "ری یو آی Finance",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/mainline/testimonials/amy-chase.webp",
|
||||
},
|
||||
{
|
||||
quote: "توانستم ۸۰٪ تیمم را با خودکارسازی جایگزین کنم.",
|
||||
author: "مازیار رضایی",
|
||||
role: "مهندس ارشد",
|
||||
company: "TechCorp",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/mainline/testimonials/jonas-kotara.webp",
|
||||
},
|
||||
{
|
||||
quote:
|
||||
"مسیر بنیانگذاری بهاندازه کافی سخت است؛ داشتن یک اپ مدیریت محصول عالی کمک بزرگی است.",
|
||||
author: "کاوه مرادی",
|
||||
role: "بنیانگذار",
|
||||
company: "StartupXYZ",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/mainline/testimonials/kevin-yam.webp",
|
||||
},
|
||||
{
|
||||
quote: "میتوانم از این ابزار بهجای مدیر محصولم استفاده کنم.",
|
||||
author: "رضا کریمی",
|
||||
role: "بنیانگذار",
|
||||
company: "InnovateCo",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/mainline/testimonials/kundo-marta.webp",
|
||||
},
|
||||
],
|
||||
className,
|
||||
}: Testimonial31Props) => {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("overflow-hidden py-28 lg:py-32", className)}
|
||||
>
|
||||
<div className="container">
|
||||
<div className="space-y-4">
|
||||
<h2 className="text-xl tracking-tight md:text-xl lg:text-2xll">
|
||||
{heading}
|
||||
</h2>
|
||||
<p className="max-w-md leading-snug text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
<Button variant="outline" className="shadow-md" asChild>
|
||||
<a href={ctaHref}>
|
||||
{ctaText} <ArrowLeft className="size-4" />
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="relative mt-8 -mr-[max(3rem,calc((100vw-80rem)/2+3rem))] md:mt-12 lg:mt-20">
|
||||
<Carousel
|
||||
opts={{
|
||||
align: "start",
|
||||
loop: true,
|
||||
}}
|
||||
className="w-full"
|
||||
>
|
||||
<CarouselContent>
|
||||
{testimonials.map((testimonial, index) => (
|
||||
<CarouselItem
|
||||
key={index}
|
||||
className="basis-4/5 sm:basis-3/5 md:basis-2/5 lg:basis-[28%] xl:basis-[28%] 2xl:basis-1/4"
|
||||
>
|
||||
<Card className="h-full overflow-hidden border-none bg-muted !pt-0">
|
||||
<CardContent className="flex h-full flex-col p-0">
|
||||
<div className="relative h-[288px] lg:h-[328px]">
|
||||
<img
|
||||
src={testimonial.image}
|
||||
alt={testimonial.author}
|
||||
className="absolute inset-0 size-full object-cover object-top"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-1 flex-col justify-between gap-10 p-6">
|
||||
<blockquote className="text-lg leading-tight font-medium md:text-xl lg:text-xl">
|
||||
{testimonial.quote}
|
||||
</blockquote>
|
||||
<div className="space-y-0.5">
|
||||
<div className="font-semibold text-primary">
|
||||
{testimonial.author}، {testimonial.role}
|
||||
</div>
|
||||
<div className="text-sm text-muted-foreground">
|
||||
{testimonial.company}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
<div className="mt-8 flex gap-3">
|
||||
<CarouselPrevious className="static size-14 translate-x-0 translate-y-0 bg-muted transition-colors hover:bg-muted/80 [&>svg]:size-6 lg:[&>svg]:size-8" />
|
||||
<CarouselNext className="static size-14 translate-x-0 translate-y-0 bg-muted transition-colors hover:bg-muted/80 [&>svg]:size-6 lg:[&>svg]:size-8" />
|
||||
</div>
|
||||
</Carousel>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Testimonial31 };
|
||||
Reference in New Issue
Block a user