feat: add background blur to open navbar
This commit is contained in:
@@ -31,8 +31,12 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
|
||||
{menuOpen && (
|
||||
<div
|
||||
className="fixed inset-0 z-500 bg-black/20 backdrop-blur-lg"
|
||||
onClick={() => setMenuOpen(false)}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
<nav className="fixed z-1000 top-5 left-1/2 -translate-x-1/2 w-content-width">
|
||||
|
||||
Reference in New Issue
Block a user