App launch page
A dark, complete launch page for an app: live countdown, animated phone mockup, features, a quote and a sign-up call to action.
"use client";
import { useEffect, useState } from "react";
import "./launch-page.css";
type LaunchPageProps = {
/** When the countdown ends (ISO date). */
launchDate?: string;
appName?: string;
};
/** Time left until `target`, split into days / hours / minutes / seconds. */
function timeLeft(target: number, now: number) {
const s = Math.max(0, Math.floor((target - now) / 1000));
return {
days: Math.floor(s / 86400),
hours: Math.floor((s % 86400) / 3600),
minutes: Math.floor((s % 3600) / 60),
seconds: s % 60,
};
}
const FEATURES = [
{
title: "One-tap focus",
text: "Start a session from your lock screen. Halo silences everything that isn't on your list.",
},
{
title: "Gentle breaks",
text: "A soft chime tells you when to stand up, drink water or look away from the screen.",
},
{
title: "Honest stats",
text: "See when you really focus best, without streaks or guilt trips.",
},
];
/**
* LaunchPage: a full landing page for an upcoming app ("Halo").
* Sections: nav, hero with live countdown + phone mockup, features, quote, final CTA, footer.
* Change the copy in the JSX and the colors at the top of launch-page.css.
*/
export function LaunchPage({
launchDate = "2027-03-01T09:00:00Z",
appName = "Halo",
}: LaunchPageProps) {
// `now` starts empty so the server and browser render the same HTML,
// then the browser starts ticking every second.
const [now, setNow] = useState<number | null>(null);
useEffect(() => {
const tick = () => setNow(Date.now());
const first = requestAnimationFrame(tick);
const id = setInterval(tick, 1000);
return () => {
cancelAnimationFrame(first);
clearInterval(id);
};
}, []);
const left =
now === null ? null : timeLeft(new Date(launchDate).getTime(), now);
const pad = (n?: number) =>
n === undefined ? "--" : String(n).padStart(2, "0");
return (
<div className="gu-launch">
<nav className="gu-launch__nav" aria-label="Main">
<a href="#" className="gu-launch__logo">
<span className="gu-launch__logo-dot" aria-hidden="true" />
{appName}
</a>
<div className="gu-launch__links">
<a href="#launch-features">Features</a>
<a href="#launch-story">Story</a>
</div>
<a href="#launch-join" className="gu-launch__btn gu-launch__btn--small">
Get early access
</a>
</nav>
<header className="gu-launch__hero">
<div className="gu-launch__copy">
<p className="gu-launch__pill">
<span className="gu-launch__live" aria-hidden="true" /> Launching
March 2027
</p>
<h1>
Deep work,
<br />
without the noise.
</h1>
<p className="gu-launch__lede">
{appName} is a calm focus timer that blocks distractions, plans your
breaks and shows you when you do your best work.
</p>
<div
className="gu-launch__count"
role="timer"
aria-label="Time until launch"
>
{(["days", "hours", "minutes", "seconds"] as const).map((unit) => (
<div key={unit} className="gu-launch__unit">
<span className="gu-launch__num">{pad(left?.[unit])}</span>
<span className="gu-launch__label">{unit}</span>
</div>
))}
</div>
<div className="gu-launch__actions">
<a href="#launch-join" className="gu-launch__btn">
Join the waitlist
</a>
<a
href="#launch-features"
className="gu-launch__btn gu-launch__btn--ghost"
>
See what's inside
</a>
</div>
</div>
{/* Phone mockup drawn with CSS: a focus ring that fills up. */}
<div className="gu-launch__phone-wrap" aria-hidden="true">
<div className="gu-launch__glow" />
<div className="gu-launch__phone">
<div className="gu-launch__notch" />
<p className="gu-launch__phone-title">Focus session</p>
<div className="gu-launch__ring">
<svg viewBox="0 0 120 120">
<circle
cx="60"
cy="60"
r="52"
className="gu-launch__ring-track"
/>
<circle
cx="60"
cy="60"
r="52"
className="gu-launch__ring-fill"
/>
</svg>
<span className="gu-launch__ring-time">25:00</span>
</div>
<div className="gu-launch__chips">
<span>Write chapter 3</span>
<span>Silence: on</span>
</div>
</div>
</div>
</header>
<section
id="launch-features"
className="gu-launch__features"
aria-label="Features"
>
{FEATURES.map((f) => (
<article key={f.title}>
<span className="gu-launch__mark" aria-hidden="true" />
<h2>{f.title}</h2>
<p>{f.text}</p>
</article>
))}
</section>
<figure id="launch-story" className="gu-launch__quote">
<blockquote>
“I wrote more in two weeks with {appName} than in the whole spring. It
just gets out of the way.”
</blockquote>
<figcaption>Noor Haddad, novelist and beta tester</figcaption>
</figure>
<section id="launch-join" className="gu-launch__cta">
<h2>Be first in line.</h2>
<p>Early members get {appName} Plus free for a year.</p>
<a href="#" className="gu-launch__btn">
Join the waitlist
</a>
</section>
<footer className="gu-launch__footer">
<span>© {appName} Labs</span>
<span>Made for people who make things.</span>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: App launch page
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A complete, dark landing page for an upcoming app called "Halo" (a calm focus timer). Sections in order: nav, hero (headline, live countdown, two buttons, animated phone mockup), three features, a big testimonial quote, an orange call-to-action block, and a footer.
## Palette
Background #0e0e10, surface #18181b, text #f3eee3, muted #aea89c, accent #ff5a1f, highlight lime #d7ff3a, hairlines rgba(243,238,227,0.1). Text on orange/lime is #0e0e10.
## Layout
- Max content width 1160px, 20px side padding. Use container queries (container-type: inline-size on the page root) so it adapts to its container.
- Nav: logo (an orange 22px ring + "Halo", 21px weight 900) left; links "Features" and "Story" (hidden under 720px); small orange "Get early access" button right.
- Hero: two columns at ≥880px (1.15fr / 0.85fr), stacked below.
- Pill: 1px border, a pulsing 8px lime dot and "Launching March 2027".
- H1: "Deep work, / without the noise." weight 900, clamp(2.6rem, 8.5cqi, 5.6rem), line-height 0.92, letter-spacing -0.055em.
- Lede: muted, 17.6px, max 46ch.
- Countdown: four tiles (days, hours, minutes, seconds), each min 72px wide, 16px radius, surface background, big tabular numbers and a tiny muted unit label.
- Buttons: orange pill "Join the waitlist" (48px tall, lifts 2px with an orange glow on hover) and a ghost pill with a 2px inset outline.
- Phone mockup (all CSS): 230×460px, 8px #26262b border, 44px radius, dark gradient screen, black notch, "Focus session" label, a 160px SVG progress ring (r=52, stroke 9, orange, round caps) with "25:00" in the middle, and two chips (the second is lime). An orange blurred radial glow breathes behind it.
- Features: three columns at ≥760px separated by 1px hairlines; each starts with a short orange bar (28×4px), a 24px title and muted text.
- Quote: centered, max 900px, 96px vertical padding, weight 800 clamp(1.6rem, 4.4cqi, 2.8rem), muted caption.
- CTA: orange block with 32px radius, giant "Be first in line." (weight 900, up to 6rem), a dark button with cream text.
- Footer: muted small text, space-between.
## Motion
- Countdown ticks every second. Render "--" on the server and start ticking in the browser to avoid hydration mismatch.
- Phone floats up 14px with -1.5deg rotation on a 7s loop. Glow breathes (scale 1.12, opacity 0.75) on a 6s loop.
- Progress ring: stroke-dasharray 327, dashoffset animates 327 → 0 over 8s (cubic-bezier(0.65,0,0.35,1)), looping.
- Live dot: expanding box-shadow ring every 1.8s.
## Accessibility
- Landmarks: nav with aria-label, header, sections, figure/blockquote/figcaption, footer. Countdown container has role="timer" and aria-label "Time until launch". Phone mockup is aria-hidden.
- Focus: 2px lime outline. All buttons at least 44–48px tall.
- prefers-reduced-motion: countdown still updates but no float, glow, pulse or ring animation (ring rests partly filled).
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### LaunchPage.tsx
```tsx
"use client";
import { useEffect, useState } from "react";
import "./launch-page.css";
type LaunchPageProps = {
/** When the countdown ends (ISO date). */
launchDate?: string;
appName?: string;
};
/** Time left until `target`, split into days / hours / minutes / seconds. */
function timeLeft(target: number, now: number) {
const s = Math.max(0, Math.floor((target - now) / 1000));
return {
days: Math.floor(s / 86400),
hours: Math.floor((s % 86400) / 3600),
minutes: Math.floor((s % 3600) / 60),
seconds: s % 60,
};
}
const FEATURES = [
{
title: "One-tap focus",
text: "Start a session from your lock screen. Halo silences everything that isn't on your list.",
},
{
title: "Gentle breaks",
text: "A soft chime tells you when to stand up, drink water or look away from the screen.",
},
{
title: "Honest stats",
text: "See when you really focus best, without streaks or guilt trips.",
},
];
/**
* LaunchPage: a full landing page for an upcoming app ("Halo").
* Sections: nav, hero with live countdown + phone mockup, features, quote, final CTA, footer.
* Change the copy in the JSX and the colors at the top of launch-page.css.
*/
export function LaunchPage({
launchDate = "2027-03-01T09:00:00Z",
appName = "Halo",
}: LaunchPageProps) {
// `now` starts empty so the server and browser render the same HTML,
// then the browser starts ticking every second.
const [now, setNow] = useState<number | null>(null);
useEffect(() => {
const tick = () => setNow(Date.now());
const first = requestAnimationFrame(tick);
const id = setInterval(tick, 1000);
return () => {
cancelAnimationFrame(first);
clearInterval(id);
};
}, []);
const left =
now === null ? null : timeLeft(new Date(launchDate).getTime(), now);
const pad = (n?: number) =>
n === undefined ? "--" : String(n).padStart(2, "0");
return (
<div className="gu-launch">
<nav className="gu-launch__nav" aria-label="Main">
<a href="#" className="gu-launch__logo">
<span className="gu-launch__logo-dot" aria-hidden="true" />
{appName}
</a>
<div className="gu-launch__links">
<a href="#launch-features">Features</a>
<a href="#launch-story">Story</a>
</div>
<a href="#launch-join" className="gu-launch__btn gu-launch__btn--small">
Get early access
</a>
</nav>
<header className="gu-launch__hero">
<div className="gu-launch__copy">
<p className="gu-launch__pill">
<span className="gu-launch__live" aria-hidden="true" /> Launching
March 2027
</p>
<h1>
Deep work,
<br />
without the noise.
</h1>
<p className="gu-launch__lede">
{appName} is a calm focus timer that blocks distractions, plans your
breaks and shows you when you do your best work.
</p>
<div
className="gu-launch__count"
role="timer"
aria-label="Time until launch"
>
{(["days", "hours", "minutes", "seconds"] as const).map((unit) => (
<div key={unit} className="gu-launch__unit">
<span className="gu-launch__num">{pad(left?.[unit])}</span>
<span className="gu-launch__label">{unit}</span>
</div>
))}
</div>
<div className="gu-launch__actions">
<a href="#launch-join" className="gu-launch__btn">
Join the waitlist
</a>
<a
href="#launch-features"
className="gu-launch__btn gu-launch__btn--ghost"
>
See what's inside
</a>
</div>
</div>
{/* Phone mockup drawn with CSS: a focus ring that fills up. */}
<div className="gu-launch__phone-wrap" aria-hidden="true">
<div className="gu-launch__glow" />
<div className="gu-launch__phone">
<div className="gu-launch__notch" />
<p className="gu-launch__phone-title">Focus session</p>
<div className="gu-launch__ring">
<svg viewBox="0 0 120 120">
<circle
cx="60"
cy="60"
r="52"
className="gu-launch__ring-track"
/>
<circle
cx="60"
cy="60"
r="52"
className="gu-launch__ring-fill"
/>
</svg>
<span className="gu-launch__ring-time">25:00</span>
</div>
<div className="gu-launch__chips">
<span>Write chapter 3</span>
<span>Silence: on</span>
</div>
</div>
</div>
</header>
<section
id="launch-features"
className="gu-launch__features"
aria-label="Features"
>
{FEATURES.map((f) => (
<article key={f.title}>
<span className="gu-launch__mark" aria-hidden="true" />
<h2>{f.title}</h2>
<p>{f.text}</p>
</article>
))}
</section>
<figure id="launch-story" className="gu-launch__quote">
<blockquote>
“I wrote more in two weeks with {appName} than in the whole spring. It
just gets out of the way.”
</blockquote>
<figcaption>Noor Haddad, novelist and beta tester</figcaption>
</figure>
<section id="launch-join" className="gu-launch__cta">
<h2>Be first in line.</h2>
<p>Early members get {appName} Plus free for a year.</p>
<a href="#" className="gu-launch__btn">
Join the waitlist
</a>
</section>
<footer className="gu-launch__footer">
<span>© {appName} Labs</span>
<span>Made for people who make things.</span>
</footer>
</div>
);
}
```
### launch-page.css
```css
/* LaunchPage: change these five colors to rebrand the whole page. */
.gu-launch {
--bg: #0e0e10;
--surface: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--accent: #ff5a1f;
--volt: #d7ff3a;
--line: rgb(243 238 227 / 0.1);
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-launch a {
color: inherit;
text-decoration: none;
}
.gu-launch a:focus-visible {
outline: 2px solid var(--volt);
outline-offset: 3px;
border-radius: 8px;
}
/* Nav */
.gu-launch__nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
max-width: 1160px;
margin: 0 auto;
padding: 20px;
}
.gu-launch__logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.3rem;
font-weight: 900;
letter-spacing: -0.04em;
}
.gu-launch__logo-dot {
width: 22px;
height: 22px;
border-radius: 50%;
border: 5px solid var(--accent);
}
.gu-launch__links {
display: none;
gap: 28px;
color: var(--muted);
font-weight: 600;
}
.gu-launch__links a:hover {
color: var(--text);
}
@container (min-width: 720px) {
.gu-launch__links {
display: flex;
}
}
/* Buttons */
.gu-launch__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 0 24px;
border-radius: 999px;
background: var(--accent);
color: #0e0e10 !important;
font-weight: 800;
transition:
transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.3s;
}
.gu-launch__btn:hover {
transform: translateY(-2px);
box-shadow: 0 14px 30px -12px rgb(255 90 31 / 0.7);
}
.gu-launch__btn--small {
min-height: 44px;
padding: 0 18px;
font-size: 0.9rem;
}
.gu-launch__btn--ghost {
background: transparent;
color: var(--text) !important;
box-shadow: inset 0 0 0 2px var(--line);
}
.gu-launch__btn--ghost:hover {
box-shadow: inset 0 0 0 2px var(--text);
}
/* Hero */
.gu-launch__hero {
display: grid;
gap: 48px;
max-width: 1160px;
margin: 0 auto;
padding: 48px 20px 72px;
}
@container (min-width: 880px) {
.gu-launch__hero {
grid-template-columns: 1.15fr 0.85fr;
align-items: center;
padding-top: 72px;
}
}
.gu-launch__pill {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 24px;
padding: 6px 14px 6px 10px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
font-size: 0.85rem;
font-weight: 600;
}
.gu-launch__live {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--volt);
box-shadow: 0 0 0 0 rgb(215 255 58 / 0.7);
animation: gu-launch-live 1.8s infinite;
}
@keyframes gu-launch-live {
to {
box-shadow: 0 0 0 10px rgb(215 255 58 / 0);
}
}
.gu-launch__hero h1 {
margin: 0;
font-size: clamp(2.6rem, 8.5cqi, 5.6rem);
font-weight: 900;
line-height: 0.92;
letter-spacing: -0.055em;
}
.gu-launch__lede {
max-width: 46ch;
margin: 24px 0 32px;
color: var(--muted);
font-size: 1.1rem;
line-height: 1.55;
}
/* Countdown */
.gu-launch__count {
display: flex;
gap: 10px;
margin-bottom: 32px;
}
.gu-launch__unit {
display: grid;
justify-items: center;
min-width: 72px;
padding: 12px 8px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--surface);
}
.gu-launch__num {
font-size: 1.9rem;
font-weight: 900;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
.gu-launch__label {
color: var(--muted);
font-size: 0.72rem;
font-weight: 600;
}
.gu-launch__actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
/* Phone mockup */
.gu-launch__phone-wrap {
position: relative;
display: grid;
place-items: center;
min-height: 460px;
}
.gu-launch__glow {
position: absolute;
width: 70%;
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(circle, rgb(255 90 31 / 0.45), transparent 65%);
filter: blur(20px);
animation: gu-launch-breathe 6s ease-in-out infinite;
}
.gu-launch__phone {
position: relative;
width: 230px;
height: 460px;
padding: 44px 20px 20px;
border: 8px solid #26262b;
border-radius: 44px;
background: linear-gradient(180deg, #1b1b1f, #121214);
box-shadow:
0 50px 80px -40px rgb(0 0 0 / 0.9),
inset 0 0 0 1px rgb(255 255 255 / 0.06);
animation: gu-launch-float 7s ease-in-out infinite;
}
.gu-launch__notch {
position: absolute;
top: 12px;
left: 50%;
width: 80px;
height: 22px;
margin-left: -40px;
border-radius: 99px;
background: #000;
}
.gu-launch__phone-title {
margin: 0 0 28px;
color: var(--muted);
font-size: 0.85rem;
font-weight: 600;
text-align: center;
}
.gu-launch__ring {
position: relative;
width: 160px;
margin: 0 auto;
}
.gu-launch__ring svg {
display: block;
transform: rotate(-90deg);
}
.gu-launch__ring circle {
fill: none;
stroke-width: 9;
}
.gu-launch__ring-track {
stroke: rgb(243 238 227 / 0.08);
}
.gu-launch__ring-fill {
stroke: var(--accent);
stroke-linecap: round;
stroke-dasharray: 327;
stroke-dashoffset: 327;
animation: gu-launch-ring 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.gu-launch__ring-time {
position: absolute;
inset: 0;
display: grid;
place-items: center;
font-size: 2rem;
font-weight: 900;
letter-spacing: -0.04em;
}
.gu-launch__chips {
display: grid;
gap: 8px;
margin-top: 32px;
}
.gu-launch__chips span {
padding: 10px 12px;
border-radius: 12px;
background: rgb(243 238 227 / 0.06);
font-size: 0.8rem;
font-weight: 600;
}
.gu-launch__chips span:last-child {
background: var(--volt);
color: #0e0e10;
}
@keyframes gu-launch-ring {
0% {
stroke-dashoffset: 327;
}
70%,
100% {
stroke-dashoffset: 0;
}
}
@keyframes gu-launch-float {
50% {
transform: translateY(-14px) rotate(-1.5deg);
}
}
@keyframes gu-launch-breathe {
50% {
transform: scale(1.12);
opacity: 0.75;
}
}
/* Features */
.gu-launch__features {
display: grid;
gap: 1px;
max-width: 1160px;
margin: 0 auto;
border-block: 1px solid var(--line);
background: var(--line);
}
@container (min-width: 760px) {
.gu-launch__features {
grid-template-columns: repeat(3, 1fr);
}
}
.gu-launch__features article {
padding: 36px 24px;
background: var(--bg);
}
.gu-launch__mark {
display: block;
width: 28px;
height: 4px;
border-radius: 2px;
background: var(--accent);
}
.gu-launch__features h2 {
margin: 28px 0 8px;
font-size: 1.5rem;
letter-spacing: -0.03em;
}
.gu-launch__features p {
margin: 0;
color: var(--muted);
line-height: 1.55;
}
/* Quote */
.gu-launch__quote {
max-width: 900px;
margin: 0 auto;
padding: 96px 20px;
}
.gu-launch__quote blockquote {
margin: 0;
font-size: clamp(1.6rem, 4.4cqi, 2.8rem);
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.035em;
}
.gu-launch__quote figcaption {
margin-top: 20px;
color: var(--muted);
}
/* Final CTA */
.gu-launch__cta {
margin: 0 20px;
padding: 64px 24px;
border-radius: 32px;
background: var(--accent);
color: #0e0e10;
text-align: center;
}
.gu-launch__cta h2 {
margin: 0;
font-size: clamp(2.4rem, 9cqi, 6rem);
font-weight: 900;
line-height: 0.9;
letter-spacing: -0.055em;
}
.gu-launch__cta p {
margin: 16px 0 28px;
font-weight: 600;
}
.gu-launch__cta .gu-launch__btn {
background: #0e0e10;
color: #f3eee3 !important;
}
.gu-launch__footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
max-width: 1160px;
margin: 0 auto;
padding: 32px 20px;
color: var(--muted);
font-size: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
.gu-launch__phone,
.gu-launch__glow,
.gu-launch__live {
animation: none;
}
.gu-launch__ring-fill {
animation: none;
stroke-dashoffset: 90;
}
.gu-launch__btn:hover {
transform: none;
}
}
```
You might also want
Next piece: Design studio pageMusic festival page with a timetable planner
Landing pages, advanced
Agency page with stacking cases
Landing pages, intermediate
Boutique hotel page with a sun-path day
Landing pages, advanced