Files
hyperframes/registry/components/backdrop/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

111 lines
2.9 KiB
HTML
Vendored

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Backdrop - 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;
transform: scale(2.3);
}
.hf-remocn-backdrop {
--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-backdrop {
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-backdrop .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-backdrop .label {
font-size: 15px;
font-weight: 600;
}
.hf-remocn-backdrop .hint {
color: #71717a;
font-size: 14px;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="backdrop-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<div class="hf-remocn-backdrop">
<div class="row"><span class="label">Backdrop</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-backdrop .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["backdrop-demo"] = tl;
</script>
</div>
</body>
</html>