HEADERS / FREE HTML + ASTRO

Shop category header

A shop header with an announcement strip, brand row and product-category navigation.

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-shop-category-header s-header s-shop" data-snippet="shop-category-header"><div class="s-announcement">Considered objects for everyday life · Sample announcement</div><div class="s-wrap s-header-row"><a href="index.html" class="s-brand">The Everyday Store</a><a class="s-header-action s-button" href="basket.html">Basket</a><button type="button" class="s-nav-toggle" aria-expanded="false" aria-controls="fct-shop-category-header-nav">Menu</button><nav aria-label="Primary" id="fct-shop-category-header-nav"><a href="new.html">New arrivals</a><a href="home.html">Home & living</a><a href="clothing.html">Clothing</a><a href="about.html">Our story</a></nav></div></header>

Where this design fits

Three distinct rows separate an announcement, the store identity and product categories. Basket and shop destinations are ordinary links for you to connect to your commerce system.

  • Announcement strip
  • Product-category links
  • Commerce destinations

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.