Overview
TheNavbar component renders the main navigation header for the Kaizen application. It provides navigation links to the primary sections of the game: Dashboard, Character, Milestones, and Campaign.
Component metadata
- Selector:
app-navbar - Source:
/src/app/components/navbar/navbar.ts - Standalone: Yes (uses imports array)
Template structure
The navbar uses a horizontal flex layout with a brand name and navigation menu:Inputs
This component does not accept any inputs.Outputs
This component does not emit any outputs.Dependencies
The component imports Angular Router directives:RouterLink- Enables navigation to routesRouterLinkActive- Applies active styling to the current route
Usage
Styling
The navbar applies the following visual styling:- Dark gray background (
bg-gray-800) - White text color
- Horizontal padding of 5rem
- Active route links are bolded and lightened to
text-gray-200
The navbar automatically highlights the active route using the
routerLinkActive directive.