HEADERS / FREE HTML + ASTRO

Civic service navigation header

Task-focused navigation with a strong service bar and grouped resources. Includes a responsive mobile disclosure.

Try the design

Open demo ↗

Preview links stay in the example. Copy the source to use your own destinations. Form previews never send information.

Copy the source

<header class="fct-civic-service-header e-service" data-snippet="civic-service-header">
  <div class="c-service">
    <div class="c-inner">
      <span>Find the service you need.</span><a href="help.html">Help & information</a
      ><a href="contact.html">Contact</a>
    </div>
  </div>
  <div class="c-header-main c-inner">
    <a class="c-brand" href="index.html" aria-label="Civic home">Civic</a
    ><button
      class="c-menu-button"
      type="button"
      aria-expanded="false"
      aria-controls="fct-civic-service-header-nav"
    >
      Menu <span aria-hidden="true">+</span>
    </button>
    <nav id="fct-civic-service-header-nav" aria-label="Primary">
      <details class="c-shop">
        <summary>Services <span aria-hidden="true">⌄</span></summary>
        <div class="c-mega">
          <div class="c-mega-inner">
            <div>
              <h2>Services</h2>
              <ul>
                <li><a href="services.html">Services</a></li>
                <li><a href="local-information.html">Local information</a></li>
                <li><a href="your-account.html">Your account</a></li>
                <li><a href="contact.html">Contact</a></li>
              </ul>
            </div>
            <div>
              <h2>Helpful information</h2>
              <ul>
                <li><a href="our-approach.html">Our approach</a></li>
                <li><a href="useful-resources.html">Useful resources</a></li>
                <li><a href="news-notes.html">News & notes</a></li>
                <li><a href="contact.html">Contact</a></li>
              </ul>
            </div>
            <div class="e-menu-note">
              <p>Civic</p>
              <span>Find the service you need.</span
              ><a class="c-link" href="about.html">About us <span aria-hidden="true">↗</span></a>
            </div>
          </div>
        </div>
      </details>
      <a href="local-information.html">Local information</a
      ><a href="your-account.html">Your account</a><a href="contact.html">Contact</a
      ><a class="c-bag" href="contact.html">Get in touch</a>
    </nav>
  </div>
</header>

Where this design fits

The service composition separates primary browsing from utility links. The expandable group uses native details; the mobile button adds Escape and focus-return behavior. Adapt the sample destinations to your own content hierarchy.

  • Primary and utility navigation
  • Native grouped-link disclosure
  • Mobile keyboard and no-JavaScript support

The real-site reference

GOV.UK services ↗

The reference informs service navigation and clear task grouping. This example uses original branding, copy, styling and code; it does not reproduce the reference product or its assets. Reference inspected 2 November 2026. This example has its own branding, content and code; it is not affiliated with the reference product.

What is included

The HTML ZIP includes a standalone demo, reusable markup, scoped CSS, its small JavaScript runtime, a license and setup notes. The Astro ZIP includes Snippet.astro. It can be imported into an existing Astro page or layout.

Set the right destinations

Example navigation, policy and contact links must point to your actual pages. Update visible business details and telephone/email links together. Remove sections that your website does not need.

Add it to an HTML website

  1. Copy snippet.html into the relevant page section.
  2. Load snippet.css after your existing site stylesheet. The class prefix identifies this design.
  3. Load snippet.js once with defer. Keep the included keyboard behavior when adapting interactions.
  4. Replace example content and check mobile widths, zoom, links and keyboard focus in your actual website.

Use it in Astro

Copy Snippet.astro into src/components/, import it into your page or shared layout, and insert the component where the section belongs. Keep each generated prefix unique if you duplicate a component on one page.

Keep the section maintainable

Start with the variables at the top of the CSS for background, text and accent colors. Preserve semantic labels and focus styles. Existing site selectors can still affect imported markup, so test the combined result. Read the complete setup notes.

GOOD DESIGN, OCCASIONALLY.

Your next idea
could start here.

New templates, useful guides, and updates from us.
A little inspiration for whatever you’re building.