working sticky navbar
This commit is contained in:
parent
a989cf997c
commit
cd37c6ebb4
@ -59,14 +59,14 @@ const NavBar = () => {
|
||||
<div
|
||||
className={
|
||||
navbar
|
||||
? "flex fixed top-0 items-center bg-black justify-center xl:p-1 mx-auto md:p-4 z-90 w-full h-[60px]"
|
||||
? "flex fixed top-0 items-center bg-black justify-center xl:p-1 mx-auto md:p-4 z-10 w-full h-[60px]"
|
||||
: "flex items-center justify-center xl:p-1 bg-transparent mx-auto md:p-4 absolute z-10 w-full h-[120px]"
|
||||
}
|
||||
>
|
||||
<ul
|
||||
className={
|
||||
navbar
|
||||
? "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8"
|
||||
? "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 z-90"
|
||||
: "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 pr-6"
|
||||
}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user