Open choigirang opened 8 months ago
const Header = MuiStyled('div')<HeaderScrollState>(({ theme, $scroll }) => ({ display: 'flex', position: 'fixed', top: 0, justifyContent: 'space-between', alignItems: 'center', width: '100%', height: '100px', padding: '0 calc((100vw - 1280px) / 2)', backgroundColor: $scroll ? 'transparent' : theme.palette.mode === 'dark' ? theme.palette.secondary.dark : theme.palette.secondary.main, color: theme.palette.mode === 'dark' ? 'white' : 'white', boxSizing: 'border-box', transition: 'all 1s', zIndex: 1, '.visited': { fontWeight: '500', color: theme.palette.mode === 'dark' ? theme.palette.primary.dark : theme.palette.primary.light, }, }));