Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature2Props {
|
||||
title: string;
|
||||
description?: string;
|
||||
imageSrc: string;
|
||||
imageAlt: string;
|
||||
buttonPrimary: {
|
||||
text: string;
|
||||
href: string;
|
||||
};
|
||||
buttonSecondary: {
|
||||
text: string;
|
||||
href: string;
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature2 = ({
|
||||
title = "پیشبینی درآمد را دقیقتر کنید",
|
||||
description = "با یادآورهای هوشمند و اولویتبندی سرنخ، زمان تیم روی معاملات با احتمال بیشتر صرف میشود و چرخه فروش کوتاهتر میشود.",
|
||||
imageSrc = "/block-media/shadcnblocks/block/placeholder-1.svg",
|
||||
imageAlt = "صف اولویت سرنخها",
|
||||
buttonPrimary = {
|
||||
text: "شروع کنید",
|
||||
href: "https://ShadcnBlocks",
|
||||
},
|
||||
buttonSecondary = {
|
||||
text: "بیشتر بدانید",
|
||||
href: "https://ShadcnBlocks",
|
||||
},
|
||||
className,
|
||||
}: Feature2Props) => {
|
||||
return (
|
||||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||||
<div className="container">
|
||||
<div className="grid items-center gap-8 md:gap-16 lg:grid-cols-2">
|
||||
<img
|
||||
src={imageSrc}
|
||||
alt={imageAlt}
|
||||
className="max-h-96 w-full rounded-md object-cover"
|
||||
/>
|
||||
<div className="flex flex-col items-center text-center lg:items-start lg:text-start">
|
||||
<h2 className="my-6 mt-0 text-xl font-semibold text-balance lg:text-2xll">
|
||||
{title}
|
||||
</h2>
|
||||
{description && (
|
||||
<p className="mb-8 max-w-xl text-muted-foreground lg:text-lg">
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
<div className="flex w-full flex-col justify-center gap-2 sm:flex-row lg:justify-start">
|
||||
<Button asChild>
|
||||
<a href={buttonPrimary.href} target="_blank">
|
||||
{buttonPrimary.text}
|
||||
</a>
|
||||
</Button>
|
||||
<Button variant="outline" asChild>
|
||||
<a href={buttonSecondary.href} target="_blank">
|
||||
{buttonSecondary.text}
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature2 };
|
||||
Reference in New Issue
Block a user