kitbash Sign in Connect agent
Components

Phone stage hero

Centred weight-500 headline, grey copy and two black store pills, over a phone mockup cut by the fold with tilted cards floating either side.

Part of the style

Floating Card Showcase

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #f3f4fe;
  --ink-2: #acadbc;
  --ink-soft: #757887;
  --ink-faint: #474b58;
  --paper: #03040d;
  --mist: #060813;
  --stone: #0e101c;
  --hair: #121521;
  --dash: #1e212e;
  --accent-soft: #0d0f1b;
  --on-ink: #03040d;
  --on-ink-soft: #5b5f6d;
  --accent: #616281;
}
</style>

<section class="hero">
  <div class="hero__copy">
    <h1 class="hero__title">One shared pantry for the flat, the family or the weekend away.</h1>
    <p class="hero__lead">Add what ran out, snap the receipt or just say it. Everyone sees the same list, who bought what and what is still owed. Works offline in any kitchen.</p>
    <div class="hero__stores">
      <a class="hero__store" href="#">
        <svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><rect x="6" y="2" width="12" height="20" rx="3" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M10 18.5h4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
        <span class="hero__store-text"><small>Download for</small>iPhone</span>
      </a>
      <a class="hero__store" href="#">
        <svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M7 4.5v15l12-7.5z" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>
        <span class="hero__store-text"><small>Get it for</small>Android</span>
      </a>
    </div>
  </div>

  <div class="hero__stage">
    <div class="hero__side hero__side--left" aria-hidden="true">
      <img class="hero__side-pic" src="assets/white-tablecloth.jpg" alt="" width="56" height="56">
      <p class="hero__side-title">Friday supper</p>
      <p class="hero__side-text">Teo owes you <b>€18.40</b></p>
      <span class="hero__chip">Updated · today</span>
    </div>
    <div class="hero__side hero__side--right" aria-hidden="true">
      <img class="hero__side-pic" src="assets/fruit-asparagus.jpg" alt="" width="56" height="56">
      <p class="hero__side-title">Cabin weekend</p>
      <p class="hero__side-text">All settled up</p>
      <span class="hero__chip">Updated · Sunday</span>
    </div>

    <div class="hero__phone">
      <div class="hero__screen">
        <div class="hero__status"><span>9:41</span><span class="hero__island"></span><span class="hero__bat"></span></div>
        <div class="hero__top">
          <span class="hero__pill">Home ▾</span>
          <img class="hero__me" src="assets/portrait-woman.jpg" alt="" width="32" height="32">
        </div>
        <p class="hero__hi">Hi, Ines.<span> What ran out today?</span></p>
        <div class="hero__tiles">
          <div class="hero__tile"><span class="hero__tile-label">Spent this week</span><b class="hero__tile-value">€84.20</b><span class="hero__tile-note">4 people</span></div>
          <div class="hero__tile"><span class="hero__tile-label">Your share</span><b class="hero__tile-value">€21.05</b><span class="hero__tile-note">due Sunday</span></div>
        </div>
        <div class="hero__seg"><span class="hero__seg-on">Open <i>2</i></span><span>Done</span></div>
        <div class="hero__list">
          <img class="hero__list-pic" src="assets/apples-grapes.jpg" alt="Apples and grapes on a white cloth" width="52" height="52">
          <div><b>Sunday market</b><span>12 items · 3 left</span></div>
        </div>
      </div>
    </div>
    <span class="hero__fab" aria-hidden="true">+ Add item</span>
  </div>
</section>

