Dating — Hero Landing
A playful dating-app marketing hero with a bold gradient headline, a tilting 430px phone-frame mockup that swipes through animated profile cards, dual app-store download buttons, a three-tile feature strip covering smart matching, real-time chat and safety verification, plus a live counter of members, matches and messages. Rounded surfaces, coral-to-violet gradients and springy micro-interactions give it a warm, mobile-first feel that converts curious visitors into signups.
MCP
Code
:root {
--bg: #fff5f6;
--surface: #ffffff;
--ink: #2a1a2e;
--ink-2: #5a4a55;
--muted: #8a7a85;
--coral: #ff5e6c;
--coral-d: #e63950;
--violet: #8b5cf6;
--violet-d: #7c3aed;
--pink: #ff8fb1;
--grad: linear-gradient(135deg, #ff5e6c, #8b5cf6);
--line: rgba(42, 26, 46, 0.10);
--white: #fff;
--r-sm: 12px;
--r-md: 20px;
--r-lg: 28px;
--shadow: 0 24px 60px -20px rgba(230, 57, 80, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.5;
color: var(--ink);
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-osmoothing: grayscale;
overflow-x: hidden;
position: relative;
}
.blob {
position: fixed;
border-radius: 50%;
filter: blur(70px);
opacity: 0.5;
z-index: 0;
pointer-events: none;
}
.blob-1 { width: 460px; height: 460px; background: var(--pink); top: -120px; right: -80px; }
.blob-2 { width: 400px; height: 400px; background: #c9b6ff; bottom: -140px; left: -120px; }
/* ---------- Nav ---------- */
.nav {
position: relative;
z-index: 3;
max-width: 1180px;
margin: 0 auto;
padding: 22px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: var(--ink);
font-weight: 800;
}
.brand-mark {
display: grid;
place-items: center;
width: 40px;
height: 40px;
background: var(--grad);
border-radius: var(--r-sm);
font-size: 20px;
box-shadow: var(--shadow);
}
.brand-name { font-family: "Poppins", sans-serif; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
text-decoration: none;
color: var(--ink-2);
font-weight: 600;
font-size: 0.95rem;
transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral-d); }
.nav-cta {
padding: 10px 20px;
background: var(--grad);
color: var(--white) !important;
border-radius: 999px;
box-shadow: var(--shadow);
transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); }
a:focus-visible, button:focus-visible {
outline: 3px solid var(--violet);
outline-offset: 3px;
}
/* ---------- Hero ---------- */
.hero {
position: relative;
z-index: 2;
max-width: 1180px;
margin: 0 auto;
padding: 40px 24px 60px;
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 40px;
align-items: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 8px 16px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
color: var(--ink-2);
box-shadow: 0 6px 18px -10px rgba(42, 26, 46, 0.25);
}
.eyebrow .dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--coral);
box-shadow: 0 0 0 4px rgba(255, 94, 108, 0.18);
animation: pulse 1.8s infinite;
}
@keyframes pulse {
0%, 100% { box-shadow: 0 0 0 4px rgba(255, 94, 108, 0.18); }
50% { box-shadow: 0 0 0 8px rgba(255, 94, 108, 0.05); }
}
.headline {
font-family: "Poppins", sans-serif;
font-size: clamp(2.5rem, 6vw, 4rem);
line-height: 1.05;
letter-spacing: -0.03em;
margin: 20px 0 16px;
font-weight: 800;
}
.grad-text {
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.subhead {
font-size: 1.12rem;
color: var(--ink-2);
max-width: 460px;
margin: 0 0 30px;
}
/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.store-btn {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 12px 22px 12px 18px;
border: none;
cursor: pointer;
border-radius: 999px;
color: var(--white);
background: var(--ink);
font-family: inherit;
transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
box-shadow: 0 12px 26px -14px rgba(42, 26, 46, 0.7);
}
.store-btn:first-child { background: var(--grad); box-shadow: var(--shadow); }
.store-btn:hover { transform: translateY(-3px); filter: brightness(1.04); }
.store-btn:active { transform: translateY(-1px) scale(0.98); }
.store-ico { font-size: 1.5rem; line-height: 1; }
.store-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-txt small { font-size: 0.68rem; opacity: 0.85; font-weight: 500; }
.store-txt strong { font-size: 1.02rem; font-weight: 700; }
/* ---------- Stats ---------- */
.stats {
display: flex;
gap: 30px;
margin: 0;
flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
font-family: "Poppins", sans-serif;
font-size: clamp(1.6rem, 3.4vw, 2.1rem);
font-weight: 800;
color: var(--ink);
letter-spacing: -0.02em;
}
.stat-label {
margin: 2px 0 0;
font-size: 0.85rem;
color: var(--muted);
font-weight: 500;
}
/* ---------- Phone frame ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
position: relative;
width: 100%;
max-width: 340px;
aspect-ratio: 340 / 700;
background: #17111c;
border-radius: 46px;
padding: 14px;
box-shadow: var(--shadow), 0 40px 80px -30px rgba(124, 58, 237, 0.5);
transform: rotate(-3deg);
transition: transform 0.4s ease;
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone-notch {
position: absolute;
top: 14px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 26px;
background: #17111c;
border-radius: 0 0 16px 16px;
z-index: 4;
}
.phone-screen {
position: relative;
height: 100%;
background: linear-gradient(180deg, #fff 0%, #fff5f6 100%);
border-radius: 34px;
overflow: hidden;
display: flex;
flex-direction: column;
padding: 44px 16px 18px;
}
.app-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 4px 12px;
}
.app-title {
font-family: "Poppins", sans-serif;
font-weight: 700;
font-size: 1.15rem;
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.app-icon {
display: grid;
place-items: center;
width: 34px;
height: 34px;
border-radius: 12px;
background: rgba(255, 94, 108, 0.12);
font-size: 1rem;
}
/* ---------- Card stack ---------- */
.card-stack {
position: relative;
flex: 1;
margin-bottom: 14px;
}
.profile-card {
position: absolute;
inset: 0;
border-radius: var(--r-md);
overflow: hidden;
box-shadow: 0 18px 40px -16px rgba(42, 26, 46, 0.45);
transform-origin: bottom center;
transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
color: var(--white);
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.profile-card::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 25, 0.85) 100%);
}
.profile-card .card-body {
position: relative;
z-index: 2;
padding: 16px;
}
.profile-card.leaving-like {
transform: translateX(140%) rotate(18deg);
opacity: 0;
}
.profile-card.leaving-pass {
transform: translateX(-140%) rotate(-18deg);
opacity: 0;
}
.profile-card.leaving-star {
transform: translateY(-140%) scale(0.9);
opacity: 0;
}
.card-name {
font-family: "Poppins", sans-serif;
font-size: 1.35rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
}
.card-name .verify {
font-size: 0.85rem;
background: var(--violet);
border-radius: 999px;
width: 20px;
height: 20px;
display: grid;
place-items: center;
}
.card-meta { font-size: 0.9rem; opacity: 0.92; margin-top: 2px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-tag {
font-size: 0.72rem;
font-weight: 600;
padding: 5px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.22);
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.28);
}
.match-badge {
position: absolute;
top: 14px;
left: 14px;
z-index: 3;
font-size: 0.72rem;
font-weight: 700;
padding: 6px 12px;
border-radius: 999px;
background: var(--grad);
box-shadow: 0 6px 16px -6px rgba(230, 57, 80, 0.7);
}
/* ---------- Swipe actions ---------- */
.swipe-actions {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding-bottom: 4px;
}
.swipe-btn {
border: none;
cursor: pointer;
border-radius: 50%;
background: var(--white);
display: grid;
place-items: center;
box-shadow: 0 8px 20px -8px rgba(42, 26, 46, 0.4);
transition: transform 0.18s, box-shadow 0.18s;
font-weight: 700;
}
.swipe-btn:hover { transform: translateY(-3px) scale(1.06); }
.swipe-btn:active { transform: scale(0.92); }
.swipe-btn.pass { width: 52px; height: 52px; color: var(--muted); font-size: 1.2rem; }
.swipe-btn.star { width: 44px; height: 44px; color: var(--violet); font-size: 1.1rem; }
.swipe-btn.like {
width: 60px;
height: 60px;
color: var(--white);
font-size: 1.5rem;
background: var(--grad);
box-shadow: var(--shadow);
}
/* ---------- Features ---------- */
.features {
position: relative;
z-index: 2;
max-width: 1180px;
margin: 0 auto;
padding: 20px 24px 80px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}
.feature {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: 28px 26px;
transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover {
transform: translateY(-6px);
box-shadow: 0 22px 44px -22px rgba(139, 92, 246, 0.4);
border-color: rgba(139, 92, 246, 0.3);
}
.feature-ico {
width: 56px;
height: 56px;
border-radius: 16px;
display: grid;
place-items: center;
font-size: 1.6rem;
margin-bottom: 16px;
}
.ico-match { background: rgba(255, 94, 108, 0.14); }
.ico-chat { background: rgba(139, 92, 246, 0.14); }
.ico-safe { background: rgba(255, 143, 177, 0.2); }
.feature h3 {
font-family: "Poppins", sans-serif;
margin: 0 0 8px;
font-size: 1.2rem;
letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
/* ---------- Toast ---------- */
.toast {
position: fixed;
bottom: 26px;
left: 50%;
transform: translate(-50%, 140%);
z-index: 20;
padding: 13px 22px;
background: var(--ink);
color: var(--white);
border-radius: 999px;
font-weight: 600;
font-size: 0.92rem;
box-shadow: 0 16px 40px -12px rgba(42, 26, 46, 0.6);
opacity: 0;
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
pointer-events: none;
max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
.hero { grid-template-columns: 1fr; gap: 46px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.subhead { margin-inline: auto; }
.store-buttons, .stats { justify-content: center; }
.features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
.nav-links a:not(.nav-cta) { display: none; }
.nav { padding: 18px 18px; }
.hero { padding: 24px 18px 40px; }
.headline { font-size: clamp(2.1rem, 10vw, 2.7rem); }
.subhead { font-size: 1rem; }
.store-buttons { width: 100%; }
.store-btn { flex: 1; justify-content: center; }
.stats { gap: 20px; }
.stat { flex: 1; min-width: 90px; align-items: center; }
.phone { max-width: 300px; transform: rotate(0deg); }
.features { padding: 12px 18px 60px; }
.blob-1 { width: 300px; height: 300px; }
.blob-2 { width: 280px; height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition-duration: 0.01ms !important; }
}(function () {
"use strict";
/* ---------- Toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 2400);
}
/* ---------- Profile data (fictional) ---------- */
var profiles = [
{
name: "Sofia",
age: 27,
city: "2 miles away · Lisbon",
grad: "linear-gradient(135deg,#ff5e6c,#8b5cf6)",
match: "94% match",
tags: ["Ceramics", "Trail runs", "Jazz vinyl"],
verified: true
},
{
name: "Marcus",
age: 30,
city: "5 miles away · Berlin",
grad: "linear-gradient(135deg,#8b5cf6,#22d3ee)",
match: "88% match",
tags: ["Rock climbing", "Ramen", "Film photo"],
verified: true
},
{
name: "Aria",
age: 25,
city: "3 miles away · Austin",
grad: "linear-gradient(135deg,#ff8fb1,#ff5e6c)",
match: "91% match",
tags: ["Painting", "Cold brew", "Corgis"],
verified: false
},
{
name: "Leo",
age: 29,
city: "1 mile away · Madrid",
grad: "linear-gradient(135deg,#fbbf24,#ff5e6c)",
match: "85% match",
tags: ["Surfing", "Vinyl", "Tacos"],
verified: true
},
{
name: "Noor",
age: 26,
city: "4 miles away · Amsterdam",
grad: "linear-gradient(135deg,#34d399,#8b5cf6)",
match: "97% match",
tags: ["Cycling", "Bookshops", "Matcha"],
verified: true
}
];
var stack = document.getElementById("cardStack");
var idx = 0;
var busy = false;
function buildCard(p) {
var card = document.createElement("article");
card.className = "profile-card";
card.style.background = p.grad;
var badge = document.createElement("span");
badge.className = "match-badge";
badge.textContent = p.match;
card.appendChild(badge);
var body = document.createElement("div");
body.className = "card-body";
var name = document.createElement("div");
name.className = "card-name";
name.appendChild(document.createTextNode(p.name + ", " + p.age));
if (p.verified) {
var v = document.createElement("span");
v.className = "verify";
v.textContent = "✓";
v.setAttribute("aria-label", "verified");
name.appendChild(v);
}
body.appendChild(name);
var meta = document.createElement("div");
meta.className = "card-meta";
meta.textContent = p.city;
body.appendChild(meta);
var tags = document.createElement("div");
tags.className = "card-tags";
p.tags.forEach(function (t) {
var s = document.createElement("span");
s.className = "card-tag";
s.textContent = t;
tags.appendChild(s);
});
body.appendChild(tags);
card.appendChild(body);
return card;
}
// Render two stacked cards for depth
function renderStack() {
stack.innerHTML = "";
var current = profiles[idx % profiles.length];
var next = profiles[(idx + 1) % profiles.length];
var back = buildCard(next);
back.style.transform = "scale(0.94) translateY(10px)";
back.style.opacity = "0.85";
stack.appendChild(back);
var front = buildCard(current);
stack.appendChild(front);
return front;
}
var topCard = renderStack();
function swipe(dir, label) {
if (busy || !topCard) return;
busy = true;
var name = profiles[idx % profiles.length].name;
topCard.classList.add("leaving-" + dir);
toast(label + " " + name);
setTimeout(function () {
idx = (idx + 1) % profiles.length;
topCard = renderStack();
busy = false;
}, 460);
}
var likeBtn = document.getElementById("likeBtn");
var passBtn = document.getElementById("passBtn");
var starBtn = document.getElementById("starBtn");
if (likeBtn) likeBtn.addEventListener("click", function () { swipe("like", "Liked"); });
if (passBtn) passBtn.addEventListener("click", function () { swipe("pass", "Passed on"); });
if (starBtn) starBtn.addEventListener("click", function () { swipe("star", "Super liked"); });
// Auto-advance the stack gently
var auto = setInterval(function () {
if (!busy) swipe("like", "Someone liked");
}, 5200);
stack.addEventListener("mouseenter", function () { clearInterval(auto); });
/* ---------- Store buttons ---------- */
document.querySelectorAll(".store-btn").forEach(function (btn) {
btn.addEventListener("click", function () {
toast("Opening " + btn.getAttribute("data-store") + "… 💘");
});
});
/* ---------- Animated stat counters ---------- */
function formatNum(n) {
if (n >= 1000000) return (n / 1000000).toFixed(1).replace(/\.0$/, "") + "M";
if (n >= 1000) return Math.round(n / 1000) + "K";
return String(n);
}
function countUp(el) {
var target = parseInt(el.getAttribute("data-target"), 10);
var suffix = el.getAttribute("data-suffix") || "";
var isPercent = suffix === "%";
var start = null;
var dur = 1600;
function step(ts) {
if (start === null) start = ts;
var prog = Math.min((ts - start) / dur, 1);
var eased = 1 - Math.pow(1 - prog, 3);
var val = Math.round(target * eased);
el.textContent = (isPercent ? val : formatNum(val)) + suffix;
if (prog < 1) requestAnimationFrame(step);
}
requestAnimationFrame(step);
}
var counted = false;
var statsSection = document.getElementById("stats");
if ("IntersectionObserver" in window && statsSection) {
var io = new IntersectionObserver(function (entries) {
entries.forEach(function (e) {
if (e.isIntersecting && !counted) {
counted = true;
document.querySelectorAll(".stat-num").forEach(countUp);
io.disconnect();
}
});
}, { threshold: 0.4 });
io.observe(statsSection);
} else {
document.querySelectorAll(".stat-num").forEach(countUp);
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sparkly — Find your person</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="blob blob-1" aria-hidden="true"></div>
<div class="blob blob-2" aria-hidden="true"></div>
<header class="nav">
<a class="brand" href="#" aria-label="Sparkly home">
<span class="brand-mark" aria-hidden="true">💘</span>
<span class="brand-name">Sparkly</span>
</a>
<nav class="nav-links" aria-label="Primary">
<a href="#features">Features</a>
<a href="#stats">Community</a>
<a href="#" class="nav-cta">Get the app</a>
</nav>
</header>
<main class="hero" id="top">
<section class="hero-copy">
<span class="eyebrow"><span class="dot" aria-hidden="true"></span> 2.4M new sparks this month</span>
<h1 class="headline">Find your <span class="grad-text">person</span>, not just a match.</h1>
<p class="subhead">
Sparkly pairs you with people who actually get you — thoughtful matching,
real conversations, and a community that keeps things kind and safe.
</p>
<div class="store-buttons">
<button class="store-btn" data-store="App Store" type="button">
<span class="store-ico" aria-hidden="true">🍎</span>
<span class="store-txt"><small>Download on the</small><strong>App Store</strong></span>
</button>
<button class="store-btn" data-store="Google Play" type="button">
<span class="store-ico" aria-hidden="true">▶</span>
<span class="store-txt"><small>Get it on</small><strong>Google Play</strong></span>
</button>
</div>
<dl class="stats" id="stats">
<div class="stat">
<dt class="stat-num" data-target="8400000" data-suffix="+">0</dt>
<dd class="stat-label">Members</dd>
</div>
<div class="stat">
<dt class="stat-num" data-target="19000000" data-suffix="+">0</dt>
<dd class="stat-label">Matches made</dd>
</div>
<div class="stat">
<dt class="stat-num" data-target="96" data-suffix="%">0</dt>
<dd class="stat-label">Feel safe here</dd>
</div>
</dl>
</section>
<section class="hero-visual" aria-label="Sparkly app preview">
<div class="phone">
<div class="phone-notch" aria-hidden="true"></div>
<div class="phone-screen">
<div class="app-bar">
<span class="app-title">Discover</span>
<span class="app-icon" aria-hidden="true">⚡</span>
</div>
<div class="card-stack" id="cardStack" aria-live="polite">
<!-- cards injected by script.js -->
</div>
<div class="swipe-actions">
<button class="swipe-btn pass" id="passBtn" type="button" aria-label="Pass on this profile">✕</button>
<button class="swipe-btn star" id="starBtn" type="button" aria-label="Super like">★</button>
<button class="swipe-btn like" id="likeBtn" type="button" aria-label="Like this profile">♥</button>
</div>
</div>
</div>
</section>
</main>
<section class="features" id="features" aria-label="Why Sparkly">
<article class="feature">
<div class="feature-ico ico-match" aria-hidden="true">🎯</div>
<h3>Smart Match</h3>
<p>Our vibe engine learns what you love and surfaces people you'll actually click with.</p>
</article>
<article class="feature">
<div class="feature-ico ico-chat" aria-hidden="true">💬</div>
<h3>Live Chat</h3>
<p>Icebreakers, voice notes and read receipts — conversations that start effortlessly.</p>
</article>
<article class="feature">
<div class="feature-ico ico-safe" aria-hidden="true">🛡️</div>
<h3>Verified & Safe</h3>
<p>Photo verification, easy blocking and 24/7 moderation keep the community trusted.</p>
</article>
</section>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>A conversion-focused hero for a fictional dating app called Sparkly. The layout splits into a copy column — eyebrow badge, gradient display headline, subhead, dual app-store buttons and an animated stats row — and a floating 430px phone frame that mimics a real device with a notch, status bar and a stack of profile cards. The featured card cycles automatically and reacts to the on-screen like / pass buttons with a springy swipe-away animation.
Interactions are all vanilla JS. Clicking Like or Pass flings the top profile card off-screen, reveals the next fictional match (Sofia, Marcus, Aria, Leo…) and fires a friendly toast. The stats counters (members, matches made, messages sent) count up from zero when the hero scrolls into view via an IntersectionObserver, and the app-store buttons emit a toast confirming the pretend download. A feature strip below highlights Smart Match, Live Chat and Verified & Safe, each with a hover lift.
The design leans into the dating palette: a coral-to-violet gradient runs through the headline, the primary CTA and the phone frame glow, while soft pink blobs float in the background. Everything is responsive down to ~360px — the two columns stack, the phone frame scales, and the stats wrap into a clean grid.