|
|
|
@@ -24,82 +24,80 @@ const Navbar = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
<AppBar elevation={2} sx={{ backgroundColor: 'background.default' }}> |
|
|
|
<Toolbar> |
|
|
|
<AppBar elevation={2} sx={{ backgroundColor: 'background.default', position: 'relative' }}> |
|
|
|
<Toolbar> |
|
|
|
<Box |
|
|
|
component='div' |
|
|
|
sx={{ |
|
|
|
display: 'flex', |
|
|
|
justifyContent: 'space-between', |
|
|
|
alignItems: 'center', |
|
|
|
width: '100%', |
|
|
|
}} |
|
|
|
> |
|
|
|
{matches ? ( |
|
|
|
<Drawer open={openDrawer} toggleOpen={handleToggleDrawer} /> |
|
|
|
) : ( |
|
|
|
<Box sx={{ display: 'flex' }}> |
|
|
|
<Typography |
|
|
|
variant='h6' |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 1 |
|
|
|
</Typography> |
|
|
|
<Typography |
|
|
|
variant='body1' |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 2 |
|
|
|
</Typography> |
|
|
|
<Typography |
|
|
|
variant='subtitle1' |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 3 |
|
|
|
</Typography> |
|
|
|
</Box> |
|
|
|
)} |
|
|
|
<Box> |
|
|
|
<MenuList /> |
|
|
|
</Box> |
|
|
|
<Box |
|
|
|
component="div" |
|
|
|
sx={{ |
|
|
|
display: 'flex', |
|
|
|
justifyContent: 'space-between', |
|
|
|
justifyContent: 'center', |
|
|
|
alignItems: 'center', |
|
|
|
width: '100%', |
|
|
|
}} |
|
|
|
> |
|
|
|
{matches ? ( |
|
|
|
<Drawer open={openDrawer} toggleOpen={handleToggleDrawer} /> |
|
|
|
) : ( |
|
|
|
<Box sx={{ display: 'flex' }}> |
|
|
|
<Typography |
|
|
|
variant="h6" |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 1 |
|
|
|
</Typography> |
|
|
|
<Typography |
|
|
|
variant="body1" |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 2 |
|
|
|
</Typography> |
|
|
|
<Typography |
|
|
|
variant="subtitle1" |
|
|
|
sx={{ |
|
|
|
marginRight: 3, |
|
|
|
cursor: 'pointer', |
|
|
|
color: 'text.primary', |
|
|
|
}} |
|
|
|
> |
|
|
|
Link 3 |
|
|
|
</Typography> |
|
|
|
<Box> |
|
|
|
<IconButton onClick={handleToggleDrawer}> |
|
|
|
<MenuOutlinedIcon /> |
|
|
|
</IconButton> |
|
|
|
</Box> |
|
|
|
) : ( |
|
|
|
<IconButton> |
|
|
|
<Badge badgeContent={3} color='primary'> |
|
|
|
<ShoppingBasketIcon color='action' /> |
|
|
|
</Badge> |
|
|
|
</IconButton> |
|
|
|
)} |
|
|
|
<Box> |
|
|
|
<MenuList /> |
|
|
|
</Box> |
|
|
|
<Box |
|
|
|
sx={{ |
|
|
|
display: 'flex', |
|
|
|
justifyContent: 'center', |
|
|
|
alignItems: 'center', |
|
|
|
}} |
|
|
|
> |
|
|
|
{matches ? ( |
|
|
|
<Box> |
|
|
|
<IconButton onClick={handleToggleDrawer}> |
|
|
|
<MenuOutlinedIcon /> |
|
|
|
</IconButton> |
|
|
|
</Box> |
|
|
|
) : ( |
|
|
|
<IconButton> |
|
|
|
<Badge badgeContent={3} color="primary"> |
|
|
|
<ShoppingBasketIcon color="action" /> |
|
|
|
</Badge> |
|
|
|
</IconButton> |
|
|
|
)} |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
</Toolbar> |
|
|
|
</AppBar> |
|
|
|
</> |
|
|
|
</Box> |
|
|
|
</Toolbar> |
|
|
|
</AppBar> |
|
|
|
); |
|
|
|
}; |
|
|
|
|