From 05f92067bc84bf4100369d86eea335b91db7ad39 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 9 Dec 2024 22:07:55 +0000 Subject: [PATCH] fix(frontend): update min height of project home page card, move start mapping button --- .../components/home/ExploreProjectCard.tsx | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/frontend/src/components/home/ExploreProjectCard.tsx b/src/frontend/src/components/home/ExploreProjectCard.tsx index b7e03f9d7..cb5ff550c 100755 --- a/src/frontend/src/components/home/ExploreProjectCard.tsx +++ b/src/frontend/src/components/home/ExploreProjectCard.tsx @@ -69,7 +69,7 @@ export default function ExploreProjectCard({ data }: { data: projectType }) { sx={{ boxShadow: 0 }} onMouseEnter={onHoverIn} onMouseLeave={onHoverOut} - className="hover:fmtm-bg-red-50 hover:fmtm-shadow-xl fmtm-duration-500 fmtm-rounded-lg fmtm-border-[1px] fmtm-border-solid fmtm-border-[#706E6E] fmtm-bg-white fmtm-h-[22.5rem]" + className="hover:fmtm-bg-red-50 hover:fmtm-shadow-xl fmtm-duration-500 fmtm-rounded-lg fmtm-border-[1px] fmtm-border-solid fmtm-border-[#706E6E] fmtm-bg-white fmtm-min-h-[22.5rem]" >
@@ -108,27 +108,11 @@ export default function ExploreProjectCard({ data }: { data: projectType }) { {data?.location_str}

- - {/* Start Mapping Button */} -
- { - // Prevent card click - e.stopPropagation(); - // Redirect without opening new tab - window.location.href = `/mapnow/${data.id}`; - }} - > - Start Mapping - -
+ {/* Number of Contributors */} - contributors + contributor{data.num_contributors === 1 ? '' : 's'} {/* Contribution Progress Bar */}
+ + {/* Start Mapping Button */} +
+ { + // Prevent card click + e.stopPropagation(); + // Redirect without opening new tab + window.location.href = `/mapnow/${data.id}`; + }} + > + Start Mapping + +