diff --git a/components/footer.tsx b/components/footer.tsx index dc694629c..0732acfa5 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -33,7 +33,7 @@ function NavigationLinks() { export function Footer() { return ( - + diff --git a/components/global-header.tsx b/components/global-header.tsx index 0cbc3a129..9ada9e6f5 100644 --- a/components/global-header.tsx +++ b/components/global-header.tsx @@ -72,7 +72,7 @@ function MobileMenuLinks() { top={0} bg='gray.900' spacing='12px' - zIndex={1} + zIndex={999} > Roadmaps Guides @@ -86,9 +86,15 @@ function MobileMenuLinks() { ); } -export function GlobalHeader() { +type GlobalHeaderProps = { + variant?: 'transparent' | 'solid' +}; + +export function GlobalHeader(props: GlobalHeaderProps) { + const { variant = 'solid' } = props; + return ( - + diff --git a/components/opensource-banner.tsx b/components/opensource-banner.tsx index f2e4b5564..8327605cb 100644 --- a/components/opensource-banner.tsx +++ b/components/opensource-banner.tsx @@ -2,7 +2,7 @@ import { Box, Container, Heading, Link, Text } from '@chakra-ui/react'; export function OpensourceBanner() { return ( - + Open Source The project is OpenSource,  diff --git a/components/page-wrapper.tsx b/components/page-wrapper.tsx new file mode 100644 index 000000000..d3edc71f3 --- /dev/null +++ b/components/page-wrapper.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Box } from '@chakra-ui/react'; + +type PageWrapperProps = { + children: React.ReactNode; +} + +export function PageWrapper(props: PageWrapperProps) { + const { children } = props; + + return ( + + { children } + + ); +} diff --git a/components/roadmap/home-roadmap-item.tsx b/components/roadmap/home-roadmap-item.tsx index 3ee0b7086..e08cd045c 100644 --- a/components/roadmap/home-roadmap-item.tsx +++ b/components/roadmap/home-roadmap-item.tsx @@ -31,10 +31,11 @@ export function HomeRoadmapItem(props: RoadmapGridItemProps) { - Upcoming - + )} diff --git a/components/updates-banner.tsx b/components/updates-banner.tsx index 9e6c6ad9d..0515fd73b 100644 --- a/components/updates-banner.tsx +++ b/components/updates-banner.tsx @@ -3,8 +3,11 @@ import siteConfig from '../content/site.json'; export function UpdatesBanner() { return ( - + Stay Informed diff --git a/pages/_app.tsx b/pages/_app.tsx index 05bc5c0bd..a4557d3cb 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -15,7 +15,6 @@ const GlobalStyles = css` element receives focus via the mouse, but it will still show up on keyboard focus. */ - .js-focus-visible :focus:not([data-focus-visible-added]) { outline: none; box-shadow: none; diff --git a/pages/index.tsx b/pages/index.tsx index f02b8a532..2dd763138 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -14,6 +14,7 @@ import { getAllVideos, VideoType } from '../lib/video'; import siteConfig from '../content/site.json'; import Helmet from '../components/helmet'; import { event } from '../lib/gtag'; +import { PageWrapper } from '../components/page-wrapper'; type HomeProps = { roadmaps: RoadmapType[]; @@ -25,13 +26,13 @@ export default function Home(props: HomeProps) { const { roadmaps, guides, videos } = props; return ( - - + + - - - Hey there! 👋 + + + Hey there! 👋 roadmap.sh is a community effort to create roadmaps, guides and other educational content @@ -49,7 +50,11 @@ export default function Home(props: HomeProps) { fontWeight={600}>YouTube channel which we hope you are going to love. - + {roadmaps.map((roadmap: RoadmapType, counter: number) => ( - + - + Video Explanations @@ -98,7 +103,7 @@ export default function Home(props: HomeProps) { - + Visual Guides @@ -122,7 +127,7 @@ export default function Home(props: HomeProps) {