Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,141 @@
|
||||
import { Download, Monitor, Smartphone, Tablet } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Download2Props {
|
||||
heading?: string;
|
||||
description?: string;
|
||||
platforms?: {
|
||||
desktop?: {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
description: string;
|
||||
buttonText: string;
|
||||
url: string;
|
||||
};
|
||||
ios?: {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
description: string;
|
||||
url: string;
|
||||
};
|
||||
android?: {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
description: string;
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Download2 = ({
|
||||
heading = "دانلود",
|
||||
description =
|
||||
"پلتفرم خود را انتخاب کنید و همین حالا از اپلیکیشن ما استفاده کنید. روی همه دستگاهها و سیستمعاملهای رایج در دسترس است.",
|
||||
platforms = {
|
||||
desktop: {
|
||||
title: "دسکتاپ",
|
||||
subtitle: "PC/Mac",
|
||||
description: "راهحل کامل برای دسکتاپ.",
|
||||
buttonText: "دانلود",
|
||||
url: "https://www.ShadcnBlocks",
|
||||
},
|
||||
ios: {
|
||||
title: "گوشی همراه",
|
||||
subtitle: "iOS",
|
||||
description: "طراحیشده مخصوص دستگاههای موبایل اپل.",
|
||||
url: "#",
|
||||
},
|
||||
android: {
|
||||
title: "گوشی همراه / تبلت",
|
||||
subtitle: "Android",
|
||||
description: "بهینهشده برای اکوسیستم اندروید.",
|
||||
url: "#",
|
||||
},
|
||||
},
|
||||
className,
|
||||
}: Download2Props) => {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("bg-muted/50 py-32", className)}
|
||||
>
|
||||
<div className="container">
|
||||
<div className="mb-20 text-center">
|
||||
<h2 className="mb-6 text-xl font-bold tracking-tight sm:text-2xll lg:text-2xll">
|
||||
{heading}
|
||||
</h2>
|
||||
<p className="mx-auto mb-12 max-w-2xl text-lg text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto grid max-w-4xl gap-12 md:grid-cols-3">
|
||||
<div className="text-center">
|
||||
<div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-background shadow-sm">
|
||||
<Monitor className="h-10 w-10" />
|
||||
</div>
|
||||
<h3 className="mb-2 text-xl font-semibold" dir="rtl">
|
||||
{platforms.desktop?.subtitle}
|
||||
</h3>
|
||||
<p className="mb-6 text-sm text-muted-foreground">
|
||||
{platforms.desktop?.description}
|
||||
</p>
|
||||
<Button size="lg" asChild>
|
||||
<a
|
||||
href={platforms.desktop?.url}
|
||||
className="inline-flex items-center gap-2"
|
||||
>
|
||||
{platforms.desktop?.buttonText}
|
||||
<Download className="h-4 w-4" />
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="text-center">
|
||||
<div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-background shadow-sm">
|
||||
<Smartphone className="h-10 w-10" />
|
||||
</div>
|
||||
<h3 className="mb-2 text-xl font-semibold" dir="rtl">
|
||||
{platforms.ios?.subtitle}
|
||||
</h3>
|
||||
<p className="mb-6 text-sm text-muted-foreground">
|
||||
{platforms.ios?.description}
|
||||
</p>
|
||||
<a href={platforms.ios?.url} className="mx-auto block w-fit">
|
||||
<img
|
||||
src="/block-media/shadcnblocks/block/badges/appstore.png"
|
||||
alt="دانلود از اپ استور"
|
||||
className="h-10"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div className="text-center">
|
||||
<div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-background shadow-sm">
|
||||
<Tablet className="h-10 w-10" />
|
||||
</div>
|
||||
<h3 className="mb-2 text-xl font-semibold" dir="rtl">
|
||||
{platforms.android?.subtitle}
|
||||
</h3>
|
||||
<p className="mb-6 text-sm text-muted-foreground">
|
||||
{platforms.android?.description}
|
||||
</p>
|
||||
<a href={platforms.android?.url} className="mx-auto block w-fit">
|
||||
<img
|
||||
src="/block-media/shadcnblocks/block/badges/googleplay.png"
|
||||
alt="دانلود از گوگل پلی"
|
||||
className="h-10"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Download2 };
|
||||
Reference in New Issue
Block a user