fix some bug in some blocks
This commit is contained in:
+17
-13
@@ -66,24 +66,28 @@ const Feature197 = ({
|
||||
const [activeImage, setActiveImage] = useState(features[0].image);
|
||||
|
||||
return (
|
||||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("relative w-full min-w-0 overflow-hidden py-32", className)}
|
||||
>
|
||||
<div className="container mx-auto min-w-0">
|
||||
<h2 className="mb-12 text-3xl font-semibold text-balance md:text-xl">
|
||||
عملیات سازمان را یکپارچه کنید
|
||||
</h2>
|
||||
<div className="flex w-full items-start justify-between gap-12">
|
||||
<div className="w-full md:w-1/2">
|
||||
<div className="flex w-full min-w-0 flex-col items-stretch justify-between gap-8 md:flex-row md:items-start md:gap-12">
|
||||
<div className="w-full min-w-0 md:w-1/2">
|
||||
<Accordion
|
||||
type="single"
|
||||
collapsible
|
||||
className="w-full"
|
||||
className="w-full min-w-0"
|
||||
defaultValue="item-1"
|
||||
>
|
||||
{features.map((tab) => (
|
||||
<AccordionItem
|
||||
key={tab.id}
|
||||
value={`item-${tab.id}`}
|
||||
className="transition-opacity hover:opacity-80"
|
||||
className="min-w-0 transition-opacity hover:opacity-80"
|
||||
>
|
||||
<AccordionTrigger
|
||||
onClick={() => {
|
||||
@@ -94,7 +98,7 @@ const Feature197 = ({
|
||||
>
|
||||
<span
|
||||
className={cn(
|
||||
"text-xl",
|
||||
"min-w-0 text-xl text-balance break-words",
|
||||
tab.id === activeTabId
|
||||
? "text-foreground"
|
||||
: "text-muted-foreground",
|
||||
@@ -104,14 +108,14 @@ const Feature197 = ({
|
||||
</span>
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="pb-2">
|
||||
<p className="text-base text-pretty text-muted-foreground">
|
||||
<p className="text-base text-pretty break-words text-muted-foreground">
|
||||
{tab.description}
|
||||
</p>
|
||||
<div className="mt-4 md:hidden">
|
||||
<div className="mt-4 overflow-hidden rounded-md md:hidden">
|
||||
<img
|
||||
src={tab.image}
|
||||
alt={tab.imageAlt}
|
||||
className="h-full max-h-80 w-full rounded-md object-cover"
|
||||
className="h-full max-h-80 w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
</AccordionContent>
|
||||
@@ -119,15 +123,15 @@ const Feature197 = ({
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
<div className="relative hidden w-1/2 overflow-hidden rounded-xl bg-muted md:block">
|
||||
<div className="relative aspect-4/3">
|
||||
<div className="relative hidden w-full min-w-0 overflow-hidden rounded-xl bg-muted md:block md:w-1/2">
|
||||
<div className="relative aspect-4/3 w-full">
|
||||
{features.map((feature) => (
|
||||
<img
|
||||
key={feature.id}
|
||||
src={feature.image}
|
||||
alt={feature.imageAlt}
|
||||
className={cn(
|
||||
"absolute inset-0 h-full w-full rounded-md object-cover transition-opacity duration-500",
|
||||
"absolute inset-0 size-full object-cover transition-opacity duration-500",
|
||||
activeImage === feature.image ? "opacity-100" : "opacity-0",
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user