kitbash Sign in Connect agent
Components

Tablet on the lawn

An inset photo stage of dark grass with a paper-screen tablet lying tilted on it under swaying leaf shadow, a drawn fallen leaf, a headline, an amber-framed film thumbnail and a newsletter slip over the order button.

Part of the style

Dappled Shade Paper

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&display=swap");
:root {
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}
</style>

<section class="hero">
  <div class="hero__stage">
    <img class="hero__ground" src="assets/grass.jpg" alt="Close-cropped lawn seen from above" width="1024" height="683">
    <div class="hero__tint" aria-hidden="true"></div>

    <div class="hero__copy">
      <h1 class="hero__title">The computer, slowed down</h1>
      <p class="hero__lead">Meet Slate One. A paper-screen computer for long reading, quiet writing and evenings without glare.</p>
    </div>

    <figure class="hero__device">
      <div class="hero__bezel">
        <div class="hero__screen">
          <img class="hero__page" src="assets/fern-branch.jpg" alt="A pressed fern branch shown on the paper screen" width="615" height="800">
          <span class="hero__page-note">Plate 12 · Lady fern, pressed in June</span>
        </div>
        <svg class="hero__shade" viewBox="0 0 400 520" preserveAspectRatio="none" aria-hidden="true">
          <defs><filter id="hero-soft" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="12"/></filter></defs>
          <g class="hero__shade-leaves" filter="url(#hero-soft)">
            <ellipse cx="60" cy="80" rx="90" ry="22" transform="rotate(-35 60 80)"/>
            <ellipse cx="150" cy="40" rx="60" ry="16" transform="rotate(20 150 40)"/>
            <ellipse cx="330" cy="200" rx="80" ry="20" transform="rotate(-60 330 200)"/>
            <ellipse cx="260" cy="120" rx="44" ry="14" transform="rotate(-10 260 120)"/>
            <ellipse cx="90" cy="380" rx="70" ry="18" transform="rotate(40 90 380)"/>
          </g>
        </svg>
      </div>
    </figure>

    <svg class="hero__leaf hero__leaf--a" viewBox="0 0 60 90" aria-hidden="true">
      <path d="M30 4 C 52 22 56 58 32 86 C 8 60 6 26 30 4 Z"/>
      <path d="M30 10 C 31 40 32 62 32 84" class="hero__leaf-vein"/>
    </svg>
    <svg class="hero__leaf hero__leaf--b" viewBox="0 0 60 90" aria-hidden="true">
      <path d="M30 4 C 52 22 56 58 32 86 C 8 60 6 26 30 4 Z"/>
      <path d="M30 10 C 31 40 32 62 32 84" class="hero__leaf-vein"/>
    </svg>

    <a class="hero__film" href="#" aria-label="Play the two-minute film">
      <img src="assets/park.jpg" alt="A park gate under tall trees" width="648" height="800">
      <svg class="hero__play" viewBox="0 0 40 44" aria-hidden="true"><path d="M4 3 L37 22 L4 41 Z"/></svg>
    </a>

    <div class="hero__aside">
      <div class="hero__slip" role="group" aria-label="Newsletter">
        <p class="hero__slip-title">Field letter</p>
        <p class="hero__slip-note">Monthly updates · no noise</p>
        <button class="hero__close" type="button" aria-label="Dismiss newsletter">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 3 L13 13 M13 3 L3 13"/></svg>
        </button>
      </div>
      <p class="hero__stock">✓ In stock · ships in 3–5 days</p>
      <a class="hero__order" href="#">Order now</a>
    </div>
  </div>
</section>

