-
Notifications
You must be signed in to change notification settings - Fork 2
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
db34fab
commit 6dc65b1
Showing
9 changed files
with
693 additions
and
351 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
import React from 'react' | ||
import {GiHamburgerMenu} from "react-icons/gi" | ||
import {Flex, IconButton, useDisclosure, Image} from "@chakra-ui/react" | ||
import Bag from './Bag' | ||
import {Link} from "react-router-dom" | ||
import MobileMenu from './MobileMenu' | ||
import React from "react"; | ||
import { GiHamburgerMenu } from "react-icons/gi"; | ||
import { Flex, IconButton, useDisclosure, Image } from "@chakra-ui/react"; | ||
import Bag from "./Bag"; | ||
import { Link } from "react-router-dom"; | ||
import MobileMenu from "./MobileMenu"; | ||
const MobileNav = () => { | ||
const { isOpen, onOpen, onClose } = useDisclosure() | ||
const { isOpen, onOpen, onClose } = useDisclosure(); | ||
|
||
return ( | ||
<Flex display={{base:"flex", md:"none"}} justify={'space-between'} p="10px 60px 10px 30px" align="center" w="100%"> | ||
<IconButton aria-label='hamburger' icon={<GiHamburgerMenu/>} onClick={onOpen}/> | ||
<MobileMenu isOpen={isOpen} onClose={onClose}/> | ||
<Link to='/' > <Image h="60px" src="https://i.ibb.co/d27npvV/Lint-trimmy-1.png" alt="logo" /></Link> | ||
<Bag fontSize="30px"/> | ||
<Flex | ||
display={{ base: "flex", md: "none" }} | ||
justify={"space-between"} | ||
p="10px 60px 10px 30px" | ||
align="center" | ||
w="100%"> | ||
<IconButton | ||
aria-label="hamburger" | ||
icon={<GiHamburgerMenu />} | ||
onClick={onOpen} | ||
/> | ||
<MobileMenu isOpen={isOpen} onClose={onClose} /> | ||
<Link to="/"> | ||
{" "} | ||
<Image h="60px" src="lint_lightmode.png" alt="logo" /> | ||
</Link> | ||
<Bag fontSize="30px" /> | ||
</Flex> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default MobileNav | ||
export default MobileNav; |
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