fix some bug in some blocks
This commit is contained in:
+27
-22
@@ -13,35 +13,40 @@ interface Hero204Props {
|
||||
|
||||
const Hero204 = ({ className }: Hero204Props) => {
|
||||
return (
|
||||
<section className={cn("bg-background py-32", className)}>
|
||||
<div className="container flex flex-col items-center justify-center gap-4 text-center">
|
||||
<h2 className="flex text-xl tracking-tighter text-foreground">
|
||||
<section
|
||||
className={cn(
|
||||
"relative w-full overflow-hidden bg-background py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container flex min-w-0 flex-col items-center justify-center gap-4 text-center">
|
||||
<h2 className="flex items-center text-xl tracking-tighter text-foreground">
|
||||
<Sparkle className="ms-3" /> کتابخانه کامپوننت
|
||||
</h2>
|
||||
<h1 className="font-playfair max-w-xl text-xl tracking-tighter text-foreground md:text-2xll">
|
||||
</h2>
|
||||
<h1 className="font-playfair max-w-xl text-balance text-xl tracking-tighter text-foreground md:text-2xll">
|
||||
کامپوننتهای آماده برای توسعه سریع رابط کاربری
|
||||
</h1>
|
||||
<p className="mt-7 max-w-xl text-xl tracking-tight text-muted-foreground">
|
||||
</h1>
|
||||
<p className="mt-7 max-w-xl text-balance text-xl tracking-tight text-muted-foreground">
|
||||
صدها بلاک و کامپوننت آماده مبتنی بر رابط کاربری، استایلدهی مدرن و ری یو آی که مستقیماً در پروژههای شما قابل استفاده هستند.
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<div className="mt-10 flex w-full max-w-xl items-center justify-center rounded-full border p-1">
|
||||
<div className="mt-10 flex w-full max-w-xl min-w-0 items-center justify-center rounded-full border p-1">
|
||||
<Input
|
||||
placeholder="ایمیل خود را وارد کنید"
|
||||
className="w-full border-none ps-5 text-xl! tracking-tight shadow-none outline-none focus-visible:ring-0 focus-visible:outline-none"
|
||||
className="w-full min-w-0 border-none ps-5 text-xl! tracking-tight shadow-none outline-none focus-visible:ring-0 focus-visible:outline-none"
|
||||
/>
|
||||
<Button className="rounded-full px-10 py-7 text-lg text-background transition-all ease-in-out hover:px-12">
|
||||
<Button className="shrink-0 rounded-full px-10 py-7 text-lg text-background transition-all ease-in-out hover:px-12">
|
||||
شروع رایگان
|
||||
</Button>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{/* Iphone mockup with content */}
|
||||
<div className="relative mt-12 flex h-[450px] w-screen justify-center overflow-hidden border-b-2 border-border">
|
||||
{/* Iphone mockup with content — centered in preview frame */}
|
||||
<div className="relative mt-12 flex h-[450px] w-full min-w-0 justify-center overflow-hidden border-b-2 border-border">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 200, scale: 0.8 }}
|
||||
animate={{ opacity: 100, y: 0, scale: 1 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ ease: [0, 0.51, 0.2, 1.01], duration: 0.8 }}
|
||||
className="absolute mx-auto mt-6 me-58 hidden h-[850px] w-[400px] -rotate-18 items-center justify-center rounded-[75px] bg-black md:mt-12 md:flex md:h-[840px] md:w-[400px]"
|
||||
className="absolute top-0 left-1/2 z-0 mt-6 hidden h-[850px] w-[400px] -translate-x-[calc(50%+7.25rem)] -rotate-18 items-center justify-center rounded-[75px] bg-black md:mt-12 md:flex md:h-[840px]"
|
||||
>
|
||||
<img
|
||||
className="absolute z-2 scale-105 object-cover"
|
||||
@@ -52,12 +57,12 @@ const Hero204 = ({ className }: Hero204Props) => {
|
||||
<div className="mt-20 flex justify-between px-0">
|
||||
<h1 className="flex items-end gap-2 px-12 text-2xll font-semibold tracking-tight text-background md:text-2xll">
|
||||
کامپوننتهای رابط کاربری
|
||||
<div className="mb-2 size-3 rounded-full bg-red-500 md:size-5" />
|
||||
<div className="mb-2 size-3 rounded-full bg-red-500 md:size-5" />
|
||||
</h1>
|
||||
<div className="mt-2 me-8 flex flex-col items-end">
|
||||
<p className="text-lg tracking-tighter text-muted-foreground md:text-xl">
|
||||
آخرین بهروزرسانی
|
||||
</p>
|
||||
</p>
|
||||
<p className="-mt-1 text-xl font-semibold tracking-tighter text-muted-foreground/50 md:text-xl">
|
||||
2025
|
||||
</p>
|
||||
@@ -72,12 +77,12 @@ const Hero204 = ({ className }: Hero204Props) => {
|
||||
</motion.div>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 200, scale: 0.8 }}
|
||||
animate={{ opacity: 100, y: 0, scale: 1 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{
|
||||
ease: [0, 0.71, 0.2, 1.01],
|
||||
duration: 0.8,
|
||||
}}
|
||||
className="absolute mx-auto mt-6 flex h-[850px] w-[400px] items-center justify-center rounded-[75px] bg-background md:mt-24 md:ms-58 md:h-[840px] md:w-[400px] md:rotate-20"
|
||||
className="absolute top-0 left-1/2 z-10 mt-6 flex h-[850px] w-[400px] -translate-x-1/2 items-center justify-center rounded-[75px] bg-background md:mt-24 md:-translate-x-[calc(50%-7.25rem)] md:h-[840px] md:rotate-20"
|
||||
>
|
||||
<img
|
||||
className="absolute z-2 scale-105 object-cover"
|
||||
@@ -88,12 +93,12 @@ const Hero204 = ({ className }: Hero204Props) => {
|
||||
<div className="mt-20 flex justify-between px-0">
|
||||
<h1 className="flex items-end gap-2 px-12 text-2xll font-semibold tracking-tight text-foreground md:text-2xll">
|
||||
بلاکهای صفحات
|
||||
<div className="mb-2 size-3 rounded-full bg-red-500 md:size-5" />
|
||||
<div className="mb-2 size-3 rounded-full bg-red-500 md:size-5" />
|
||||
</h1>
|
||||
<div className="mt-2 me-8 flex flex-col items-end">
|
||||
<p className="text-lg tracking-tighter text-muted-foreground md:text-xl">
|
||||
بهروزرسانی جدید
|
||||
</p>
|
||||
</p>
|
||||
<p className="-mt-1 text-xl font-semibold tracking-tighter text-muted-foreground/50 md:text-xl">
|
||||
2025
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user