Add interactive frontend roadmap version

pull/940/head
Kamran Ahmed 3 years ago
parent 93b538f4e1
commit ba21172d20
  1. 19
      components/roadmap/roadmap-page-header.tsx
  2. 2
      pages/[roadmap]/index.tsx

@ -1,6 +1,7 @@
import { RoadmapType } from '../../lib/roadmap';
import { NewAlertBanner } from './new-alert-banner';
import {
Badge,
Box,
Button,
Container,
@ -12,7 +13,6 @@ import {
} from '@chakra-ui/react';
import { AtSignIcon, DownloadIcon } from '@chakra-ui/icons';
import React from 'react';
import { useRouter } from 'next/router';
type RoadmapPageHeaderType = {
roadmap: RoadmapType;
@ -90,6 +90,23 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
</Button>
</Stack>
</Flex>
{roadmap.id === 'frontend' && (
<Text
mt="30px"
mb="-47px"
fontWeight={500}
fontSize="14px"
bg="white"
borderWidth={1}
p="5px 7px"
rounded="3px"
>
<Badge pos="relative" top={'-1px'} mr="6px" colorScheme="yellow">
New
</Badge>
Roadmap is now interactive, try clicking any nodes
</Text>
)}
</Container>
</Box>
);

@ -1,5 +1,5 @@
import React from 'react';
import { Box, Container, Image } from '@chakra-ui/react';
import { Box, Container, Image, Text } from '@chakra-ui/react';
import { GlobalHeader } from '../../components/global-header';
import { OpensourceBanner } from '../../components/opensource-banner';
import { UpdatesBanner } from '../../components/updates-banner';

Loading…
Cancel
Save