From d3ee830e2626d0113ed24f7e9b9708987f759e33 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 28 Aug 2021 12:48:48 +0200 Subject: [PATCH] Add responsive header --- components/global-header.tsx | 102 ++++++++++++++++++++++++++++------- 1 file changed, 82 insertions(+), 20 deletions(-) diff --git a/components/global-header.tsx b/components/global-header.tsx index 7368e7de1..b04fbdaa0 100644 --- a/components/global-header.tsx +++ b/components/global-header.tsx @@ -1,29 +1,91 @@ -import { Box, Container, Flex, Image, Link, Stack } from '@chakra-ui/react'; +import { + Box, + Container, + Flex, + IconButton, + Image, + Link, + Menu, + MenuButton, MenuItem, + MenuList, + Stack, + Text +} from '@chakra-ui/react'; +import { HamburgerIcon } from '@chakra-ui/icons'; + +type MenuLinkProps = { + text: string; + link: string; +}; + +function MenuLink(props: MenuLinkProps) { + const { text, link } = props; + + return + {text} + ; +} + +function DesktopMenuLinks() { + return ( + + + + + + Subscribe + + ); +} + +function MobileMenuLinks() { + return ( + + + + Roadmaps + Guides + Videos + Subscribe + + + ); +} export function GlobalHeader() { return ( - + - - + + - roadmap.sh + roadmap.sh - - Roadmaps - Guides - Videos - Subscribe - + +