113 lines
4.9 KiB
TypeScript
113 lines
4.9 KiB
TypeScript
import { ArrowDown, ArrowRight } from "lucide-react";
|
||
|
||
import { Button } from "@/components/ui/button";
|
||
import { cn } from "@/lib/utils";
|
||
|
||
const metrics = [
|
||
{ value: "تحلیل داده", label: "داشبورد" },
|
||
{ value: "۵", label: "شاخص کلیدی" },
|
||
{ value: "بینش لحظهای", label: "تحلیل داده" },
|
||
{ value: "۱۰", label: "داشبورد" },
|
||
];
|
||
|
||
interface Feature71Props {
|
||
className?: string;
|
||
}
|
||
|
||
const Feature71 = ({ className }: Feature71Props) => {
|
||
return (
|
||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||
<div className="container flex flex-col items-center gap-16 lg:px-16">
|
||
<div className="text-center">
|
||
<p className="mb-6 text-xs font-medium tracking-wider uppercase">
|
||
شاخص کلیدی
|
||
</p>
|
||
<h3 className="mb-3 text-3xl font-semibold text-pretty md:mb-4 md:text-xl lg:mb-6 lg:max-w-3xl lg:text-2xll">
|
||
داشبورد سفارشی
|
||
</h3>
|
||
<p className="mb-8 text-muted-foreground lg:max-w-2xl lg:text-lg">
|
||
گزارشهای بصری نشان میدهند کدام اقدام بیشترین اثر را روی درآمد و نگهداشت مشتری داشته است.
|
||
</p>
|
||
<div className="flex w-full flex-col justify-center gap-2 sm:flex-row">
|
||
<Button className="w-full sm:w-auto">
|
||
<ArrowDown className="size-4" />
|
||
بینش لحظهای
|
||
</Button>
|
||
<Button variant="outline" className="w-full sm:w-auto">
|
||
همین حالا شروع کنید
|
||
</Button>
|
||
</div>
|
||
</div>
|
||
<div className="grid w-full grid-cols-2 gap-4 sm:gap-6 lg:grid-cols-4 lg:gap-8">
|
||
<a
|
||
href="#"
|
||
className="group relative col-span-2 overflow-clip rounded-lg sm:max-lg:col-span-1"
|
||
>
|
||
<img
|
||
src="/block-media/external/unsplash/photo-1548324215-9133768e4094.jpg"
|
||
alt="گزارش عملکرد"
|
||
className="absolute h-full w-full object-cover object-center"
|
||
/>
|
||
<div className="relative flex h-full w-full flex-col items-start justify-between bg-black/60 p-4 transition-colors hover:bg-black/70 sm:aspect-3/2 md:p-6 lg:p-10">
|
||
<img
|
||
src="/block-media/shadcnblocks/block/logos/astro-wordmark.svg"
|
||
alt="داشبورد تحلیل داده"
|
||
className="mb-12 h-8 invert md:h-12 dark:invert"
|
||
/>
|
||
<div className="flex items-center text-xs font-medium text-white md:text-base lg:text-lg">
|
||
تحلیل داده
|
||
<ArrowRight className="ms-2 size-4 transition-transform group-hover:translate-x-1 rtl:rotate-180 rtl:group-hover:-translate-x-1" />
|
||
</div>
|
||
</div>
|
||
</a>
|
||
{metrics.slice(0, 2).map((metric) => (
|
||
<div
|
||
key={metric.label}
|
||
className="flex flex-col justify-between rounded-lg bg-accent p-4 sm:justify-end md:p-6 lg:p-10"
|
||
>
|
||
<div className="mb-8 text-3xl sm:mb-2 lg:text-2xll">
|
||
{metric.value}
|
||
</div>
|
||
<div className="text-xs md:text-base lg:text-lg">{metric.label}</div>
|
||
</div>
|
||
))}
|
||
{metrics.slice(2).map((metric) => (
|
||
<div
|
||
key={metric.label}
|
||
className="flex flex-col justify-between rounded-lg bg-accent p-4 md:p-6 lg:p-10"
|
||
>
|
||
<div className="mb-8 text-3xl lg:text-2xll">{metric.value}</div>
|
||
<div className="text-xs md:text-base lg:text-lg">{metric.label}</div>
|
||
</div>
|
||
))}
|
||
<a
|
||
href="#"
|
||
className="group relative col-span-2 overflow-clip rounded-lg sm:max-lg:col-span-1"
|
||
>
|
||
<img
|
||
src="/block-media/external/unsplash/photo-1550070881-a5d71eda5800.jpg"
|
||
alt="نمودار شاخص کلیدی"
|
||
className="absolute h-full w-full object-cover object-center"
|
||
/>
|
||
<div className="relative flex h-full w-full flex-col items-start justify-between gap-4 bg-black/50 p-4 transition-colors hover:bg-black/70 sm:aspect-2/1 md:flex-row md:items-end md:p-6 lg:p-10">
|
||
<div>
|
||
<img
|
||
src="/block-media/shadcnblocks/block/logos/shadcn-ui-wordmark.svg"
|
||
alt="گزارش عملکرد"
|
||
className="mb-8 h-7 invert md:mb-0 dark:invert"
|
||
/>
|
||
</div>
|
||
<div className="flex shrink-0 items-center text-xs font-medium text-white md:text-base lg:text-lg">
|
||
داشبورد
|
||
<ArrowRight className="ms-2 size-4 transition-transform group-hover:translate-x-1 rtl:rotate-180 rtl:group-hover:-translate-x-1" />
|
||
</div>
|
||
</div>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
);
|
||
};
|
||
|
||
export { Feature71 };
|