Add roadmap image page
This commit is contained in:
11
.eslintrc
11
.eslintrc
@ -1,3 +1,12 @@
|
|||||||
{
|
{
|
||||||
"extends": ["next", "next/core-web-vitals", "prettier"]
|
"extends": [
|
||||||
|
"next",
|
||||||
|
"next/core-web-vitals",
|
||||||
|
"prettier"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"@next/next/no-img-element": [
|
||||||
|
"off"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Box, Button, Container, SimpleGrid, Stack } from '@chakra-ui/react';
|
import { Box, Button, Container, SimpleGrid, Stack } from '@chakra-ui/react';
|
||||||
import { DownloadIcon, EmailIcon } from '@chakra-ui/icons';
|
import { DownloadIcon, EmailIcon } from '@chakra-ui/icons';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
import Image from 'next/image';
|
||||||
import { Header } from '../../components/header';
|
import { Header } from '../../components/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';
|
||||||
@ -25,12 +26,18 @@ const RoadmapBody = styled.div`
|
|||||||
margin: 0 0 20px 40px;
|
margin: 0 0 20px 40px;
|
||||||
|
|
||||||
li + li {
|
li + li {
|
||||||
margin-top: 11px;
|
margin-top: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default function Roadmap() {
|
export default function Roadmap() {
|
||||||
|
const isImageOnly = true;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box bg='white' minH='100vh'>
|
<Box bg='white' minH='100vh'>
|
||||||
<Header />
|
<Header />
|
||||||
@ -48,22 +55,9 @@ export default function Roadmap() {
|
|||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
<Container maxW='container.md' position='relative'>
|
<Container maxW={ isImageOnly ? '900px': 'container.md'} position='relative'>
|
||||||
<RoadmapBody>
|
<RoadmapBody>
|
||||||
<p>Frontend web developers work on the frontend of the websites producing HTML, CSS and JavaScript i.e. to
|
<img alt='Frontend Roadmap' src='/roadmaps/frontend.png' />
|
||||||
produce the part of the website that users normally interact with. Alternative Job titles for a frontend
|
|
||||||
developer include:</p>
|
|
||||||
<ul>
|
|
||||||
<li>Frontend Developer or Engineer</li>
|
|
||||||
<li>Frontend Web Developer</li>
|
|
||||||
<li>Frontend HTML/CSS Developer</li>
|
|
||||||
<li>JavaScript Developer</li>
|
|
||||||
<li>React Developer</li>
|
|
||||||
<li>Vue.js Developer</li>
|
|
||||||
<li>Angular Developer</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>The diagram below shows the landscape of all the tools, technologies available for the frontend developers as well as the recommended order in which you should be learning the.</p>
|
|
||||||
</RoadmapBody>
|
</RoadmapBody>
|
||||||
</Container>
|
</Container>
|
||||||
</Box>
|
</Box>
|
||||||
|
29
pages/_document.tsx
Normal file
29
pages/_document.tsx
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import Document, { DocumentContext } from 'next/document';
|
||||||
|
import { ServerStyleSheet } from 'styled-components';
|
||||||
|
|
||||||
|
export default class MyDocument extends Document {
|
||||||
|
static async getInitialProps(ctx: DocumentContext) {
|
||||||
|
const sheet = new ServerStyleSheet();
|
||||||
|
const originalRenderPage = ctx.renderPage;
|
||||||
|
|
||||||
|
try {
|
||||||
|
ctx.renderPage = () => originalRenderPage({
|
||||||
|
enhanceApp: (App) => (props) =>
|
||||||
|
sheet.collectStyles(<App {...props} />)
|
||||||
|
});
|
||||||
|
|
||||||
|
const initialProps = await Document.getInitialProps(ctx);
|
||||||
|
return {
|
||||||
|
...initialProps,
|
||||||
|
styles: (
|
||||||
|
<>
|
||||||
|
{initialProps.styles}
|
||||||
|
{sheet.getStyleElement()}
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
} finally {
|
||||||
|
sheet.seal();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
public/roadmaps/frontend.png
Normal file
BIN
public/roadmaps/frontend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 749 KiB |
Reference in New Issue
Block a user