From 0b7a9736438ec12eec7c1a78a60844a2d80c2a34 Mon Sep 17 00:00:00 2001 From: sirin Date: Sat, 5 Oct 2024 03:59:17 +0700 Subject: [PATCH] fix: make extendableCard and deals page more responsive --- src/app/deals/page.tsx | 2 +- src/components/extendableCard.tsx | 76 ++++++++++++++----------------- 2 files changed, 34 insertions(+), 44 deletions(-) diff --git a/src/app/deals/page.tsx b/src/app/deals/page.tsx index 85a375b..ff09810 100644 --- a/src/app/deals/page.tsx +++ b/src/app/deals/page.tsx @@ -104,7 +104,7 @@ export default function Deals() {

The deals attracting the most interest right now

{/* block for all the deals */} -
+
{filteredData.map((item, index) => ( -
- Card image -
-
-
- {props.name} +
+ {/* Image */} +
+ Card image + {/* Info 0 overlaps Image */} +
+
+ {props.name} +
+

{props.description}

- - {/* Default content (visible when not hovered) */} -
+
+ {/* Info 1 (Hidden on hover) */} +
+
Joined {props.joinDate}
-
+
{props.location}
-
+
{props.tags.map((tag) => ( ))}
- - {/* Hover content (appears when hovered) */} -
-

{props.description}

-
-
-
-
-

- ${props.totalRaised.toLocaleString()} committed and reserved -

-
-

- {props.totalInvestor.toLocaleString()} investors -

-
-

- ${props.minInvestment.toLocaleString()} min. investment -

-
-
-
-
+
+ {/* Info 2 (Visible on hover) */} +
+
+

+ ${props.totalRaised.toLocaleString()} committed and reserved +

+
+

+ {props.totalInvestor.toLocaleString()} investors +

+
+

+ ${props.minInvestment.toLocaleString()} min. investment +

);