Navbar for general navigation and AuthNavbar for pre-authentication pages with integrated search.
Navbar
Standard navigation component with responsive mobile menu and scroll-based styling.Import
Props
No props required - fully self-contained component.Features
- Fixed Positioning: Stays at top of viewport with
fixedpositioning - Scroll-Based Styling: Background becomes opaque with backdrop blur on scroll
- Responsive Menu: Hamburger menu for mobile, horizontal nav for desktop
- Search Integration: Built-in search input (desktop) or button (mobile)
- Animation: Smooth transitions for menu and scroll effects
Usage
Navigation Links
The component includes these default navigation items:/${item.toLowerCase()}:
- BROWSE →
/browse - LISTS →
/lists - MEMBERS →
/members - JOURNAL →
/journal
Scroll Behavior
The navbar changes appearance based on scroll position:- Not scrolled:
bg-transparent - Scrolled (>20px):
bg-ink/95 backdrop-blur-sm shadow-ink
Mobile Menu
Full-screen overlay menu with slide-in animation:Source Reference
Source code:~/workspace/source/src/components/Navbar.tsx:1-112
AuthNavbar
Authentication-focused navigation with GlobalSearch integration for landing and auth pages.Import
Props
No props required - fully self-contained component.Features
- GlobalSearch Integration: Uses
GlobalSearchcomponent instead of basic input - Auth-Focused Links: Sign In, Create Account, and Browse
- Gradient Background: Subtle gradient from ink to transparent when not scrolled
- Mobile-First Logo: Logo only appears on mobile, maximizing desktop space for search
Usage
Navigation Links
Auth-specific navigation structure:Background Styling
Dynamic background based on scroll state:- Not Scrolled
- Scrolled
Search Integration
IntegratesGlobalSearch component for full autocomplete functionality:
Source Reference
Source code:~/workspace/source/src/components/AuthNavbar.tsx:1-103
Styling System
Both navbar components use AniDojo’s custom theme colors:Color Palette
Dark background color (main background)
Light text color (primary text)
Accent color for hover states
Common Classes
Animation Patterns
Both components use consistent animation patterns:Mobile Menu Animation
Staggered Link Animation
Comparison
Best Practices
Layout Spacing
Both navbars are fixed position, so add padding to your main content:Responsive Testing
Test at these breakpoints:- Mobile: < 768px (menu button shows)
- Desktop: ≥ 768px (horizontal nav shows)
Z-Index Layering
Related
GlobalSearch
Search component used in AuthNavbar
Theme System
Theme colors and styling