1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-02-24 03:23:08 +01:00

71 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-08-16 18:15:54 +02:00
import { Box, Button, Container, SimpleGrid, Stack } from '@chakra-ui/react';
import { DownloadIcon, EmailIcon } from '@chakra-ui/icons';
import styled from 'styled-components';
2021-08-19 14:36:08 +02:00
import Image from 'next/image';
2021-08-16 18:15:54 +02:00
import { Header } from '../../components/header';
import { OpensourceBanner } from '../../components/opensource-banner';
import { UpdatesBanner } from '../../components/updates-banner';
import { Footer } from '../../components/footer';
import { PageHeader } from '../../components/page-header';
const RoadmapBody = styled.div`
margin-bottom: 30px;
font-size: 15px;
h1 {
font-size: 32px;
font-weight: 700;
}
p {
line-height: 25px;
margin-bottom: 20px
}
ul, ol {
margin: 0 0 20px 40px;
li + li {
2021-08-19 14:36:08 +02:00
margin-top: 7px;
2021-08-16 18:15:54 +02:00
}
}
2021-08-19 14:36:08 +02:00
img {
max-width: 100%;
}
2021-08-16 18:15:54 +02:00
`;
export default function Roadmap() {
2021-08-19 14:36:08 +02:00
const isImageOnly = true;
2021-08-16 18:15:54 +02:00
return (
<Box bg='white' minH='100vh'>
<Header />
<Box mb='60px'>
<PageHeader
title={'Frontend Developer'}
subtitle={'Step by step guide to becoming a modern frontend developer'}
>
<Stack mt='20px' isInline>
<Button size='xs' py='14px' px='10px' leftIcon={<DownloadIcon />} colorScheme='yellow' variant='solid'>
Download PDF
</Button>
<Button size='xs' py='14px' px='10px' leftIcon={<EmailIcon />} colorScheme='yellow' variant='solid'>
Subscribe
</Button>
</Stack>
</PageHeader>
2021-08-19 14:36:08 +02:00
<Container maxW={ isImageOnly ? '900px': 'container.md'} position='relative'>
2021-08-16 18:15:54 +02:00
<RoadmapBody>
2021-08-19 14:36:08 +02:00
<img alt='Frontend Roadmap' src='/roadmaps/frontend.png' />
2021-08-16 18:15:54 +02:00
</RoadmapBody>
</Container>
</Box>
<OpensourceBanner />
<UpdatesBanner />
<Footer />
</Box>
);
}