I am facing a challenge with my menu that needs to be concealed behind an arch design.
https://i.sstatic.net/CwdjJ.png
The objective is for the menu to appear hidden behind the black area, while still being visible over the blue arch in the background (although not clearly visible in this image).
My current setup involves using material ui, and the styling for the appBar and arch ('&:after') is defined as follows:
appBar: {
backgroundColor: '#000',
transition: theme.transitions.create(['margin', 'width'], {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen,
}),
alignItems: 'center',
'&:after': {
content: '""',
height: '50px',
width: '110%',
background: '#fff',
borderTopLeftRadius: '50% 40%',
borderTopRightRadius: '50% 40%',
backgroundColor: '#00587E',
boxShadow: 'inset 0 2px 2px #FFFFFF5C',
},
},
If needed, below is the code snippet pertaining to the menu:
menu: {
width: drawerWidth,
flexShrink: 0,
backgroundColor: '#FFFFFF',
boxShadow: '0px 3px 6px #FFFAFA61',
},
drawerPaper: {
top: '48px',
width: drawerWidth,
height: 232,
},
drawerHeader: {
display: 'flex',
alignItems: 'left',
...theme.mixins.toolbar,
justifyContent: 'flex-start',
},
For further reference, here is the link to the CodeSandBox:
https://codesandbox.io/s/header-with-menu-b6nz5?file=/src/Header/Header.tsx
Any assistance on how to properly hide the menu would be greatly appreciated.