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.
https://kitbash.me/components/floating-card-showcase/hero/figma.html?type=ghosted-portrait-caps
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/floating-card-showcase/hero/figma.html?type=ghosted-portrait-caps and pass that whole HTML document to the html_to_figma tool, so the part "Phone stage hero" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap");
:root {
--font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}
</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>