HEADERS / FREE HTML + ASTRO

Local services header

A two-level business header with contact details above a clear service navigation and appointment link.

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-local-services-header s-header s-topbar" data-snippet="local-services-header"><div class="s-top"><a href="tel:+441632960000">+44 (0)1632 960000</a><span>Mon–Fri · 09:00–17:00 · Example hours</span></div><div class="s-wrap s-header-row"><a href="index.html" class="s-brand">Northfield Services</a><button type="button" class="s-nav-toggle" aria-expanded="false" aria-controls="fct-local-services-header-nav">Menu</button><nav aria-label="Primary" id="fct-local-services-header-nav"><a href="index.html">Home</a><a href="about.html">About</a><a href="work.html">Work</a><a href="contact.html">Contact</a><details class="s-disclosure"><summary>Services</summary><div><a href="services.html">Home maintenance</a><a href="commercial.html">Commercial work</a></div></details><a class="s-button" href="contact.html">Request a visit</a></nav></div></header>

Where this design fits

The utility strip separates telephone and opening-hour details from the main menu. A native disclosure groups service links without making the whole navigation an application menu.

  • Contact utility strip
  • Service disclosure
  • Appointment link

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.