Skip to content

Commit

Permalink
updating MobileMenu components
Browse files Browse the repository at this point in the history
  • Loading branch information
daviteixeira-dev committed Sep 10, 2023
1 parent d56cdbb commit a627e38
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/components/MobileMenu/MobileMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const MobileMenu = () => {
<DrawerContent>
<DrawerCloseButton color="whiteAlpha.900" />

<DrawerHeader backgroundColor="black">
<DrawerHeader backgroundColor="blackAlpha.900">
<DesktopMenuLogo size="100%" />
</DrawerHeader>

<DrawerBody backgroundColor="blackAlpha.900">
<MobileMenuList />
</DrawerBody>

<DrawerFooter backgroundColor="black">
<DrawerFooter backgroundColor="blackAlpha.900">
<Button variant='outline' colorScheme="whiteAlpha" onClick={onClose}>
Fechar
</Button>
Expand Down
24 changes: 14 additions & 10 deletions src/components/MobileMenu/MobileMenuItens.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ import { Link as ReactRouterLink } from 'react-router-dom';

const MobileMenuItens = ( props ) => {
return (
<ListItem
fontSize="1.5rem"
padding=".5rem 1rem"
borderRadius=".3rem"
color="whiteAlpha.900"
backgroundColor="gray.900"
>
<ChakraLink as={ReactRouterLink} to={props.path}>
<ChakraLink as={ReactRouterLink} to={props.path}>
<ListItem
fontSize="1.2rem"
padding=".5rem 1rem"
borderRadius=".3rem"
fontWeight="semibold"
marginBottom="1.5rem"
color="whiteAlpha.900"
textTransform="uppercase"
backgroundColor="blackAlpha.900"
borderBottom="3px solid #3182ce"
>
{props.value}
</ChakraLink>
</ListItem>
</ListItem>
</ChakraLink>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/MobileMenu/MobileMenuList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const MobileMenuList = () => {
display="flex"
listStyleType="none"
flexDirection="column"
justifyContent="space-evenly"
justifyContent="start"
>
{
mobileMenuItens.map((item, index) => (
Expand Down

0 comments on commit a627e38

Please sign in to comment.