mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 13:58:20 +00:00
Improve all 169 component demo previews for catalog legibility and polish: - replace jagged clip-path cursor with a crisp SVG pointer (context-menu, cursor, simulated-cursor) - scale under-sized UI primitives to fill the frame; enrich sparse demos with context (sibling rows, skeleton content, profile cards) - normalize toward a neutral zinc/stone palette, bump small type, tidy spacing/radius/shadows - preserve GSAP timelines, data-* composition attrs, and determinism
203 lines
5.9 KiB
HTML
Vendored
203 lines
5.9 KiB
HTML
Vendored
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=1920, height=1080" />
|
|
<title>Browser Flow - Demo</title>
|
|
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
width: 1920px;
|
|
height: 1080px;
|
|
overflow: hidden;
|
|
}
|
|
#demo {
|
|
width: 1920px;
|
|
height: 1080px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #f4f4f5;
|
|
font-family: Inter, system-ui, sans-serif;
|
|
}
|
|
.demo-frame {
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 52px;
|
|
/* ponytail: scale wrapper — GSAP targets .pill and .card, not this element */
|
|
transform: scale(0.93);
|
|
}
|
|
.hf-remocn-browser-flow {
|
|
--hf-accent: #2563eb;
|
|
--hf-ink: #111827;
|
|
--hf-muted: #6b7280;
|
|
--hf-surface: #ffffff;
|
|
color: var(--hf-ink);
|
|
font-family: Inter, system-ui, sans-serif;
|
|
}
|
|
.hf-remocn-browser-flow {
|
|
width: 820px;
|
|
min-height: 460px;
|
|
border-radius: 34px;
|
|
padding: 28px;
|
|
background: linear-gradient(135deg, #f8fafc, #e0f2fe);
|
|
box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
gap: 22px;
|
|
overflow: hidden;
|
|
}
|
|
.hf-remocn-browser-flow .panel {
|
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
border-radius: 24px;
|
|
background: rgba(255, 255, 255, 0.76);
|
|
padding: 22px;
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
.hf-remocn-browser-flow .prompt {
|
|
display: grid;
|
|
gap: 12px;
|
|
align-content: start;
|
|
}
|
|
.hf-remocn-browser-flow .pill {
|
|
height: 42px;
|
|
border-radius: 999px;
|
|
background: #111827;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 18px;
|
|
font-weight: 800;
|
|
transform: translateX(var(--hf-pill-x, 0px));
|
|
}
|
|
.hf-remocn-browser-flow .preview {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
.hf-remocn-browser-flow .card {
|
|
min-height: 78px;
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
|
|
transform: translate(var(--hf-card-x, 0px), var(--hf-card-y, 0px))
|
|
scale(var(--hf-card-scale, 1));
|
|
opacity: var(--hf-card-opacity, 1);
|
|
}
|
|
.hf-remocn-browser-flow h3 {
|
|
margin: 0 0 14px;
|
|
font-size: 32px;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
.hf-remocn-browser-flow p {
|
|
margin: 0;
|
|
color: #475569;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
/* skeleton lines inside preview cards */
|
|
.hf-remocn-browser-flow .card-inner {
|
|
padding: 18px 20px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
.hf-remocn-browser-flow .sk {
|
|
border-radius: 6px;
|
|
background: #e4e4e7;
|
|
}
|
|
.hf-remocn-browser-flow .sk-title {
|
|
height: 14px;
|
|
width: 62%;
|
|
background: #d4d4d8;
|
|
}
|
|
.hf-remocn-browser-flow .sk-line {
|
|
height: 10px;
|
|
}
|
|
.hf-remocn-browser-flow .sk-line:nth-child(2) { width: 90%; }
|
|
.hf-remocn-browser-flow .sk-line:nth-child(3) { width: 75%; }
|
|
.hf-remocn-browser-flow .sk-tag {
|
|
height: 22px;
|
|
width: 72px;
|
|
border-radius: 999px;
|
|
background: #dbeafe;
|
|
margin-top: 2px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div
|
|
id="demo"
|
|
data-composition-id="browser-flow-demo"
|
|
data-start="0"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
data-duration="5"
|
|
>
|
|
<div class="demo-frame">
|
|
<div class="hf-remocn-browser-flow">
|
|
<div class="panel prompt">
|
|
<h3>Browser Flow</h3>
|
|
<p>A browser frame walks through a three-step product flow.</p>
|
|
<div class="pill">Generate scene</div>
|
|
<div class="pill">Refine motion</div>
|
|
<div class="pill">Export</div>
|
|
</div>
|
|
<div class="panel preview">
|
|
<div class="card">
|
|
<div class="card-inner">
|
|
<div class="sk sk-title"></div>
|
|
<div class="sk sk-line"></div>
|
|
<div class="sk sk-line"></div>
|
|
<div class="sk sk-tag"></div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-inner">
|
|
<div class="sk sk-title"></div>
|
|
<div class="sk sk-line"></div>
|
|
<div class="sk sk-line"></div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-inner">
|
|
<div class="sk sk-title"></div>
|
|
<div class="sk sk-line"></div>
|
|
<div class="sk sk-tag"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const tl = gsap.timeline({ paused: true });
|
|
const startTime = 0.5;
|
|
tl.fromTo(
|
|
".hf-remocn-browser-flow .pill",
|
|
{ "--hf-pill-x": "-18px", opacity: 0 },
|
|
{ "--hf-pill-x": "0px", opacity: 1, duration: 0.25, stagger: 0.08, ease: "power2.out" },
|
|
startTime,
|
|
);
|
|
tl.fromTo(
|
|
".hf-remocn-browser-flow .card",
|
|
{ "--hf-card-y": "28px", "--hf-card-scale": 0.96, "--hf-card-opacity": 0 },
|
|
{
|
|
"--hf-card-y": "0px",
|
|
"--hf-card-scale": 1,
|
|
"--hf-card-opacity": 1,
|
|
duration: 0.42,
|
|
stagger: 0.12,
|
|
ease: "power3.out",
|
|
},
|
|
startTime + 0.2,
|
|
);
|
|
tl.set({}, {}, 5);
|
|
window.__timelines = window.__timelines || {};
|
|
window.__timelines["browser-flow-demo"] = tl;
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|