Files
reui-blocks/blocks/download2.tsx
T

142 lines
4.6 KiB
TypeScript

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: "اعلان سرنخ جدید و ثبت تماس سریع روی iPhone و iPad.",
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 };