From c3f462c34d1c94bd3a6d4c173d95cdcd0ec73d38 Mon Sep 17 00:00:00 2001 From: Yana Date: Fri, 29 Nov 2024 21:45:36 +0700 Subject: [PATCH] add styles --- explorer-nextjs/app/components/ExplorerCard.tsx | 4 ++-- explorer-nextjs/app/page.tsx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/explorer-nextjs/app/components/ExplorerCard.tsx b/explorer-nextjs/app/components/ExplorerCard.tsx index f10a72633e..176b108406 100644 --- a/explorer-nextjs/app/components/ExplorerCard.tsx +++ b/explorer-nextjs/app/components/ExplorerCard.tsx @@ -208,10 +208,10 @@ const CardRatings = (props: ICardRatingsProps) => { paddingBottom={2} display={"flex"} justifyContent={"space-between"} - borderBottom={i === 0 ? "1px solid #C3D7D7" : "none"} + borderBottom={i < ratings.length - 1 ? "1px solid #C3D7D7" : "none"} > {rating.title} - + diff --git a/explorer-nextjs/app/page.tsx b/explorer-nextjs/app/page.tsx index 4946ebdd30..440fe58a2e 100644 --- a/explorer-nextjs/app/page.tsx +++ b/explorer-nextjs/app/page.tsx @@ -93,7 +93,11 @@ const explorerCard: ContentCardProps = { url: "https://nymtech.net", }, ratings: { - ratings: [{ title: "Rating", numberOfStars: 4 }], + ratings: [ + { title: "Rating", numberOfStars: 4 }, + { title: "Rating", numberOfStars: 2 }, + { title: "Rating", numberOfStars: 3 }, + ], }, paragraph: "Additional line",