From eaba26815ad15e0bad03d72a3e8071b2863fcf26 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Mon, 18 Nov 2024 14:25:31 +0700 Subject: [PATCH] feat: update layout of ProjectDealPage for improved responsiveness and accessibility --- src/app/(investment)/deals/[id]/page.tsx | 82 ++++++------------------ 1 file changed, 18 insertions(+), 64 deletions(-) diff --git a/src/app/(investment)/deals/[id]/page.tsx b/src/app/(investment)/deals/[id]/page.tsx index 8cb6b8b..2322aef 100644 --- a/src/app/(investment)/deals/[id]/page.tsx +++ b/src/app/(investment)/deals/[id]/page.tsx @@ -98,7 +98,7 @@ export default async function ProjectDealPage({ params }: { params: { id: number ))} -
+
{/* image carousel */} -
- -
- - {/*
-
- -

${totalDealAmount}

-

- {toPercentage(totalDealAmount, projectData?.target_investment)}% raised of $ - {projectData?.target_investment} max goal -

- -
- -

-

{dealList.length}

-

-

Investors

-
- - -

- {projectData?.investment_deadline ? ( - <> -

{Math.floor(hourLeft)} hours

-

Left to invest

- - ) : ( -

No deadline

- )} -
- -
-

Dataroom

- - -
-
-
*/}
{/* menu */}
@@ -215,7 +181,6 @@ export default async function ProjectDealPage({ params }: { params: { id: number Pitch - {/* General Data */} Updates @@ -235,17 +200,6 @@ export default async function ProjectDealPage({ params }: { params: { id: number - {/* - - - general - general Description - - -

general Content

-
-
-
*/}