Three phones hero
A menu, logo and social bar over a centered headline and round play button, with three outlined phones rising from the bottom edge.
snippet.html192 lines
<section class="tph">
<header class="tph__bar" data-block="Navigation">
<button class="tph__menu" type="button" aria-label="Open menu" aria-expanded="false">
<span></span><span></span><span></span>
</button>
<a class="tph__logo" href="#">Phrase<b>loop</b></a>
<nav class="tph__social" aria-label="Phraseloop on social media">
<a href="#" aria-label="Facebook"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M13.5 22v-8h2.7l.4-3.2h-3.1V8.8c0-.9.3-1.6 1.6-1.6h1.7V4.3c-.3 0-1.3-.1-2.5-.1-2.5 0-4.1 1.5-4.1 4.2v2.4H7.4V14h2.8v8z" fill="currentColor"/></svg></a>
<a href="#" aria-label="Instagram"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="17.3" cy="6.7" r="1.3" fill="currentColor"/></svg></a>
<a href="#" aria-label="YouTube"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4a2.5 2.5 0 0 0-1.8 1.8C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8z" fill="currentColor"/><path d="M10 15.2V8.8l5.2 3.2z" fill="#ffffff"/></svg></a>
</nav>
</header>
<div class="tph__copy">
<h1 class="tph__title" data-block="Title">Ten minutes of Spanish before your coffee</h1>
<p class="tph__text" data-block="Subtitle">Short lessons from real conversations, with one rest day a week.</p>
<a class="tph__play" href="#" data-block="Video" aria-label="Play video: a morning lesson, 1 minute 12 seconds">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z" fill="currentColor"/></svg>
</a>
</div>
<div class="tph__stage">
<div class="tph__phones" role="img" aria-label="Three Phraseloop screens: the lesson list, a translation question, and a 23 day streak">
<div class="tph__phone tph__phone--left" aria-hidden="true" data-block="Device">
<div class="tph__screen">
<strong class="tph__h">Spanish A2</strong>
<div class="tph__meter"><span style="width: 62%"></span></div>
<small class="tph__sub">Unit 4 of 7, around town</small>
<ul class="tph__lessons">
<li class="is-done"><i></i>Ordering at a bar</li>
<li class="is-done"><i></i>Buying a train ticket</li>
<li class="is-on"><i></i>Asking for directions</li>
<li><i></i>At the pharmacy</li>
<li><i></i>Small talk with neighbours</li>
</ul>
</div>
</div>
<div class="tph__phone tph__phone--center" aria-hidden="true" data-block="Device">
<div class="tph__screen">
<div class="tph__top"><span>4 / 10</span><div class="tph__meter"><span style="width: 40%"></span></div></div>
<small class="tph__sub">Translate this sentence</small>
<p class="tph__prompt">Where is the train station?</p>
<div class="tph__choices">
<span>¿Dónde es la estación?</span>
<span class="is-on">¿Dónde está la estación?</span>
<span>¿Cuándo está el tren?</span>
</div>
<span class="tph__check">Check</span>
</div>
</div>
<div class="tph__phone tph__phone--right" aria-hidden="true" data-block="Device">
<div class="tph__screen">
<strong class="tph__big">23</strong>
<small class="tph__sub">day streak, 1 rest day left this week</small>
<div class="tph__cal">
<b></b><b></b><b></b><b></b><b></b><b></b><b></b>
<b></b><b></b><b></b><b class="is-rest"></b><b></b><b></b><b></b>
<b></b><b></b><b></b><b></b><b></b><b></b><b></b>
<b></b><b></b><b class="is-today"></b><i></i><i></i><i></i><i></i>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
.tph {
--tph-bg: #ffffff;
--tph-brand: #111111;
--tph-brand-dark: #000000;
--tph-tint: #f2f2f2;
--tph-line: #d4d4d4;
--tph-surface: #ffffff;
min-height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--tph-bg);
color: var(--tph-brand);
font-family: Montserrat, "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.tph *, .tph *::before, .tph *::after { box-sizing: border-box; }
.tph a { color: inherit; text-decoration: none; }
.tph a:focus-visible, .tph button:focus-visible { outline: 2px solid var(--tph-brand-dark); outline-offset: 3px; border-radius: 4px; }
.tph__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 64px; padding: 0 clamp(1rem, 3.4vw, 3rem); }
.tph__menu { justify-self: start; display: grid; gap: 4px; width: 40px; height: 40px; margin-left: -10px; padding: 12px 10px; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.tph__menu span { display: block; height: 2px; border-radius: 1px; background: var(--tph-brand); }
.tph__menu:hover { background: var(--tph-tint); }
.tph__logo { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
.tph__logo b { font-weight: 700; }
.tph__social { justify-self: end; display: flex; gap: 0.5rem; margin-right: -10px; }
.tph__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; transition: background-color 0.15s, color 0.15s; }
.tph__social a:hover { background: var(--tph-tint); color: var(--tph-brand-dark); }
.tph__social svg { width: 20px; height: 20px; }
.tph__copy {
display: flex; flex-direction: column; align-items: center;
width: 100%; max-width: calc(1128px + 4rem); margin: 0 auto;
padding: clamp(2rem, 10vh, 5.75rem) clamp(1rem, 4vw, 2rem) 0;
text-align: center;
}
.tph__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; }
.tph__text { max-width: 40rem; margin: 0.5rem 0 0; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.tph__play {
display: grid; place-items: center; width: 56px; height: 56px; margin-top: clamp(2.5rem, 7vh, 4rem);
border-radius: 50%; background: var(--tph-brand); color: #fff;
box-shadow: 0 0 0 8px rgb(0 0 0 / 0.1);
transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.tph .tph__play { color: #fff; }
.tph .tph__play:focus-visible { border-radius: 50%; }
.tph__play svg { width: 24px; height: 24px; margin-left: 3px; }
.tph__play:hover { transform: scale(1.06); background: var(--tph-brand-dark); box-shadow: 0 0 0 12px rgb(0 0 0 / 0.1); }
/* Phones run off the bottom of the section. */
.tph__stage { flex: 1 1 0; min-height: clamp(260px, 60vw, 380px); margin-top: clamp(2.5rem, 12vh, 7rem); padding: 0 clamp(1rem, 4vw, 2rem); overflow: hidden; }
.tph__phones { position: relative; width: 100%; max-width: 886px; margin: 0 auto; aspect-ratio: 886 / 760; }
.tph__phone {
position: absolute; top: 0;
container-type: inline-size;
aspect-ratio: 335 / 690;
border: 2px solid var(--tph-brand); border-radius: 16% / 7.8%;
background: var(--tph-bg);
}
.tph__phone--center { left: 31.15%; width: 37.8%; z-index: 2; }
.tph__phone--left, .tph__phone--right { width: 32.7%; margin-top: 5.5%; z-index: 1; }
.tph__phone--left { left: 0; }
.tph__phone--right { right: 0; }
/* Side buttons */
.tph__phone::before { content: ""; position: absolute; left: -5px; top: 13%; width: 4px; height: 24%; background: linear-gradient(var(--tph-brand) 0 16%, transparent 16% 28%, var(--tph-brand) 28% 62%, transparent 62% 70%, var(--tph-brand) 70%); border-radius: 2px 0 0 2px; }
.tph__phone::after { content: ""; position: absolute; right: -5px; top: 22%; width: 4px; height: 11%; background: var(--tph-brand); border-radius: 0 2px 2px 0; }
.tph__screen {
position: absolute; inset: 5.6cqw; overflow: hidden;
padding: 17cqw 7cqw 0;
border: 1px solid var(--tph-brand); border-radius: 11cqw;
background: var(--tph-surface);
font-size: 4.2cqw; line-height: 1.35;
}
/* Notch */
.tph__screen::before { content: ""; position: absolute; top: -1px; left: 50%; width: 56%; height: 7.4cqw; transform: translateX(-50%); border: 1px solid var(--tph-brand); border-top: 0; border-radius: 0 0 4.5cqw 4.5cqw; background: radial-gradient(circle at 72% 50%, var(--tph-brand) 0 1.5cqw, transparent 1.6cqw), var(--tph-bg); }
.tph__screen::after { content: ""; position: absolute; top: 2.6cqw; left: 37%; width: 12cqw; height: 1.4cqw; border-radius: 1cqw; background: var(--tph-brand); }
.tph__h { display: block; font-size: 1.25em; color: var(--tph-brand-dark); }
.tph__sub { display: block; margin-top: 0.5em; font-size: 0.8em; font-weight: 600; }
.tph__meter { height: 0.45em; margin-top: 0.8em; border-radius: 1em; background: var(--tph-tint); }
.tph__meter span { display: block; height: 100%; border-radius: inherit; background: var(--tph-brand); }
.tph__lessons { margin: 1.2em 0 0; padding: 0; list-style: none; display: grid; gap: 0.5em; }
.tph__lessons li { display: flex; align-items: center; gap: 0.6em; padding: 0.75em 0.7em; border: 1px solid var(--tph-line); border-radius: 0.6em; font-size: 0.85em; font-weight: 600; }
.tph__lessons i { width: 1.1em; height: 1.1em; flex: none; border: 1px solid var(--tph-line); border-radius: 50%; }
.tph__lessons .is-done i { border-color: var(--tph-brand); background: var(--tph-brand); }
.tph__lessons .is-on { border-color: var(--tph-brand); background: var(--tph-tint); color: var(--tph-brand-dark); }
.tph__lessons .is-on i { border: 0.3em solid var(--tph-brand); }
.tph__top { display: flex; align-items: center; gap: 0.7em; font-size: 0.8em; font-weight: 700; }
.tph__top .tph__meter { flex: 1; margin: 0; }
.tph__phone--center .tph__sub { margin-top: 1.6em; }
.tph__prompt { margin: 0.4em 0 1.2em; font-size: 1.35em; font-weight: 700; line-height: 1.25; color: var(--tph-brand-dark); }
.tph__choices { display: grid; gap: 0.6em; }
.tph__choices span { padding: 0.85em 0.8em; border: 1px solid var(--tph-line); border-radius: 0.6em; font-size: 0.9em; font-weight: 600; }
.tph__choices .is-on { border-color: var(--tph-brand); box-shadow: 0 0 0 1px var(--tph-brand); background: var(--tph-tint); color: var(--tph-brand-dark); }
.tph__check { display: block; margin-top: 1.4em; padding: 0.85em; border-radius: 0.5em; background: var(--tph-brand); color: #fff; text-align: center; font-size: 0.85em; font-weight: 700; letter-spacing: 0.08em; }
.tph__big { display: block; font-size: 3.6em; line-height: 1; color: var(--tph-brand-dark); }
.tph__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5em; margin-top: 1.4em; }
.tph__cal b, .tph__cal i { aspect-ratio: 1; border-radius: 50%; background: var(--tph-brand); }
.tph__cal i { background: none; border: 1px solid var(--tph-line); }
.tph__cal .is-rest { background: var(--tph-line); }
.tph__cal .is-today { background: var(--tph-brand-dark); box-shadow: 0 0 0 0.2em var(--tph-tint), 0 0 0 0.3em var(--tph-brand-dark); }
@media (max-width: 640px) {
.tph__phones { max-width: 300px; aspect-ratio: 335 / 690; }
.tph__phone--left, .tph__phone--right { display: none; }
.tph__phone--center { left: 0; width: 100%; }
}
@media (max-width: 420px) {
.tph__logo { font-size: 1.5rem; }
.tph__social { gap: 0; }
.tph__social a { width: 32px; }
.tph__social a:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.tph__play, .tph__social a { transition: none; }
.tph__play:hover { transform: none; }
}
</style>




