CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / heroes-headers / ecommerce-promotion-hero

Stable release
Back to category

Open experiment

Ecommerce promotion hero

A commerce-first hero that presents one featured product, transparent promotional terms, written availability, and a clear route into the collection.

Lab tested Responsive Dark mode
Version
1.0.0
Updated
2026-08-03
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<header class="cmp-ecommerce-promotion-hero">
  <div class="cmp-ecommerce-promotion-hero__copy">
    <span>Weekend studio offer · ends Sunday</span>
    <h1>The everyday carry set, now 25% less.</h1>
    <p>
      Weatherproof tote, modular pouch, and recycled notebook. Ships free within two business days.
    </p>
    <div class="cmp-ecommerce-promotion-hero__price">
      <strong>$96</strong><del>$128</del><small>Tax calculated at checkout</small>
    </div>
    <a href="#featured-set">Shop the carry set <span aria-hidden="true">→</span></a>
  </div>
  <div class="cmp-ecommerce-promotion-hero__art" aria-hidden="true">
    <i></i><b></b><span>3-piece set</span>
  </div>
</header>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-03

Accessibility notes

  • The discount and previous price are expressed in readable text.
  • The product artwork is decorative because the product is named in the heading.
  • Delivery terms and promotion end date are visible near the action.

License: MIT License for open-source use, modification, and distribution.

Implementation field notes

Use ecommerce promotion hero confidently.

The preview and source are only the starting point. Use these notes to decide where the component fits, preserve its accessibility contract, and verify the adapted result.

Good fit for

  • Seasonal campaigns
  • Product launches
  • Featured collections

This commerce heroes pattern works best when its purpose is clear in the surrounding page hierarchy.

Accessibility contract

  • The discount and previous price are expressed in readable text.
  • The product artwork is decorative because the product is named in the heading.
  • Delivery terms and promotion end date are visible near the action.

Integration plan

  1. Copy the standalone HTML and scoped CSS into an isolated page.
  2. Adapt primary color, accent color, surface color, text color through the Inspector.
  3. Keep the semantic markup intact while replacing the sample content.
  4. Review the result at 375, 768, 1024, and 1440 pixels before shipping.