From b25111415f7682a8ac8e5ba77aa54088dd699714 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 8 Dec 2021 18:59:56 +0100 Subject: [PATCH] Change homepage roadmap items interaction --- components/roadmap/home-roadmap-item.tsx | 77 +++++++++++++++++------- pages/index.tsx | 11 ---- 2 files changed, 54 insertions(+), 34 deletions(-) diff --git a/components/roadmap/home-roadmap-item.tsx b/components/roadmap/home-roadmap-item.tsx index 0eeb2a4de..c1e35485e 100644 --- a/components/roadmap/home-roadmap-item.tsx +++ b/components/roadmap/home-roadmap-item.tsx @@ -21,11 +21,18 @@ const bgColorList = [ 'teal.200', 'yellow.100', 'green.200', - 'red.200' + 'red.200', ]; export function HomeRoadmapItem(props: RoadmapGridItemProps) { - const { title, subtitle, isCommunity, colorIndex = 0, url, isUpcoming } = props; + const { + title, + subtitle, + isCommunity, + colorIndex = 0, + url, + isUpcoming, + } = props; return ( {isCommunity && ( - - + + )} - {title} - {subtitle} + + {title} + + + {subtitle} + {isUpcoming && ( - Upcoming - + + Upcoming + + )} diff --git a/pages/index.tsx b/pages/index.tsx index 127496ad6..8fb05a162 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -53,17 +53,6 @@ export default function Home(props: HomeProps) { {roadmaps.map((roadmap: RoadmapType, counter: number) => (