Files
reui-blocks/blocks/hero30.tsx
T

51 lines
2.5 KiB
TypeScript

import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
interface Hero30Props {
className?: string;
}
const Hero30 = ({ className }: Hero30Props) => {
return (
<section className={cn("relative overflow-hidden py-32", className)}>
<div className="relative container">
<div className="grid items-center gap-8 lg:grid-cols-2">
<div className="flex flex-col items-center text-center lg:items-start lg:text-start">
<h1 className="my-6 text-xl font-bold text-pretty lg:text-2xll">
توسعه محصولات دیجیتال را سریع‌تر آغاز کنید
</h1>
<p className="mb-8 max-w-xl text-muted-foreground lg:text-xl">
بلاک‌های آماده را متناسب با نیاز خود سفارشی‌سازی کنید و بدون شروع از صفر، پروژه را توسعه دهید.
</p>
<div className="flex w-full flex-col justify-center gap-2 sm:flex-row lg:justify-start">
<Button variant="outline" className="w-full sm:w-auto">
مشاهده امکانات
</Button>
<Button className="w-full sm:w-auto">شروع رایگان</Button>
</div>
</div>
<div className="relative mt-16 -mb-16 flex justify-center gap-4 lg:mt-0 lg:mb-0 lg:justify-end">
{/* Mesh background */}
<div className="absolute -inset-8 z-0 rounded-2xl bg-linear-to-r from-amber-100 via-red-200 to-teal-100 opacity-70 blur-3xl"></div>
{/* Images with relative positioning to appear above the mesh */}
<div className="relative z-10">
<img
src="/block-media/shadcnblocks/block/placeholder-1.svg"
alt="تصویر نمونه قهرمان"
className="h-[400px] rounded-lg border border-border object-cover object-center sm:max-w-[320px]"
/>
</div>
<div className="relative z-10 hidden flex-col gap-4 sm:flex md:hidden 2xl:flex">
<div className="w-[256px] flex-1 overflow-clip rounded-lg border border-border bg-background"></div>
<div className="aspect-2/1 w-[256px] overflow-clip rounded-lg border border-border bg-background"></div>
</div>
</div>
</div>
</div>
</section>
);
};
export { Hero30 };