diff --git a/pages/index.tsx b/pages/index.tsx index 8857c89ed..4da190861 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -7,6 +7,7 @@ import { OpensourceBanner } from '../components/opensource-banner'; import { GuideListItem } from './guides/components/guide-list-item'; import { DimmedMore } from '../components/dimmed-more'; import { VideoListItem } from './watch/components/video-list-item'; +import { RoadmapGridItem } from './roadmaps/components/roadmap-grid-item'; export default function Home() { return ( @@ -27,45 +28,12 @@ export default function Home() { guides which we hope you are going to love. - - Frontend - Step by step guide to becoming a frontend developer in 2021 - - - - Backend - Step by step guide to becoming a backend developer in 2021 - - - - DevOps - Step by step guide for DevOps or Operations role in 2021 - - - - React - Step by step guide for DevOps or Operations role in 2021 - - - - DBA - Step by step guide for DevOps or Operations role in 2021 - - - - - - - Android - Step by step guide for DevOps or Operations role in 2021 - + + + + + + diff --git a/pages/roadmaps/components/roadmap-grid-item.tsx b/pages/roadmaps/components/roadmap-grid-item.tsx new file mode 100644 index 000000000..6d3fc70ab --- /dev/null +++ b/pages/roadmaps/components/roadmap-grid-item.tsx @@ -0,0 +1,46 @@ +import { Box, Heading, Link, Text, Tooltip } from '@chakra-ui/react'; +import { InfoIcon } from '@chakra-ui/icons'; + +type RoadmapGridItemProps = { + title: string; + subtitle: string; + isCommunity?: boolean; + colorIndex?: number +}; + +const bgColorList = [ + 'blue.900', + 'red.800', + 'green.800', + 'teal.800', + 'gray.800', + 'red.900' +]; + +export function RoadmapGridItem(props: RoadmapGridItemProps) { + const { title, subtitle, isCommunity, colorIndex = 0 } = props; + + return ( + + {isCommunity && ( + + + + )} + + {title} + {subtitle} + + ); +}