<style>
  .hero {
    overflow: hidden;
    padding: clamp(56px, 7vw, 88px) var(--edge) 0;
    background: var(--stone);
    text-align: center;
  }
  .hero__copy > *,
  .hero__stage {
    animation: hero-rise var(--enter) var(--ease-out) both;
  }
  .hero__lead { animation-delay: 90ms; }
  .hero__stores { animation-delay: 180ms; }
  .hero__stage { animation-delay: 270ms; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
  }
  .hero__title {
    max-width: 13.5em;
    margin: 0 auto;
    font-size: var(--display-l);
    font-weight: var(--weight-medium);
    line-height: 1.06;
    letter-spacing: var(--track-tight);
    text-wrap: balance;
  }
  .hero__lead {
    max-width: 34em;
    margin: var(--space-l) auto 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: 1.4;
    text-wrap: balance;
  }
  .hero__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
    margin-top: var(--space-l);
  }
  .hero__store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px 0 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--on-ink);
    text-align: left;
    text-decoration: none;
    transition: background var(--quick) var(--ease);
  }
  .hero__store:hover,
  .hero__store:focus-visible {
    background: var(--ink-2);
  }
  .hero__store-text {
    display: grid;
    font-size: var(--text-l);
    font-weight: var(--weight-semi);
    line-height: 1.05;
  }
  .hero__store-text small {
    font-size: 11px;
    font-weight: var(--weight-medium);
    opacity: 0.8;
  }

  .hero__stage {
    position: relative;
    width: min(100%, 720px);
    height: clamp(260px, 30vw, 330px);
    margin: clamp(40px, 5vw, 64px) auto 0;
    perspective: 900px;
  }
  .hero__phone {
    position: relative;
    z-index: 2;
    width: min(76vw, 330px);
    height: 520px;
    margin: 0 auto;
    padding: 11px;
    border-radius: var(--radius-phone) var(--radius-phone) 0 0;
    background: var(--ink);
    box-shadow: var(--shadow-lift);
  }
  .hero__screen {
    height: 100%;
    padding: 12px 16px;
    border-radius: 36px 36px 0 0;
    background: var(--mist);
    text-align: left;
  }
  .hero__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px 12px;
    font-size: var(--text-s);
    font-weight: var(--weight-semi);
  }
  .hero__island {
    width: 86px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--ink);
  }
  .hero__bat {
    width: 24px;
    height: 12px;
    border-radius: 4px;
    background: var(--ink);
  }
  .hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .hero__pill {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--stone);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
  }
  .hero__me {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
  }
  .hero__hi {
    margin: 12px 0;
    font-size: var(--text-l);
    font-weight: var(--weight-semi);
    line-height: 1.2;
  }
  .hero__hi span {
    color: var(--ink-faint);
  }
  .hero__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero__tile {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: var(--rule) solid var(--hair);
    border-radius: var(--radius-card);
    background: var(--paper);
  }
  .hero__tile-label,
  .hero__tile-note {
    color: var(--ink-soft);
    font-size: var(--text-xs);
  }
  .hero__tile-value {
    font-size: var(--text-l);
    font-weight: var(--weight-semi);
  }
  .hero__seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 12px 0 10px;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--stone);
    color: var(--ink-faint);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    text-align: center;
  }
  .hero__seg span {
    padding: 6px;
  }
  .hero__seg .hero__seg-on {
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
  }
  .hero__seg i {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-ink);
    font-size: 10px;
    font-style: normal;
  }
  .hero__list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    font-size: var(--text-xs);
  }
  .hero__list b {
    display: block;
    font-size: var(--text-m);
    font-weight: var(--weight-semi);
  }
  .hero__list span {
    color: var(--ink-soft);
  }
  .hero__list-pic {
    width: 52px;
    height: 52px;
    border: 3px solid var(--paper);
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
  }
  .hero__fab {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-ink);
    font-size: var(--text-m);
    font-weight: var(--weight-semi);
    box-shadow: 0 10px 24px rgba(255, 90, 36, 0.35);
    transform: translateX(-50%);
    animation: hero-bob var(--float-time) ease-in-out infinite;
  }

  .hero__side {
    position: absolute;
    z-index: 1;
    top: 70px;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 12px;
    align-items: center;
    width: 230px;
    padding: 14px;
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    text-align: left;
    --tilt: 28deg;
    animation: hero-tilt var(--float-time) ease-in-out infinite;
  }
  .hero__side--left {
    left: 0;
    --tilt: 28deg;
  }
  .hero__side--right {
    right: 0;
    top: 110px;
    --tilt: -28deg;
    animation-delay: -3s;
  }
  .hero__side-pic {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    border: 3px solid var(--paper);
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
  }
  .hero__side-title {
    margin: 0;
    font-size: var(--text-m);
    font-weight: var(--weight-semi);
  }
  .hero__side-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-xs);
  }
  .hero__side-text b {
    color: var(--ink);
  }
  .hero__chip {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px;
    padding: 5px 10px;
    border: var(--rule) solid var(--hair);
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: var(--text-xs);
  }
  @keyframes hero-tilt {
    0%, 100% { transform: rotateY(var(--tilt)) translateY(0); }
    50% { transform: rotateY(var(--tilt)) translateY(-8px); }
  }
  @keyframes hero-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -6px); }
  }

  @media (max-width: 44rem) {
    .hero__side {
      display: none;
    }
    .hero__fab {
      bottom: 10px;
      padding: 10px 16px;
      font-size: var(--text-s);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__side,
    .hero__fab,
    .hero__copy > *,
    .hero__stage {
      animation: none;
    }
    .hero__side--left { transform: rotateY(28deg); }
    .hero__side--right { transform: rotateY(-28deg); }
  }
</style>

Similar components

Swinging badge hero

Swinging badge hero

Hero

Hero

Dot-mosaic hero

Dot-mosaic hero

Headline over app window

Headline over app window

Spinning coin hero

Spinning coin hero

Opening line

Opening line

Tablet on the lawn

Tablet on the lawn

Device hero

Device hero