Multi-page websites—such as a founder portfolio with Home (/), Story (/story), and Work routes like https://shahmirqureshi.snapperui.live/—rely on consistent navigation across every route. SnapperUI's Global Components system ensures you edit your navbar and footer once and reuse them everywhere.
1. Designing a Global Navbar and Footer
In the SnapperUI Builder, create your header and footer sections on your primary page and designate them as Global Components. When a section is global, any link, logo, or style adjustment updates across every page in the project automatically.
2. Wiring Internal Page Routes
To keep navigation fast without full-page browser reloads, use relative path routes on internal links:
Home -> /
Story -> /story
Projects -> /work
Contact -> /contact
During both live hosting on snapperui.live and React + Vite ZIP export, internal paths starting with / are compiled into React Router <Link> navigation while external URLs remain standard <a> links.
3. How Global Layouts Export to React
SnapperUI's export engine extracts shared Global Navbar and Footer components once into src/components/ and wraps your page routes in a shared layout under src/layouts/, preventing duplicated headers or footers across pages.
4. Common Mistakes & Troubleshooting
- Duplicated navbars on secondary pages: If a page shows two navbars, check whether a local navbar section was left inside that page alongside the Global Layout navbar, and remove the redundant local copy.
- Broken relative links: Avoid hardcoding
https://...on internal routes that belong to the same project; use leading-slash paths like/bookor/about. - Next steps: Learn how to ship your multi-page project in Publishing Websites and Configuring SEO or Exporting and Self-Hosting.