Skip to content
Zafar Foundation

Design patterns · Section 01 of 14

Headers & navigation

Ten site headers: logo, navigation, donate actions and a mobile menu that works without extra JavaScript. Click View code under any design to see its HTML, or Copy HTML to paste it into a page.

Headers & navigation · Design 01

Classic with contact bar

The standard site header: an ink contact bar on large screens, logo left, links centred and donate actions right, with a full-width drop-down menu on mobile. Add sticky top-0 to keep it in view.

Headers & navigation · Design 02

Centred logo split nav

A stacked logo sits in the centre with three links on the left and the rest beside the donate button; on mobile the menu button moves to the left.

Headers & navigation · Design 03

Dark ink bar

An ink header with a marigold top edge, marigold logo mark and links grouped on the right beside an outline Zakat button; the mobile menu opens as numbered links on dark.

Headers & navigation · Design 04

Transparent over photo

A see-through header with white text, made to sit on top of a hero photo (shown here over a photo strip); place it absolute inset-x-0 top-0 over your hero.

Headers & navigation · Design 05

Masthead with nav strip

Two tiers: a white masthead with the logo, email and phone, and a full-width teal strip carrying the links and quick giving options.

Headers & navigation · Design 06

Minimal menu button

Just the logo, a donate button and a Menu button at every screen size; the menu opens a large panel with big links, giving options and contact details.

Headers & navigation · Design 07

Floating pill nav

A rounded white pill with a soft shadow floating on a smoke background, with pill-shaped hover states and a rounded donate button; the mobile menu opens as a card below the pill.

Headers & navigation · Design 08

Appeal banner above nav

A marigold banner for the current appeal runs above a white bar with the links grouped beside the logo; the mobile menu ends with an appeal card.

Headers & navigation · Design 09

Causes mega menu

Our causes opens a wide drop-down (a details element, no JavaScript) with all five causes grouped by need, photo thumbnails and a featured appeal card that drops over the page; on mobile the causes nest inside the menu.

Headers & navigation · Design 10

Logo tab and stacked rows

A teal tab holds the logo and charity number; beside it, a slim utility row (tagline, email, phone) sits above the main links and two giving buttons.

Navigation