-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
095c564
commit fdeb37a
Showing
9 changed files
with
238 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
'use client'; | ||
|
||
import { Box } from '@chakra-ui/react'; | ||
import { HTMLChakraProps } from '@chakra-ui/system'; | ||
import * as _chakra_ui_system from '@chakra-ui/system'; | ||
|
||
// const breakpoints = { | ||
// base: "0em", // 0px => Mobile | ||
// sm: "30em", // ~480px. em is a relative unit and is dependant on the font size. | ||
// md: "48em", // ~768px | ||
// lg: "62em", // ~992px | ||
// xl: "80em", // ~1280px | ||
// "2xl": "96em", // ~1536px | ||
// }; | ||
|
||
const BoxContent: _chakra_ui_system.ChakraComponent<'div', {}> = ( | ||
props: HTMLChakraProps<'div'>, | ||
) => { | ||
return ( | ||
<Box | ||
{...props} | ||
display={'flex'} | ||
flexDir={'column'} | ||
w={'100%'} | ||
maxW={'1600px'} | ||
h="auto" | ||
px={{ | ||
base: '20px', // 0px <= x < 1536px | ||
'2xl': '10px', // 1536px <= x < 1600px | ||
max: '0px', // 1600px= < x | ||
}} | ||
> | ||
{props.children} | ||
</Box> | ||
); | ||
}; | ||
|
||
export default BoxContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.container { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use client'; | ||
import { | ||
Drawer, | ||
DrawerBody, | ||
DrawerContent, | ||
DrawerFooter, | ||
DrawerOverlay, | ||
Image, | ||
useDisclosure, | ||
} from '@chakra-ui/react'; | ||
import { MobileNav } from './MobileNav'; | ||
|
||
export type HeaderProps = { | ||
isOpen: boolean; | ||
}; | ||
|
||
const DrawerMobileMenu = (props: HeaderProps) => { | ||
const { isOpen, onToggle } = useDisclosure(); | ||
return ( | ||
<Drawer isOpen={isOpen} placement="right" onClose={onToggle} size={'sm'}> | ||
<DrawerOverlay /> | ||
<DrawerContent zIndex={3}> | ||
<DrawerBody bgColor={'#F3F1E8'}>{<MobileNav />}</DrawerBody> | ||
<DrawerFooter | ||
bgColor={'#F3F1E8'} | ||
justifyContent={'center'} | ||
alignItems={'center'} | ||
padding={'40px'} | ||
> | ||
<Image | ||
src={'/icons/close_ic.svg'} | ||
borderRadius={100} | ||
width={50} | ||
height={50} | ||
alignSelf={'center'} | ||
onClick={onToggle} | ||
/> | ||
</DrawerFooter> | ||
</DrawerContent> | ||
</Drawer> | ||
); | ||
}; | ||
|
||
export default DrawerMobileMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.