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
+19 -12
View File
@@ -13,20 +13,26 @@ interface Feature249Props {
const Feature249 = ({ className }: Feature249Props) => {
return (
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
<div className="container">
<section
dir="rtl"
lang="fa"
className={cn("relative w-full min-w-0 overflow-hidden py-32", className)}
>
<div className="container min-w-0">
<ContainerScroll
titleComponent={
<>
<p className="mx-auto mb-4 text-pretty text-muted-foreground md:text-xl">
<p className="mx-auto mb-4 max-w-3xl text-pretty text-muted-foreground md:text-xl">
با یادآورهای هوشمند و اولویت‌بندی سرنخ، زمان تیم روی معاملات با احتمال بیشتر صرف می‌شود و چرخه فروش کوتاه‌تر می‌شود.
</p>
<h1 className="text-2xll font-semibold tracking-tighter text-balance md:text-8xl xl:text-[10rem]">
<span className="pe-6 text-muted-foreground/40">پیش‌بینی درآمد را دقیق‌تر کنید</span>
<h1 className="text-3xl font-semibold tracking-tighter text-balance break-words sm:text-4xl md:text-5xl lg:text-6xl xl:text-7xl">
<span className="pe-2 text-muted-foreground/40 sm:pe-4 md:pe-6">
پیش‌بینی درآمد را دقیق‌تر کنید
</span>
<AuroraText
colors={["#ff6449", "#ff6449", "#6248fe", "#6248fe"]}
>
چرخه فروش را از سرنخ تا قرارداد در یک مسیر مشخص پیش ببرید. مدیران می‌توانند گلوگاه‌ها را ببینند و تیم‌ها با اولویت درست روی معاملات ارزشمند تمرکز کنند.
چرخه فروش را از سرنخ تا قرارداد در یک مسیر مشخص پیش ببرید
</AuroraText>
</h1>
</>
@@ -78,7 +84,8 @@ export const ContainerScroll = ({
}, []);
const scaleDimensions = () => {
return isMobile ? [0.7, 0.9] : [1.05, 1];
// Keep scale ≤ 1 so the 3D card never bleeds past the preview frame.
return isMobile ? [0.7, 0.9] : [0.95, 1];
};
const rotate = useTransform(scrollYProgress, [0, 1], [20, 0]);
@@ -87,11 +94,11 @@ export const ContainerScroll = ({
return (
<div
className="relative flex h-[60rem] items-center justify-center"
className="relative flex h-[40rem] w-full min-w-0 items-center justify-center overflow-hidden md:h-[50rem] lg:h-[60rem]"
ref={containerRef}
>
<div
className="relative w-full"
className="relative w-full min-w-0"
style={{
perspective: "1000px",
}}
@@ -117,7 +124,7 @@ export const Header = ({
style={{
translateY: translate,
}}
className="div mx-auto max-w-5xl text-center"
className="mx-auto w-full min-w-0 max-w-5xl px-2 text-center sm:px-4"
>
{titleComponent}
</motion.div>
@@ -140,9 +147,9 @@ export const Card = ({
rotateX: rotate,
scale,
}}
className="-4 mx-auto -mt-12 h-[30rem] w-full max-w-5xl rounded-[30px] p-2 shadow-2xl md:h-[40rem] md:p-6"
className="mx-auto -mt-12 h-[24rem] w-full min-w-0 max-w-5xl overflow-hidden rounded-[30px] p-2 shadow-2xl md:h-[36rem] md:p-6 lg:h-[40rem]"
>
<div className="size-full overflow-hidden rounded-2xl bg-gray-100 md:rounded-2xl md:p-4 dark:bg-zinc-900">
<div className="size-full min-w-0 overflow-hidden rounded-2xl bg-gray-100 md:rounded-2xl md:p-4 dark:bg-zinc-900">
{children}
</div>
</motion.div>