diff --git a/.eslintrc b/.eslintrc index 913cdba1d..f974d6cd5 100644 --- a/.eslintrc +++ b/.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" + ] + } } diff --git a/pages/[roadmap]/index.tsx b/pages/[roadmap]/index.tsx index 18439f5a3..d2ec35922 100644 --- a/pages/[roadmap]/index.tsx +++ b/pages/[roadmap]/index.tsx @@ -1,6 +1,7 @@ import { Box, Button, Container, SimpleGrid, Stack } from '@chakra-ui/react'; import { DownloadIcon, EmailIcon } from '@chakra-ui/icons'; import styled from 'styled-components'; +import Image from 'next/image'; import { Header } from '../../components/header'; import { OpensourceBanner } from '../../components/opensource-banner'; import { UpdatesBanner } from '../../components/updates-banner'; @@ -25,12 +26,18 @@ const RoadmapBody = styled.div` margin: 0 0 20px 40px; li + li { - margin-top: 11px; + margin-top: 7px; } } + + img { + max-width: 100%; + } `; export default function Roadmap() { + const isImageOnly = true; + return (
@@ -48,22 +55,9 @@ export default function Roadmap() { - + -

Frontend web developers work on the frontend of the websites producing HTML, CSS and JavaScript i.e. to - produce the part of the website that users normally interact with. Alternative Job titles for a frontend - developer include:

-
    -
  • Frontend Developer or Engineer
  • -
  • Frontend Web Developer
  • -
  • Frontend HTML/CSS Developer
  • -
  • JavaScript Developer
  • -
  • React Developer
  • -
  • Vue.js Developer
  • -
  • Angular Developer
  • -
- -

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.

+ Frontend Roadmap
diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 000000000..0e8d9063d --- /dev/null +++ b/pages/_document.tsx @@ -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() + }); + + const initialProps = await Document.getInitialProps(ctx); + return { + ...initialProps, + styles: ( + <> + {initialProps.styles} + {sheet.getStyleElement()} + + ) + }; + } finally { + sheet.seal(); + } + } +} diff --git a/public/roadmaps/frontend.png b/public/roadmaps/frontend.png new file mode 100644 index 000000000..b2a6f42fb Binary files /dev/null and b/public/roadmaps/frontend.png differ