Files
hyperframes/registry/components/progress-steps/demo.html
T
Miguel Angel Simon Sierra e9172e3331 feat(registry): polish demo previews to shadcn-grade across catalog
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
2026-06-25 00:57:26 -04:00

120 lines
3.3 KiB
HTML
Vendored

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Progress Steps - 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: #f7f7f8;
font-family: Inter, system-ui, sans-serif;
}
.demo-frame {
display: grid;
place-items: center;
padding: 52px;
/* ponytail: CSS scale on the non-GSAP wrapper — GSAP targets .row children, not this element */
transform: scale(2.8);
transform-origin: center center;
}
.hf-remocn-progress-steps {
--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-progress-steps {
width: 560px;
border-radius: 22px;
background: #fff;
padding: 22px;
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
display: grid;
gap: 12px;
}
.hf-remocn-progress-steps .row {
height: 52px;
border-radius: 14px;
background: #f4f4f5;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
transform: translateX(var(--hf-row-x, 0px));
opacity: var(--hf-row-opacity, 1);
}
.hf-remocn-progress-steps .label {
font-weight: 600;
font-size: 15px;
}
.hf-remocn-progress-steps .hint {
color: #71717a;
font-size: 12px;
background: #f4f4f5;
border: 1px solid #e4e4e7;
border-radius: 6px;
padding: 2px 8px;
letter-spacing: 0.01em;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="progress-steps-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<div class="hf-remocn-progress-steps">
<div class="row">
<span class="label">Progress Steps</span><span class="hint">Ctrl K</span>
</div>
<div class="row"><span class="label">Selected</span><span class="hint">active</span></div>
<div class="row">
<span class="label">Disabled</span><span class="hint">pending</span>
</div>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
const startTime = 0.5;
tl.fromTo(
".hf-remocn-progress-steps .row",
{ "--hf-row-x": "-16px", "--hf-row-opacity": 0 },
{
"--hf-row-x": "0px",
"--hf-row-opacity": 1,
duration: 0.22,
stagger: 0.07,
ease: "power2.out",
},
startTime,
);
tl.set({}, {}, 5);
window.__timelines = window.__timelines || {};
window.__timelines["progress-steps-demo"] = tl;
</script>
</div>
</body>
</html>