upheader complated
This commit is contained in:
@@ -35,7 +35,16 @@ export function Navbar() {
|
||||
<nav
|
||||
className={`fixed top-0 left-0 right-0 z-50 border-b border-gray-400/50 ${scrolled && "bg-black"} transition`}
|
||||
>
|
||||
{!scrolled && <UpHeader />}
|
||||
<div
|
||||
className={`overflow-hidden transition-all duration-500 ease-in-out ${
|
||||
scrolled
|
||||
? "max-h-0 opacity-0 -translate-y-2"
|
||||
: "max-h-20 opacity-100 translate-y-0"
|
||||
}`}
|
||||
style={{ transform: scrolled ? "translateY(-8px)" : "translateY(0)" }}
|
||||
>
|
||||
<UpHeader />
|
||||
</div>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex justify-between items-center h-20">
|
||||
{/* Logo */}
|
||||
|
||||
Reference in New Issue
Block a user