Tablet hero

Centered logo, headline and video button above a large outlined landscape tablet that runs off the bottom, its screen showing a meal-planning app.

Open preview
snippet.html173 lines
<section class="tbh">
  <header class="tbh__bar">
    <a class="tbh__logo" href="#" data-block="Logo">Stock<b>pot</b></a>
  </header>

  <div class="tbh__copy">
    <h1 class="tbh__title" data-block="Title">A week of dinners, planned on Sunday</h1>
    <p class="tbh__text" data-block="Subtitle">Pick five recipes. Stockpot sorts the shopping list by aisle.</p>
    <a class="tbh__btn" href="#" data-block="CTA">
      <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="currentColor"/><path d="M10 8v8l6-4z" fill="#fff"/></svg>
      See it in a kitchen
    </a>
  </div>

  <div class="tbh__stage">
    <div class="tbh__device" data-block="Device" role="img" aria-label="Stockpot on a tablet: five dinners planned for the week and a shopping list grouped by aisle">
      <div class="tbh__screen" aria-hidden="true">
        <div class="tbh__status">
          <span>18:42&nbsp;&nbsp; Sun 9 Nov</span>
          <span class="tbh__sys"><i class="tbh__signal"><b></b><b></b><b></b><b></b></i>57% <i class="tbh__batt"></i></span>
        </div>

        <div class="tbh__app">
          <aside class="tbh__week">
            <strong>This week</strong>
            <ul>
              <li><span>Mon</span>Lemon orzo</li>
              <li class="is-on"><span>Tue</span>Chicken tray bake</li>
              <li><span>Wed</span>Red lentil dal</li>
              <li><span>Thu</span>Fish tacos</li>
              <li><span>Fri</span>Mushroom risotto</li>
            </ul>
          </aside>

          <div class="tbh__main">
            <div class="tbh__head">
              <strong>Week of 10 November</strong>
              <span>5 dinners, 31 items</span>
            </div>
            <div class="tbh__cards">
              <div class="tbh__card"><i></i><b>Lemon orzo</b><span>25 min</span></div>
              <div class="tbh__card is-on"><i></i><b>Chicken tray bake</b><span>50 min</span></div>
              <div class="tbh__card"><i></i><b>Red lentil dal</b><span>35 min</span></div>
              <div class="tbh__card"><i></i><b>Fish tacos</b><span>20 min</span></div>
            </div>
          </div>

          <aside class="tbh__list">
            <strong>Shopping list</strong>
            <small>Aisle 1: produce</small>
            <p class="is-done"><i></i>Lemons (3)</p>
            <p class="is-done"><i></i>Red onions (4)</p>
            <p><i></i>Chestnut mushrooms</p>
            <small>Aisle 4: tins</small>
            <p><i></i>Chopped tomatoes (2)</p>
            <p><i></i>Coconut milk</p>
          </aside>
        </div>
      </div>
    </div>
  </div>
</section>

