Commit a84fd0f2 authored by tom's avatar tom

layout small fixes

parent 31d75902
...@@ -6,12 +6,11 @@ const Nav = () => { ...@@ -6,12 +6,11 @@ const Nav = () => {
return ( return (
<Flex <Flex
w="250px" w="250px"
paddingRight="24px"
flexDirection="column" flexDirection="column"
color="blue.600" color="blue.600"
> >
<NextLink href="/"><Link padding="8px 0px">Home</Link></NextLink> <NextLink href="/" passHref><Link padding="8px 0px">Home</Link></NextLink>
<NextLink href="/watchlist"><Link padding="8px 0px" >Watchlist</Link></NextLink> <NextLink href="/watchlist" passHref><Link padding="8px 0px" >Watchlist</Link></NextLink>
</Flex> </Flex>
) )
} }
......
import React from 'react'; import React from 'react';
import { Box, Flex } from '@chakra-ui/react'; import { Box, HStack } from '@chakra-ui/react';
import Nav from '../Nav/Nav'; import Nav from '../Nav/Nav';
...@@ -9,15 +9,17 @@ interface Props { ...@@ -9,15 +9,17 @@ interface Props {
const Page = ({ children }: Props) => { const Page = ({ children }: Props) => {
return ( return (
<Flex <HStack
w="100%" w="100%"
minH="100vh" minH="100vh"
padding="140px 48px 48px 48px" padding="140px 48px 48px 48px"
bgColor="gray.200" bgColor="gray.200"
spacing="12"
alignItems="stretch"
> >
<Nav/> <Nav/>
<Box borderRadius="10px" w="100%" overflow="hidden">{ children }</Box> <Box borderRadius="10px" w="100%" overflow="hidden">{ children }</Box>
</Flex> </HStack>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment