fix some bug in some blocks
This commit is contained in:
+31
-16
@@ -51,37 +51,52 @@ const Hero240 = ({ className }: Hero240Props) => {
|
||||
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn(
|
||||
"relative h-full w-screen overflow-hidden py-32",
|
||||
className,
|
||||
// After `className` so injected `w-screen` / `100vw` cannot win in the merge
|
||||
"relative w-full max-w-full min-w-0 overflow-x-clip overflow-hidden py-32",
|
||||
)}
|
||||
>
|
||||
<div className="container flex flex-col items-center justify-center gap-5 text-center">
|
||||
<div className="flex items-center gap-2">
|
||||
<Zap className="size-5" />
|
||||
<div className="container flex w-full min-w-0 max-w-full flex-col items-stretch justify-center gap-5 text-center">
|
||||
<div className="flex min-w-0 items-center justify-center gap-2">
|
||||
<Zap className="size-5 shrink-0" />
|
||||
<p className="w-fit rounded-full py-1 font-medium tracking-tight">
|
||||
کتابخانه کامپوننت
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
<h1 className="mt-3 max-w-xl text-2xll font-medium font-semibold tracking-tighter lg:max-w-3xl lg:text-2xll">
|
||||
<h1 className="mx-auto mt-3 max-w-xl text-balance break-words text-2xl font-semibold tracking-tighter sm:text-3xl lg:max-w-3xl lg:text-2xll">
|
||||
کامپوننتهای آماده برای توسعه سریعتر محصولات
|
||||
</h1>
|
||||
<p className="max-w-xl text-muted-foreground">
|
||||
</h1>
|
||||
<p className="mx-auto max-w-xl text-balance text-pretty text-muted-foreground">
|
||||
صدها بلاک و کامپوننت آماده مبتنی بر رابط کاربری، استایلدهی مدرن و ری یو آی که مستقیماً در پروژههای شما قابل استفاده هستند.
|
||||
</p>
|
||||
<div className="mt-10 flex w-full max-w-2xl items-center justify-center gap-4">
|
||||
<div className="flex w-full max-w-md rounded-full border p-1">
|
||||
</p>
|
||||
<div className="mx-auto mt-10 flex w-full min-w-0 max-w-2xl items-center justify-center gap-4">
|
||||
<div className="flex h-12 w-full min-w-0 max-w-md items-center rounded-full border p-1">
|
||||
<Input
|
||||
className="w-full rounded-full border-none shadow-none ring-0 focus-visible:ring-0 focus-visible:outline-none active:ring-0 active:outline-0"
|
||||
className="min-w-0 flex-1 rounded-full border-none shadow-none ring-0 focus-visible:ring-0 focus-visible:outline-none active:ring-0 active:outline-0"
|
||||
placeholder="ایمیل خود را وارد کنید"
|
||||
/>
|
||||
<Button className="rounded-full">عضویت رایگان</Button>
|
||||
<Button className="h-full shrink-0 rounded-full px-4 sm:px-6">
|
||||
عضویت رایگان
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-15 flex h-full w-full items-center justify-center">
|
||||
<ThreeDMarquee className="rounded-none" images={images} />
|
||||
<div className="absolute bottom-0 left-0 h-1/3 w-full bg-gradient-to-t from-background via-background to-transparent" />
|
||||
{/*
|
||||
ThreeDMarquee uses an internal 1720px stage. Keep this wrapper
|
||||
width-bound + overflow-x-clip so it cannot widen #preview-frame.
|
||||
*/}
|
||||
<div
|
||||
className="relative isolate mt-15 h-[360px] w-full min-w-0 max-w-full self-stretch overflow-x-clip overflow-hidden sm:h-[480px] md:h-[600px]"
|
||||
style={{ contain: "inline-size" }}
|
||||
>
|
||||
<ThreeDMarquee
|
||||
className="!mx-0 !h-full !w-full !max-w-full min-w-0 rounded-none"
|
||||
images={images}
|
||||
/>
|
||||
<div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-background via-background to-transparent" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user