Skip to content

Commit 09bae5d

Browse files
committed
fix pic layout
1 parent ea21661 commit 09bae5d

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

frontend/main/src/components/user/MembershipCards.tsx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ export default function MembershipCards({
7474
src={img}
7575
loader={() => img}
7676
unoptimized={true}
77-
layout="fixed"
78-
width="335"
79-
height="270"
77+
layout="fill"
78+
className="z-10"
8079
alt={`Product Photo for ${product.description}`}
8180
/>
8281
);
@@ -125,20 +124,18 @@ export default function MembershipCards({
125124
key={product.role}
126125
onClick={() => onSelectPlan(product)}
127126
>
128-
{/* <div
129-
className={
130-
'radialGradiant block absolute w-48 h-48 bottom-0 left-0 mb-24 ml-3'
131-
}
132-
></div> */}
133-
{product.images ? (
134-
getProductImage(product)
135-
) : (
136-
<AJPrimary className="w-full h-full" />
137-
)}
138-
<span className="block text-basics-200 dark:text-basics-200">
139-
{product?.description}
140-
</span>
141-
127+
<div className="relative">
128+
<div className="w-48 h-48">
129+
{product.images ? (
130+
getProductImage(product)
131+
) : (
132+
<AJPrimary className="w-full h-full" />
133+
)}
134+
<span className="block text-basics-200 dark:text-basics-200">
135+
{product?.description}
136+
</span>
137+
</div>
138+
</div>
142139
<div className="flex justify-between">
143140
<span className="block text-xl font-semibold">
144141
{product.name}

0 commit comments

Comments
 (0)