mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
Improve styles to avoid FOUC
This commit is contained in:
@@ -37,18 +37,30 @@ const MobileNav: FC<Props> = ({ open, close }) => {
|
||||
/>
|
||||
</div>
|
||||
<div className='mobile-button-wrapper'>
|
||||
<Button href='#' onClick={() => toggle()}>
|
||||
<Button
|
||||
href='#'
|
||||
onClick={() => {
|
||||
toggle();
|
||||
close();
|
||||
}}
|
||||
>
|
||||
{mode === 'dark' ? 'Light Mode' : 'Dark Mode'}
|
||||
</Button>
|
||||
</div>
|
||||
<div className='mobile-button-wrapper'>
|
||||
<Button href='/about'>About</Button>
|
||||
<Button href='/about' onClick={() => close()}>
|
||||
About
|
||||
</Button>
|
||||
</div>
|
||||
<div className='mobile-button-wrapper'>
|
||||
<Button href='/portfolio'>Portfolio</Button>
|
||||
<Button href='/portfolio' onClick={() => close()}>
|
||||
Portfolio
|
||||
</Button>
|
||||
</div>
|
||||
<div className='mobile-button-wrapper'>
|
||||
<Button href='/blog'>Blog</Button>
|
||||
<Button href='/blog' onClick={() => close()}>
|
||||
Blog
|
||||
</Button>
|
||||
</div>
|
||||
</Bar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user