From fc931a967d8b1227e133a599496e302e24e0413c Mon Sep 17 00:00:00 2001 From: v4ltages Date: Sun, 3 May 2026 00:15:10 +0300 Subject: [PATCH] Remove disable & add kodukord, anim chg for dropdn --- src/app/globals.css | 12 +++++++ src/components/Header.tsx | 66 +++++++++++++++++++-------------------- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 8c05cb9..d4020f9 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -164,6 +164,18 @@ body { } } +@keyframes dropdown-item-in { + 0% { + opacity: 0; + transform: translate3d(0, -8px, 0); + } + + 100% { + opacity: 1; + transform: translate3d(0, 0, 0); + } +} + @media (prefers-reduced-motion: reduce) { .tipilan-logo-letter { animation: none; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index bf73cf5..2d62316 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -40,19 +40,15 @@ const Header = ({ navItems }: HeaderProps) => { const pathname = usePathname(); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); - // Filter nav items for the horizontal bar (exclude kodukord and avaleht) - const mainNavItems = navItems.filter( - (item) => item.href !== "/kodukord" && item.href !== "/", - ); - // Mobile dropdown should match the visual menu, without homepage - const dropdownNavItems = mainNavItems.filter((item) => item.href !== "/"); - const disabledNavHrefs = new Set(["/messiala", "/ajakava"]); + // Header navigation should include all options except homepage + const mainNavItems = navItems.filter((item) => item.href !== "/"); + const dropdownNavItems = mainNavItems; const navIconByHref: Partial> = { "/messiala": "weekend", "/ajakava": "event_note", - "/piletid": "confirmation_number", - "/turniirid": "trophy", + "/piletid": "local_activity", + "/turniirid": "rewarded_ads", }; useEffect(() => { @@ -101,21 +97,18 @@ const Header = ({ navItems }: HeaderProps) => {