<style>
  .tbh {
    --tbh-bg: #ffffff;
    --tbh-brand: #111111;
    --tbh-brand-dark: #000000;
    --tbh-tint: #f2f2f2;
    --tbh-line: #d4d4d4;
    --tbh-surface: #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tbh-bg);
    color: var(--tbh-brand);
    font-family: Montserrat, "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  }
  .tbh *, .tbh *::before, .tbh *::after { box-sizing: border-box; }
  .tbh a { color: inherit; text-decoration: none; }
  .tbh a:focus-visible { outline: 2px solid var(--tbh-brand-dark); outline-offset: 3px; border-radius: 4px; }

  .tbh__bar { display: flex; align-items: center; justify-content: center; height: 64px; margin-top: clamp(1rem, 10.5vh, 6rem); padding: 0 clamp(1rem, 3.4vw, 3rem); }
  .tbh__logo { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
  .tbh__logo b { font-weight: 700; }

  .tbh__copy {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: calc(1128px + 4rem); margin: 0 auto;
    padding: clamp(1.5rem, 4.5vh, 2.5rem) clamp(1rem, 4vw, 2rem) 0;
    text-align: center;
  }
  .tbh__title { margin: 0; font-size: clamp(2.25rem, 4.2vw, 3.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
  .tbh__text { max-width: 40rem; margin: 0.5rem 0 2.5rem; font-size: 1rem; font-weight: 700; line-height: 1.5; }
  .tbh__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    min-height: 48px; padding: 0 1.75rem;
    border: 1px solid var(--tbh-brand); border-radius: 4px;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
    transition: background-color 0.15s;
  }
  .tbh__btn:hover { background: var(--tbh-tint); }
  .tbh__btn svg { width: 22px; height: 22px; flex: none; color: var(--tbh-brand-dark); }

  /* The tablet runs off the bottom of the section. */
  .tbh__stage { flex: 1 1 0; min-height: clamp(200px, 48vw, 340px); margin-top: clamp(2.5rem, 14vh, 8.5rem); padding: 4px clamp(1rem, 4vw, 2rem) 0; overflow: hidden; }
  .tbh__device {
    position: relative;
    container-type: inline-size;
    width: 100%; max-width: 968px; margin: 0 auto;
    aspect-ratio: 968 / 700;
    padding: min(28px, 2.9vw);
    border: 2px solid var(--tbh-brand); border-radius: clamp(20px, 4.6cqw, 46px);
    background: var(--tbh-bg);
  }
  .tbh__device::before { content: ""; position: absolute; top: -5px; left: 6.8%; width: 7.6%; height: 4px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, var(--tbh-brand) 0 42%, transparent 42% 58%, var(--tbh-brand) 58%); }
  .tbh__device::after { content: ""; position: absolute; left: -5px; top: 6%; width: 4px; height: 6%; border-radius: 2px 0 0 2px; background: var(--tbh-brand); }

  .tbh__screen {
    height: 100%; overflow: hidden;
    border: 1px solid var(--tbh-brand); border-radius: clamp(6px, 1.3cqw, 12px);
    background: var(--tbh-surface);
    font-size: 1.45cqw; line-height: 1.35;
  }
  .tbh__status { display: flex; justify-content: space-between; align-items: center; padding: 0.55em 0.6em 0; font-size: 0.72em; font-weight: 500; }
  .tbh__sys { display: inline-flex; align-items: center; gap: 0.45em; }
  .tbh__signal { display: inline-flex; align-items: flex-end; gap: 0.12em; height: 0.8em; }
  .tbh__signal b { width: 0.2em; background: var(--tbh-brand); }
  .tbh__signal b:nth-child(1) { height: 35%; } .tbh__signal b:nth-child(2) { height: 55%; } .tbh__signal b:nth-child(3) { height: 78%; } .tbh__signal b:nth-child(4) { height: 100%; }
  .tbh__batt { position: relative; width: 1.7em; height: 0.85em; border: 1px solid var(--tbh-brand); border-radius: 0.2em; background: linear-gradient(90deg, var(--tbh-brand) 57%, transparent 57%) content-box; padding: 1px; }
  .tbh__batt::after { content: ""; position: absolute; right: -0.2em; top: 25%; width: 0.12em; height: 50%; background: var(--tbh-brand); }

  .tbh__app { display: grid; grid-template-columns: 13em 1fr 15em; gap: 1.4em; padding: 1.4em 1.6em; }
  .tbh__app strong { display: block; font-size: 1.05em; color: var(--tbh-brand-dark); }

  .tbh__week ul { margin: 0.9em 0 0; padding: 0; list-style: none; display: grid; gap: 0.35em; }
  .tbh__week li { padding: 0.55em 0.7em; border-radius: 0.35em; font-size: 0.85em; font-weight: 600; }
  .tbh__week li span { display: block; font-size: 0.78em; font-weight: 500; opacity: 0.75; }
  .tbh__week li.is-on { background: var(--tbh-brand); color: #fff; }

  .tbh__head { display: flex; justify-content: space-between; align-items: baseline; }
  .tbh__head span { font-size: 0.8em; font-weight: 600; }
  .tbh__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; margin-top: 1em; }
  .tbh__card { padding: 0.5em; border: 1px solid var(--tbh-line); border-radius: 0.5em; font-size: 0.85em; }
  .tbh__card i { display: block; height: 6.5em; margin-bottom: 0.6em; border-radius: 0.35em; background: radial-gradient(circle at 50% 58%, #fff 0 24%, var(--tbh-line) 25% 31%, transparent 32%), var(--tbh-tint); }
  .tbh__card b { display: block; color: var(--tbh-brand-dark); }
  .tbh__card span { font-size: 0.85em; font-weight: 500; }
  .tbh__card.is-on { border-color: var(--tbh-brand); box-shadow: 0 0 0 1px var(--tbh-brand); }

  .tbh__list { padding: 1em; border-radius: 0.5em; background: var(--tbh-tint); }
  .tbh__list small { display: block; margin: 1em 0 0.4em; font-size: 0.7em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .tbh__list p { display: flex; align-items: center; gap: 0.6em; margin: 0 0 0.45em; font-size: 0.85em; font-weight: 500; color: var(--tbh-brand-dark); }
  .tbh__list p i { width: 1em; height: 1em; flex: none; border: 1px solid var(--tbh-brand); border-radius: 0.2em; background: #fff; }
  .tbh__list p.is-done { color: var(--tbh-brand); text-decoration: line-through; }
  .tbh__list p.is-done i { background: var(--tbh-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 6 2 2 4-4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; }

  @media (max-width: 640px) {
    .tbh__stage { margin-top: 3rem; }
    .tbh__screen { font-size: 2.6cqw; }
    .tbh__app { grid-template-columns: 1fr 1fr; }
    .tbh__week { display: none; }
    .tbh__cards { grid-template-columns: 1fr; }
    .tbh__card:nth-child(n+2) { display: none; }
  }
  @media (max-width: 420px) {
    .tbh__logo { font-size: 1.5rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .tbh__btn { transition: none; }
  }
</style>

Kind
Wireframe
Category
Hero
Added
5 Nov 2026
Canvas
Full width
File
snippet.html
Size
173 lines · 9.1 KB
  • light
  • black-and-white
  • centered
  • device
  • tablet

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