Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature {
|
||||
id: string;
|
||||
heading: string;
|
||||
description: string;
|
||||
image: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface Feature73Props {
|
||||
title: string;
|
||||
description?: string;
|
||||
buttonUrl?: string;
|
||||
buttonText?: string;
|
||||
features?: Feature[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature73 = ({
|
||||
title = "با هوش مصنوعی سریعتر تصمیم بگیرید",
|
||||
description = "مدلهای هوشمند الگوهای پنهان در داده فروش و پشتیبانی را پیدا میکنند. تیمها با پیشنهادهای عملی، سریعتر اقدام میکنند.",
|
||||
buttonUrl = "https://ShadcnBlocks",
|
||||
buttonText = "تحلیل احساس",
|
||||
features = [
|
||||
{
|
||||
id: "feature-1",
|
||||
heading: "تحلیل احساس",
|
||||
description:
|
||||
"درخواستها را خودکار دستهبندی کنید و به تیم مناسب بفرستید.",
|
||||
image: "/block-media/shadcnblocks/block/placeholder-1.svg",
|
||||
url: "https://ShadcnBlocks",
|
||||
},
|
||||
{
|
||||
id: "feature-2",
|
||||
heading: "دستیار گفتگو",
|
||||
description:
|
||||
"مشتریان در معرض ریزش را زودتر شناسایی کنید.",
|
||||
image: "/block-media/shadcnblocks/block/placeholder-2.svg",
|
||||
url: "https://ShadcnBlocks",
|
||||
},
|
||||
{
|
||||
id: "feature-3",
|
||||
heading: "خلاصهسازی هوشمند",
|
||||
description:
|
||||
"متنهای طولانی را در چند ثانیه به نکات کلیدی تبدیل کنید.",
|
||||
image: "/block-media/shadcnblocks/block/placeholder-3.svg",
|
||||
url: "https://ShadcnBlocks",
|
||||
},
|
||||
],
|
||||
className,
|
||||
}: Feature73Props) => {
|
||||
return (
|
||||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||||
<div className="container">
|
||||
<div className="mb-8 lg:max-w-sm">
|
||||
<h2 className="mb-3 text-3xl font-semibold md:mb-4 md:text-xl lg:mb-6">
|
||||
{title}
|
||||
</h2>
|
||||
{description && (
|
||||
<p className="mb-8 text-muted-foreground lg:text-lg">
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
{buttonUrl && (
|
||||
<Button variant="link" asChild>
|
||||
<a
|
||||
href={buttonUrl}
|
||||
className="group flex items-center gap-2 font-medium md:text-base lg:text-lg"
|
||||
>
|
||||
{buttonText}
|
||||
<ArrowRight className="size-4 rtl:rotate-180" />
|
||||
</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="grid gap-6 md:grid-cols-3 lg:gap-8">
|
||||
{features.map((feature) => (
|
||||
<div
|
||||
key={feature.id}
|
||||
className="flex flex-col overflow-clip rounded-xl border border-border"
|
||||
>
|
||||
<a href={feature.url}>
|
||||
<img
|
||||
src={feature.image}
|
||||
alt={`نمای ${feature.heading}`}
|
||||
className="aspect-16/9 h-full w-full object-cover object-center transition-opacity hover:opacity-80"
|
||||
/>
|
||||
</a>
|
||||
<div className="px-6 py-8 md:px-8 md:py-10 lg:px-10 lg:py-12">
|
||||
<h3 className="mb-3 text-lg font-semibold md:mb-4 md:text-xl lg:mb-6">
|
||||
{feature.heading}
|
||||
</h3>
|
||||
<p className="text-muted-foreground lg:text-lg">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature73 };
|
||||
Reference in New Issue
Block a user