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.
Registered charity 1215863, England and Wales
Navigation
<header class="border-b border-line bg-white">
<div class="hidden bg-ink text-white lg:block">
<div class="mx-auto w-full max-w-content px-5 sm:px-8 flex h-10 items-center justify-between font-display text-[13px]">
<div class="flex items-center gap-7">
<a href="mailto:info@zafarfoundation.org.uk" class="inline-flex items-center gap-2 text-white/85 transition-colors hover:text-white"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-marigold"><path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"></path></svg>info@zafarfoundation.org.uk</a>
<a href="tel:+447940040010" class="inline-flex items-center gap-2 text-white/85 transition-colors hover:text-white"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-marigold"><path d="M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"></path></svg>07940 040010</a>
</div>
<p class="text-white/85">Registered charity <span class="font-semibold text-white">1215863</span>, England and Wales</p>
</div>
</div>
<div class="relative">
<div class="mx-auto w-full max-w-content px-5 sm:px-8 flex h-16 items-center justify-between gap-3 lg:h-[72px]">
<div class="lg:flex-1">
<a class="inline-flex items-center gap-2.5 rounded-sm" aria-label="Zafar Foundation home" href="index.html"><img src="images/logo.svg" alt="Zafar Foundation" width="521" height="80" class="h-9 sm:h-10 w-auto"></a>
</div>
<nav aria-label="Header 1 navigation" class="hidden lg:block">
<ul class="flex items-center gap-7 xl:gap-9">
<li><a class="t-label rounded-sm py-2 text-ink transition-colors hover:text-water" href="about.html">About</a></li>
<li><a class="t-label rounded-sm py-2 text-ink transition-colors hover:text-water" href="causes.html">Our causes</a></li>
<li><a class="t-label rounded-sm py-2 text-ink transition-colors hover:text-water" href="impact.html">Impact</a></li>
<li><a class="t-label rounded-sm py-2 text-ink transition-colors hover:text-water" href="get-involved.html">Get involved</a></li>
<li><a class="t-label rounded-sm py-2 text-ink transition-colors hover:text-water" href="contact.html">Contact</a></li>
</ul>
</nav>
<div class="flex items-center justify-end gap-5 pr-14 lg:flex-1 lg:pr-0">
<a class="t-label hidden rounded-sm py-2 text-ink transition-colors hover:text-water xl:inline-block" href="donate.html?fund=zakat">Give Zakat</a>
<a class="inline-flex items-center justify-center gap-2 rounded-sm font-display font-semibold leading-none whitespace-nowrap transition-[background-color,border-color,transform] duration-150 active:translate-y-px bg-marigold text-ink hover:bg-marigold-deep h-10 px-4 text-[15px]" href="donate.html"><span class="sm:hidden">Donate</span><span class="hidden sm:inline">Donate now</span></a>
</div>
</div>
<details class="group/m lg:hidden">
<summary class="absolute right-5 top-2.5 grid size-11 place-items-center rounded-md border border-line-strong text-ink sm:right-8 cursor-pointer list-none [&::-webkit-details-marker]:hidden"><span class="sr-only">Navigation</span><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="group-open/m:hidden"><path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="hidden group-open/m:block"><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path></svg></summary>
<nav aria-label="Header 1 mobile navigation" class="border-t border-line">
<div class="mx-auto w-full max-w-content px-5 sm:px-8 pb-8">
<ul class="divide-y divide-line border-b border-line">
<li><a class="flex items-center justify-between py-4 font-display text-[20px] font-semibold text-ink hover:text-water" href="about.html">About<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-line-strong"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg></a></li>
<li><a class="flex items-center justify-between py-4 font-display text-[20px] font-semibold text-ink hover:text-water" href="causes.html">Our causes<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-line-strong"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg></a></li>
<li><a class="flex items-center justify-between py-4 font-display text-[20px] font-semibold text-ink hover:text-water" href="impact.html">Impact<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-line-strong"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg></a></li>
<li><a class="flex items-center justify-between py-4 font-display text-[20px] font-semibold text-ink hover:text-water" href="get-involved.html">Get involved<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-line-strong"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg></a></li>
<li><a class="flex items-center justify-between py-4 font-display text-[20px] font-semibold text-ink hover:text-water" href="contact.html">Contact<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-line-strong"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg></a></li>
</ul>
<div class="mt-6 grid gap-3 sm:grid-cols-2">
<a class="inline-flex items-center justify-center gap-2 rounded-sm font-display font-semibold leading-none whitespace-nowrap transition-[background-color,border-color,transform] duration-150 active:translate-y-px bg-marigold text-ink hover:bg-marigold-deep h-12 px-6 text-base" href="donate.html">Donate now</a>
<a class="inline-flex items-center justify-center gap-2 rounded-sm font-display font-semibold leading-none whitespace-nowrap transition-[background-color,border-color,transform] duration-150 active:translate-y-px border border-ink text-ink hover:bg-smoke h-12 px-6 text-base" href="donate.html?fund=zakat">Give Zakat</a>
</div>
<div class="mt-6 grid gap-2 font-display text-[15px] sm:flex sm:gap-6">
<a href="mailto:info@zafarfoundation.org.uk" class="inline-flex items-center gap-2 text-ink hover:text-water"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-water"><path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"></path></svg>info@zafarfoundation.org.uk</a>
<a href="tel:+447940040010" class="inline-flex items-center gap-2 text-ink hover:text-water"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-water"><path d="M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"></path></svg>07940 040010</a>
</div>
<p class="t-caption mt-4 text-slate">Registered charity 1215863, England and Wales</p>
</div>
</nav>
</details>
</div>
</header>