Gradient subhead product hero

Centered title, subhead, availability line and two pill buttons above a large device shape.

Open preview
snippet.html30 lines
<section class="wgh">
  <div class="wgh__copy">
    <h1 class="wgh__title" data-block="Title">Product name</h1>
    <p class="wgh__sub" data-block="Subtitle">Feature headline in one line</p>
    <p class="wgh__note" data-block="Text">Ships from March 4</p>
    <div class="wgh__actions" data-block="CTA">
      <a class="wgh__btn wgh__btn--solid" href="#">Learn more</a>
      <a class="wgh__btn" href="#">Reserve</a>
    </div>
  </div>
  <div class="wgh__device" data-block="Device" aria-hidden="true">
    <div class="wgh__screen"></div>
    <div class="wgh__base"></div>
  </div>
</section>

<style>
  .wgh { min-height: 100vh; box-sizing: border-box; padding: clamp(2.5rem, 6vw, 4.25rem) 1.25rem 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #ffffff; color: #111111; font-family: ui-sans-serif, system-ui, sans-serif; text-align: center; }
  .wgh *, .wgh *::before, .wgh *::after { box-sizing: border-box; }
  .wgh__title { margin: 0; font-size: clamp(2.5rem, 5.6vw, 3.5rem); line-height: 1.07; font-weight: 600; letter-spacing: -0.015em; }
  .wgh__sub { margin: 0.4rem 0 0; font-size: clamp(1.4rem, 2.8vw, 1.75rem); line-height: 1.15; color: #444444; }
  .wgh__note { margin: 0.75rem 0 0; font-size: 1.3125rem; color: #8a8a8a; }
  .wgh__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
  .wgh__btn { padding: 0.6875rem 1.3125rem; border: 1px solid #111111; border-radius: 980px; font-size: 1.0625rem; line-height: 1.2; color: #111111; text-decoration: none; }
  .wgh__btn--solid { background: #111111; color: #ffffff; }
  .wgh__btn:focus-visible { outline: 2px solid #111111; outline-offset: 3px; }
  .wgh__device { width: min(56vw, 800px); min-width: 300px; margin-top: clamp(2rem, 5vw, 3.5rem); flex: none; }
  .wgh__screen { aspect-ratio: 16 / 10; border: 2px solid #b5b5b5; border-radius: 18px 18px 4px 4px; background: #e4e4e4; }
  .wgh__base { height: clamp(2.5rem, 6vw, 5rem); margin: 0 -3%; border: 2px solid #b5b5b5; border-top: 0; border-radius: 0 0 22px 22px; background: #d2d2d2; }
</style>

Kind
Wireframe
Category
Hero
Added
6 Nov 2026
Canvas
Full width
File
snippet.html
Size
30 lines · 2.1 KB
Inspired by
www.apple.com
  • black-and-white
  • centered
  • product
  • device

One file: HTML, a style block and, when needed, a small script. Paste it anywhere. Nothing to install.