MacroMath UI
Components · Web

Navbar

Site top bar with brand, navigation, theme and mobile menu.

Web · Astro · macromath_web

Navigation bar fixed at the top of the site. It holds the brand (logo + wordmark), the section links, the theme button (light/dark) and, on small screens, a hamburger menu.

LinkTargeti18n key
Features/#featuresnav.features
How it works/#hownav.how
Pricing/#pricingnav.pricing
FAQ/#faqnav.faq
Manage subscription/contanav.manage
Download/#downloadnav.download

Behavior

  • Theme toggle — button with sun/moon icons (data-theme-toggle).
  • Mobile menu — the hamburger (#burger) opens #mobile-menu.
  • Sticky — the bar (#nav) stays fixed on scroll.

Usage

---
import Navbar from '../components/layout/Navbar.astro';
---
<Navbar />

No props — the content comes from the i18n dictionary.

On this page