navbar-configuration

Configure Next.js navbar menus from sitemap.md with i18n and z-index fixes.

Updated Nov 18, 2025
One-click install
npx skills add https://github.com/deomiarn/website-template --skill navbar-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navbar-configuration
Source: https://github.com/deomiarn/website-template/tree/main/.claude/skills/navbar-configuration
Command: npx skills add https://github.com/deomiarn/website-template --skill navbar-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Keeps navigation in sync with site structure, ensures dropdowns render above content, and standardizes logo and button behavior.

Core Features & Use Cases

  • Menu from Sitemap: Generate menu items from docs/sitemap.md.
  • Z-Index Fixes: Ensure dropdowns and mobile sheets render above content.
  • Buttons & Logo: Configure visibility and branding.
  • i18n: Localize menu items for DE/EN.

Quick Start

Map sitemap pages to a Navbar component, apply z-index fixes, and add i18n keys for menu labels.

Frequently Asked Questions about navbar-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync my React navbar with my sitemap structure?

Parse your sitemap.md file to automatically generate navbar menu items that reflect your site structure. Map each page entry to a menu link, then replace standard HTML links with Next.js Link components to maintain the navbar in sync as your sitemap evolves.

Why are my navbar dropdowns appearing behind other content?

Dropdowns require explicit z-index stacking to render above page content. Set dropdown z-index to z-50 or higher to ensure they layer correctly above modals, hero sections, and other overlaid elements in your React layout.

Can I use the same navbar configuration for both desktop and mobile in Next.js?

Yes. Parse sitemap.md once and render conditional layouts—desktop horizontal menus and mobile sheets—from the same menu data structure. Apply z-index rules consistently across both render paths to keep mobile sheets accessible.

How do I add multi-language support to my navbar menu labels?

Add i18n keys to your de.json and en.json translation files for each menu label. Reference these keys in your navbar component so menu text updates automatically when users switch languages, synchronized with your sitemap structure.

What's the best way to configure navbar branding with a logo in React?

Support both text and image logos through a single configuration property. Conditionally render either an img tag or text span based on your logo setting, and apply consistent padding and alignment rules so branding scales across desktop and mobile viewports.

Do I need to manually manage navbar button visibility, or can it be automated?

Configure button visibility declaratively in your navbar component—specify which buttons appear, hide, or conditionally render based on user state. This keeps button logic maintainable and separate from sitemap-driven menu generation.