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

122 lines
3.0 KiB
HTML
Vendored

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Table - 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;
min-width: 760px;
min-height: 480px;
padding: 56px;
/* ponytail: scale wrapper (not a GSAP target) to fill ~65% of frame */
transform: scale(2.2);
transform-origin: center center;
}
.hf-ui-table {
width: 560px;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
border: 1px solid #e4e4e7;
border-radius: 12px;
background: #fff;
color: #18181b;
font-family: Inter, system-ui, sans-serif;
box-shadow: 0 18px 48px rgba(24, 24, 27, 0.1);
}
.hf-ui-table th,
.hf-ui-table td {
padding: 15px 20px;
text-align: left;
border-bottom: 1px solid #f1f1f4;
font-size: 15px;
}
.hf-ui-table th {
background: #fafafa;
color: #71717a;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.hf-ui-table tr:last-child td {
border-bottom: 0;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="table-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<table class="hf-ui-table">
<thead>
<tr>
<th>Scene</th>
<th>Status</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<tr>
<td>Intro</td>
<td>Ready</td>
<td>0:04</td>
</tr>
<tr>
<td>Demo</td>
<td>Rendering</td>
<td>0:12</td>
</tr>
<tr>
<td>CTA</td>
<td>Queued</td>
<td>0:03</td>
</tr>
</tbody>
</table>
</div>
<script>
const tl = gsap.timeline({ paused: true });
const startTime = 0.45;
tl.fromTo(
".hf-ui-table tbody tr",
{ opacity: 0, y: 12 },
{ opacity: 1, y: 0, duration: 0.24, stagger: 0.08, ease: "power2.out" },
startTime,
);
tl.set({}, {}, 5);
window.__timelines = window.__timelines || {};
window.__timelines["table-demo"] = tl;
</script>
</div>
</body>
</html>