Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
import { ChevronRight } from "lucide-react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const codeSample = `
|
||||
curl 'https://api.example.com/v1/endpoint' \\
|
||||
-X POST \\
|
||||
-u username:password \\
|
||||
-d param_1=1001 \\
|
||||
-d param_3=true \\
|
||||
-d param_2="Donec quis lorem ligula."
|
||||
`.trim();
|
||||
|
||||
interface Hero9Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero9 = ({ className }: Hero9Props) => {
|
||||
return (
|
||||
<section className={cn("relative py-32", className)}>
|
||||
{/* Background gradient */}
|
||||
<div className="pointer-events-none absolute inset-x-0 -top-20 -bottom-20 bg-[radial-gradient(ellipse_60%_60%_at_65%_50%,hsl(var(--accent))_0%,transparent_80%)]"></div>
|
||||
{/* Background pattern */}
|
||||
<div className="pointer-events-none absolute inset-x-0 -top-20 -bottom-20 bg-[radial-gradient(hsl(var(--accent-foreground)/0.1)_1px,transparent_1px)] [mask-image:radial-gradient(ellipse_60%_60%_at_65%_50%,#000_0%,transparent_80%)] [background-size:8px_8px]"></div>
|
||||
{/* Content */}
|
||||
<div className="relative container">
|
||||
<div className="flex flex-col items-start text-start">
|
||||
<Badge variant="outline">نسخه جدید منتشر شد</Badge>
|
||||
<h1 className="my-6 text-xl font-bold text-pretty lg:text-2xll">
|
||||
به دنیای توسعه سریع رابط کاربری خوش آمدید
|
||||
</h1>
|
||||
<p className="mb-8 max-w-3xl text-muted-foreground lg:text-xl">
|
||||
کامپوننتهای آماده و استاندارد را انتخاب کنید، سفارشیسازی کنید و بدون اتلاف زمان در پروژه خود بهکار بگیرید.
|
||||
</p>
|
||||
<div className="flex w-full flex-col justify-start gap-2 sm:flex-row">
|
||||
<Button className="w-full sm:w-auto">
|
||||
شروع رایگان
|
||||
<ChevronRight className="ms-2 size-4 rtl:rotate-180" />
|
||||
</Button>
|
||||
<Button variant="outline" className="w-full sm:w-auto">
|
||||
مشاهده امکانات
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative mt-12 grid grid-cols-12 md:gap-12">
|
||||
<div className="col-span-12 md:col-span-10">
|
||||
<div className="aspect-video overflow-clip rounded-lg border border-border bg-background shadow-md">
|
||||
{/* Hero Image */}
|
||||
</div>
|
||||
</div>
|
||||
<div className="absolute inset-0">
|
||||
<div className="grid h-full grid-cols-12 md:gap-12">
|
||||
<div className="col-span-10 col-start-2 -mt-6 grid translate-y-0 items-start justify-center sm:translate-y-0 sm:items-center md:col-span-6 md:col-end-12 lg:-mt-12 lg:items-start">
|
||||
<div className="absolute h-[140px] w-full rounded-lg bg-primary p-4 shadow-lg">
|
||||
<pre className="[mask-image:linear-gradient(to_right,#000_80%,transparent_100%)] font-mono text-xs leading-normal text-accent">
|
||||
<code>{codeSample}</code>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero9 };
|
||||
Reference in New Issue
Block a user