Add back to roadmaps button

pull/1657/head
Kamran Ahmed 3 years ago
parent dc59eb7b89
commit 17567dfd9f
  1. 10
      pages/[roadmap].tsx

@ -1,5 +1,5 @@
import { Box, Button, Container, Link, Stack } from '@chakra-ui/react'; import { Box, Button, Container, Link, Stack } from '@chakra-ui/react';
import { DownloadIcon, EmailIcon } from '@chakra-ui/icons'; import { ArrowBackIcon, ArrowLeftIcon, AtSignIcon, DownloadIcon, EmailIcon } from '@chakra-ui/icons';
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';
@ -64,6 +64,12 @@ export default function Roadmap(props: RoadmapProps) {
subtitle={roadmap.description} subtitle={roadmap.description}
> >
<Stack mt='20px' isInline> <Stack mt='20px' isInline>
<Button d={['none', 'flex']} as={Link} href={'/roadmaps'} size='xs' py='14px' px='10px'
leftIcon={<ArrowBackIcon />}
colorScheme='teal' variant='solid' _hover={{ textDecoration: 'none' }}>
All Roadmaps
</Button>
{roadmap.pdfUrl && ( {roadmap.pdfUrl && (
<Button as={Link} <Button as={Link}
href={roadmap.pdfUrl} href={roadmap.pdfUrl}
@ -78,7 +84,7 @@ export default function Roadmap(props: RoadmapProps) {
Download PDF Download PDF
</Button> </Button>
)} )}
<Button as={Link} href={'/signup'} size='xs' py='14px' px='10px' leftIcon={<EmailIcon />} <Button as={Link} href={'/signup'} size='xs' py='14px' px='10px' leftIcon={<AtSignIcon />}
colorScheme='yellow' variant='solid' _hover={{ textDecoration: 'none' }}> colorScheme='yellow' variant='solid' _hover={{ textDecoration: 'none' }}>
Subscribe Subscribe
</Button> </Button>

Loading…
Cancel
Save