pull/50/head
sunface 4 years ago
parent 633a1aea7e
commit 24d71a4188

@ -42,13 +42,13 @@ function PostNav(props: Props) {
} }
}, []) }, [])
useEffect(() => { // useEffect(() => {
console.log(enterBodyBg) // console.log(enterBodyBg)
document.body.style.backgroundColor = enterBodyBg // document.body.style.backgroundColor = enterBodyBg
return () => { // return () => {
document.body.style.backgroundColor = leaveBodyBg // document.body.style.backgroundColor = leaveBodyBg
} // }
}, [enterBodyBg]) // }, [enterBodyBg])
return ( return (
<chakra.header <chakra.header
@ -58,7 +58,7 @@ function PostNav(props: Props) {
left="0" left="0"
right="0" right="0"
width="full" width="full"
bg={useColorModeValue('white', 'gray.800')} bg={useColorModeValue('gray.50', 'gray.800')}
> >
<chakra.div height="4.5rem" mx="auto" maxW="1200px"> <chakra.div height="4.5rem" mx="auto" maxW="1200px">
<Flex w="100%" h="100%" align="center" justify="space-between" px={{ base: "4", md: "6" }}> <Flex w="100%" h="100%" align="center" justify="space-between" px={{ base: "4", md: "6" }}>

@ -9,7 +9,7 @@ export const Card = (props: BoxProps) => {
borderRadius=".5rem" borderRadius=".5rem"
borderWidth="1px" borderWidth="1px"
p={[2,2,4,4]} p={[2,2,4,4]}
boxShadow="0 1px 1px 0 rgb(0 0 0 / 5%)" // boxShadow="0 1px 1px 0 rgb(0 0 0 / 5%)"
{...props} {...props}
/> />
) )

Loading…
Cancel
Save