fix some bug in some blocks

This commit is contained in:
mr.sabri
2026-07-23 06:55:21 +03:30
parent 89fbd6d158
commit edb3e10469
65 changed files with 1565 additions and 1476 deletions
+41 -33
View File
@@ -62,42 +62,16 @@ const Hero237 = ({ className }: Hero237Props) => {
return (
<section
className={cn(
"relative w-screen overflow-hidden border border-b py-32",
"relative w-full overflow-hidden border border-b py-32",
className,
)}
>
<div className="relative container flex flex-col lg:flex-row">
<div className="mt-10 space-y-12 lg:w-1/2">
<p className="w-fit rounded-full bg-muted px-4 py-1 text-sm uppercase">
چرا ما؟
</p>
<h1 className="font-calSans mt-3 max-w-lg text-2xll font-medium lg:text-2xll">
<span className="opacity-30">همه کامپوننت‌هایی</span> که نیاز دارید
</h1>
<p className="max-w-lg text-lg text-muted-foreground">
صدها بلاک و کامپوننت آماده مبتنی بر رابط کاربری، استایل‌دهی مدرن و ری یو آی که مستقیماً در پروژه‌های شما قابل استفاده هستند.
</p>
<ul className="mt-18 flex flex-wrap gap-9">
{stats.map((stat, index) => (
<li key={stat.title} className="flex items-center gap-4">
<div className="flex size-12 items-center justify-center rounded-2xl border md:size-18">
{stat.icon}
</div>
<div>
<h2 className="font-calSans text-xl font-medium md:text-3xl">
{stat.title}
</h2>
<p className="text-sm md:text-base">{stat.description}</p>
</div>
{index !== stats.length - 1 && (
<div className="ms-4 h-full w-px bg-gradient-to-t from-black via-border to-transparent" />
)}
</li>
))}
</ul>
</div>
<div className="relative h-112 lg:w-1/2">
{/* dir=ltr keeps visual: orbits left, text right; text column stays rtl */}
<div
dir="ltr"
className="relative container flex min-w-0 flex-col lg:flex-row lg:items-center"
>
<div className="relative order-2 h-112 w-full min-w-0 overflow-hidden lg:order-1 lg:w-1/2">
<div className="relative -left-35 flex h-[1100px] w-[1500px] flex-col items-center justify-center lg:absolute lg:left-0">
<OrbitingCircles iconSize={40} radius={310} speed={2}>
{circle1Images.map((src, index) => (
@@ -129,6 +103,40 @@ const Hero237 = ({ className }: Hero237Props) => {
</OrbitingCircles>
</div>
</div>
<div
dir="rtl"
className="order-1 mt-10 w-full min-w-0 space-y-12 text-start lg:order-2 lg:w-1/2"
>
<p className="w-fit rounded-full bg-muted px-4 py-1 text-sm uppercase">
چرا ما؟
</p>
<h1 className="font-calSans mt-3 max-w-lg text-balance text-2xll font-medium lg:text-2xll">
<span className="opacity-30">همه کامپوننت‌هایی</span> که نیاز دارید
</h1>
<p className="max-w-lg text-balance text-lg text-muted-foreground">
صدها بلاک و کامپوننت آماده مبتنی بر رابط کاربری، استایل‌دهی مدرن و ری یو آی که مستقیماً در پروژه‌های شما قابل استفاده هستند.
</p>
<ul className="mt-18 flex flex-wrap gap-9">
{stats.map((stat, index) => (
<li key={stat.title} className="flex min-w-0 items-center gap-4">
<div className="flex size-12 shrink-0 items-center justify-center rounded-2xl border md:size-18">
{stat.icon}
</div>
<div className="min-w-0">
<h2 className="font-calSans text-xl font-medium md:text-3xl">
{stat.title}
</h2>
<p className="text-sm md:text-base">{stat.description}</p>
</div>
{index !== stats.length - 1 && (
<div className="ms-4 h-full w-px bg-gradient-to-t from-black via-border to-transparent" />
)}
</li>
))}
</ul>
</div>
</div>
</section>
);