diff options
author | Michal Sapka <michal@sapka.me> | 2022-08-16 22:51:39 +0200 |
---|---|---|
committer | Michal Sapka <michal@sapka.me> | 2022-08-16 22:51:39 +0200 |
commit | e941a57aa1e1d784399ee2679456583f4ba66fee (patch) | |
tree | 8f3a9d1ad29c8d4f9a2b149b9989d5f48e51f87f /components/topnav.tsx | |
parent | ac9e3d2bc1e93e27b50c63b2296316b3b6383928 (diff) |
feat: working topnav
Diffstat (limited to 'components/topnav.tsx')
-rw-r--r-- | components/topnav.tsx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/components/topnav.tsx b/components/topnav.tsx index 7d25c9b..8213b71 100644 --- a/components/topnav.tsx +++ b/components/topnav.tsx @@ -14,6 +14,7 @@ import { MenuOptionGroup, MenuDivider, useMediaQuery, + Container } from '@chakra-ui/react' import { GiHamburgerMenu } from "react-icons/gi" import { DiGithubBadge } from "react-icons/di" @@ -58,10 +59,21 @@ function Navigation() { export default function Navbar() { - return <HStack> - <Heading>Michal </Heading> - <Navigation/> - </HStack> + return <Box + as="header" + position="fixed" + backdropFilter="auto" + backdropBlur="6px" + width="100%" + pt="5px" + > + <Container maxW="xl"> + <HStack> + <Heading flex={[1,1,0,0]}>Michal </Heading> + <Navigation/> + </HStack> + </Container> + </Box> } |