+
+

+
SolFoundry
- {/* Desktop nav links */}
-
+
{NAV_LINKS.map((link) => (
{link.label}
- {isActive(link.to) && (
-
- )}
+ {isActive(link.to) && }
))}
- {/* Right: Live count + Auth */}
-
- {/* Live bounty count */}
+
{stats && (
-
-
-
{stats.open_bounties} open
+
+
+ {stats.open_bounties} open
)}
- {/* Auth */}
{isAuthenticated && user ? (
-
-
- {/* Mobile menu */}
{menuOpen && (
-
+
{NAV_LINKS.map((link) => (
- setMenuOpen(false)}
- className="px-4 py-2.5 rounded-lg text-sm font-medium text-text-secondary hover:text-text-primary hover:bg-forge-850 transition-colors duration-150"
- >
+ setMenuOpen(false)} className="px-4 py-2.5 rounded-lg text-sm font-medium text-text-secondary hover:text-text-primary hover:bg-forge-850 transition-colors duration-150">
{link.label}
))}
+ {!isAuthenticated && (
+
+ Sign in with GitHub
+
+ )}
+ {isAuthenticated && user && (
+ <>
+ setMenuOpen(false)} className="mt-2 px-4 py-2.5 rounded-lg text-sm font-medium text-text-secondary hover:text-text-primary hover:bg-forge-850 transition-colors duration-150">
+ Profile
+
+ { logout(); setMenuOpen(false); navigate('/'); }} className="px-4 py-2.5 rounded-lg text-left text-sm font-medium text-text-secondary hover:text-status-error hover:bg-forge-850 transition-colors duration-150">
+ Sign out
+
+ >
+ )}
)}