fix some bug in some blocks
This commit is contained in:
+19
-14
@@ -120,10 +120,13 @@ const Feature281 = ({ className }: Feature281Props) => {
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("h-full w-screen overflow-hidden py-32", className)}
|
||||
className={cn(
|
||||
"relative h-full w-full overflow-hidden py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container flex w-full max-w-6xl flex-col items-center justify-center">
|
||||
<div className="relative flex h-full flex-col items-center justify-center gap-8 text-center">
|
||||
<div className="container flex w-full min-w-0 max-w-6xl flex-col items-center justify-center">
|
||||
<div className="relative flex h-full min-w-0 flex-col items-center justify-center gap-8 text-center">
|
||||
<p className="rounded-full bg-muted px-4 py-1 text-xs font-medium">
|
||||
ارتباط با مشتری
|
||||
</p>
|
||||
@@ -131,7 +134,7 @@ const Feature281 = ({ className }: Feature281Props) => {
|
||||
پایپلاین فروش
|
||||
</h1>
|
||||
</div>
|
||||
<div className="mt-24 flex items-center justify-center">
|
||||
<div className="mt-24 flex w-full min-w-0 items-center justify-center px-2">
|
||||
<CardStack items={CARDS} />
|
||||
</div>
|
||||
<Button variant="ghost" className="group/btn mt-8 w-fit" asChild>
|
||||
@@ -187,13 +190,13 @@ const CardStack = ({
|
||||
}, [startFlipping]);
|
||||
|
||||
return (
|
||||
<div className="relative h-60 w-96">
|
||||
<div className="relative h-60 w-full max-w-96 min-w-0">
|
||||
{cards.map((card, index) => {
|
||||
const CompanyIcon = card.companyIcon;
|
||||
return (
|
||||
<motion.div
|
||||
key={card.id}
|
||||
className="absolute flex h-60 w-96 flex-col justify-between rounded-3xl border border-neutral-200 bg-white p-4 text-start shadow-xl shadow-black/[0.1] dark:border-white/[0.1] dark:bg-black dark:shadow-white/[0.05]"
|
||||
className="absolute inset-x-0 flex h-60 w-full max-w-96 flex-col justify-between overflow-hidden rounded-3xl border border-neutral-200 bg-white p-4 text-start shadow-xl shadow-black/[0.1] dark:border-white/[0.1] dark:bg-black dark:shadow-white/[0.05]"
|
||||
style={{
|
||||
transformOrigin: "top center",
|
||||
}}
|
||||
@@ -208,20 +211,22 @@ const CardStack = ({
|
||||
bounce: 0.3,
|
||||
}}
|
||||
>
|
||||
<div className="font-normal text-neutral-700 dark:text-neutral-200">
|
||||
<div className="min-w-0 overflow-hidden font-normal text-neutral-700 dark:text-neutral-200">
|
||||
{card.content}
|
||||
</div>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
<Avatar key={index} className="size-12">
|
||||
<div className="mt-3 flex min-w-0 items-center justify-between gap-2">
|
||||
<div className="flex min-w-0 items-center gap-2">
|
||||
<Avatar key={index} className="size-12 shrink-0">
|
||||
<AvatarImage src={card.userImage} alt={card.name} />
|
||||
</Avatar>
|
||||
<div>
|
||||
<p className="font-medium">{card.name}</p>
|
||||
<p className="text-muted-foreground/80">{card.designation}</p>
|
||||
<div className="min-w-0">
|
||||
<p className="truncate font-medium">{card.name}</p>
|
||||
<p className="truncate text-muted-foreground/80">
|
||||
{card.designation}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex size-10 items-center justify-center rounded-full bg-muted-foreground/15">
|
||||
<div className="flex size-10 shrink-0 items-center justify-center rounded-full bg-muted-foreground/15">
|
||||
<CompanyIcon className="size-5" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user