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 { RoadmapType } from '../../lib/roadmap';
import { NewAlertBanner } from './new-alert-banner'; import { NewAlertBanner } from './new-alert-banner';
import { import {
Badge,
Box, Box,
Button, Button,
Container, Container,
@ -12,7 +13,6 @@ import {
} from '@chakra-ui/react'; } from '@chakra-ui/react';
import { AtSignIcon, DownloadIcon } from '@chakra-ui/icons'; import { AtSignIcon, DownloadIcon } from '@chakra-ui/icons';
import React from 'react'; import React from 'react';
import { useRouter } from 'next/router';
type RoadmapPageHeaderType = { type RoadmapPageHeaderType = {
roadmap: RoadmapType; roadmap: RoadmapType;
@ -90,6 +90,23 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
</Button> </Button>
</Stack> </Stack>
</Flex> </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> </Container>
</Box> </Box>
); );

@ -1,5 +1,5 @@
import React from 'react'; 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 { GlobalHeader } from '../../components/global-header';
import { OpensourceBanner } from '../../components/opensource-banner'; import { OpensourceBanner } from '../../components/opensource-banner';
import { UpdatesBanner } from '../../components/updates-banner'; import { UpdatesBanner } from '../../components/updates-banner';

Loading…
Cancel
Save