<style>
  .hero { padding: 0 var(--inset) var(--inset); background: var(--paper); }
  .hero__stage {
    position: relative;
    min-height: clamp(600px, 60vw, 860px);
    overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--night);
    isolation: isolate;
  }
  .hero__ground {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) saturate(0.75) sepia(0.4) contrast(1.15);
  }
  .hero__tint {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 90% at 55% 50%, transparent 30%, var(--night) 100%),
      linear-gradient(180deg, var(--night-veil), transparent 35%);
  }

  .hero__copy {
    position: absolute;
    top: clamp(28px, 6vw, 96px);
    left: clamp(24px, 3.4vw, 48px);
    max-width: 640px;
    color: var(--white);
    z-index: 2;
  }
  .hero__title {
    margin: 0 0 var(--space-m);
    font-size: var(--display);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: var(--track-display);
  }
  .hero__lead {
    max-width: 26em;
    margin: 0;
    font-size: var(--text-l);
    line-height: 1.25;
  }

  .hero__device {
    position: absolute;
    left: 56%;
    top: 54%;
    width: clamp(240px, 28vw, 420px);
    margin: 0;
    transform: translate(-50%, -50%) rotate(-21deg);
    z-index: 1;
  }
  .hero__bezel {
    position: relative;
    aspect-ratio: 3 / 4;
    padding: 9%;
    border-radius: var(--radius-device);
    background: linear-gradient(150deg, var(--paper), var(--bezel) 55%, var(--paper-deep));
    box-shadow: var(--shadow-device), inset 0 0 0 var(--line) var(--white-soft);
    overflow: hidden;
  }
  .hero__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--screen);
    box-shadow: inset 0 0 0 var(--line) var(--ink-faint);
  }
  .hero__page {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    mix-blend-mode: multiply;
    opacity: 0.85;
  }
  .hero__page-note {
    position: absolute;
    left: 8%;
    bottom: 5%;
    color: var(--ink-soft);
    font-size: 9px;
    letter-spacing: 0;
  }
  .hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--shade-deep);
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .hero__shade-leaves { animation: hero-sway var(--drift) ease-in-out infinite; transform-origin: 0 0; }
  .hero.is-off .hero__shade-leaves, .hero.is-off .hero__leaf { animation-play-state: paused; }
  @keyframes hero-sway {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(18px, 12px) rotate(2deg); }
  }

  .hero__leaf { position: absolute; z-index: 2; fill: var(--leaf); filter: var(--cast-leaf); }
  .hero__leaf-vein { fill: none; stroke: var(--ink-faint); stroke-width: 1.4; }
  .hero__leaf--a { left: 34%; top: 42%; width: 56px; transform: rotate(-28deg); animation: hero-rock 9s ease-in-out infinite; }
  .hero__leaf--b { left: 66%; top: 74%; width: 64px; transform: rotate(68deg); opacity: 0.9; animation: hero-rock 11s ease-in-out infinite reverse; }
  @keyframes hero-rock { 50% { translate: 3px -2px; rotate: 4deg; } }

  .hero__film {
    position: absolute;
    left: clamp(24px, 3.4vw, 48px);
    bottom: clamp(24px, 2.4vw, 32px);
    width: clamp(200px, 20vw, 290px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: var(--line-accent) solid var(--amber);
    border-radius: var(--radius-l);
    z-index: 2;
  }
  .hero__film img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.3) saturate(0.8); transition: transform var(--slow) var(--ease); }
  .hero__film:hover img { transform: scale(1.04); }
  .hero__play { position: absolute; left: 50%; top: 50%; width: 34px; fill: var(--amber); transform: translate(-40%, -50%); transition: transform var(--quick) var(--ease-out); }
  .hero__film:hover .hero__play { transform: translate(-40%, -50%) scale(1.12); }

  .hero__aside {
    position: absolute;
    right: clamp(16px, 1.4vw, 20px);
    bottom: clamp(16px, 1.8vw, 26px);
    display: grid;
    gap: var(--space-s);
    width: min(340px, 100%);
    z-index: 2;
  }
  .hero__slip {
    position: relative;
    padding: var(--space-m) 56px var(--space-m) var(--space-m);
    border: var(--line-accent) solid var(--amber);
    border-radius: var(--radius-l);
    background: var(--paper);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  }
  .hero__slip.is-gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
  .hero__slip-title { margin: 0 0 var(--space-xs); font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: var(--track-display); }
  .hero__slip-note { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; }
  .hero__close {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-s);
    background: transparent;
    cursor: pointer;
  }
  .hero__close svg { width: 14px; fill: none; stroke: var(--ink-soft); stroke-width: 1.5; transition: stroke var(--quick) var(--ease-out); }
  .hero__close:hover svg { stroke: var(--ink); }
  .hero__stock { margin: 0; color: var(--white-soft); font-size: var(--text-xs); font-weight: 500; text-align: center; text-transform: uppercase; letter-spacing: var(--track-caps); }
  .hero__order {
    display: grid;
    place-items: center;
    min-height: 60px;
    border-radius: var(--radius-l);
    background: var(--amber);
    color: var(--ink);
    font-size: var(--text-s);
    font-weight: 500;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--quick) var(--ease-out);
  }
  .hero__order:hover { background: var(--amber-deep); }
  .hero a:focus-visible, .hero button:focus-visible { outline: var(--line-accent) solid var(--white); outline-offset: 3px; }

  @media (max-width: 48rem) {
    .hero { padding: 0 10px 10px; }
    .hero__stage { display: flex; flex-direction: column; gap: var(--space-l); min-height: 0; padding: 28px 20px 20px; }
    .hero__copy, .hero__device, .hero__film, .hero__aside { position: relative; inset: auto; }
    .hero__device { width: min(72%, 320px); margin: var(--space-m) auto; transform: rotate(-14deg); }
    .hero__leaf--a { left: 8%; top: 46%; }
    .hero__leaf--b { left: auto; right: 6%; top: 62%; }
    .hero__film { width: 70%; }
    .hero__aside { width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__shade-leaves, .hero__leaf { animation: none; }
  }
</style>

<script>
  (() => {
    for (const root of document.querySelectorAll('.hero')) {
      const slip = root.querySelector('.hero__slip');
      root.querySelector('.hero__close').addEventListener('click', () => slip.classList.add('is-gone'));
      new IntersectionObserver(([entry]) => {
        root.classList.toggle('is-off', !entry.isIntersecting);
      }).observe(root);
    }
  })();
</script>

Similar components

Phone stage hero

Phone stage hero

Hero

Hero

Swinging badge hero

Swinging badge hero

Fitted headline sheet

Fitted headline sheet

Headline over app window

Headline over app window

Particle halo hero

Particle halo hero

Centred hero with foil word

Centred hero with foil word

Device hero

Device hero