upheader complated

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-01 14:18:12 +05:00
parent 9d406d0998
commit 4737c091be
7 changed files with 48 additions and 29 deletions

View File

@@ -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 */}