Files
hyperframes/registry/components/beat-accent/demo.html
Miguel Ángel 9734578e60 feat(registry): bring back the video-primitive moves (#3169)
Restores the 208 catalog items reverted after their previews 404'd in
production, this time on the payload mechanism rather than the .html files
that caused the outage.

The generator no longer writes a preview document to docs/public. That writer,
and the machinery under it, existed only to produce files the docs host
discards, so it is gone rather than bypassed. Items now embed the composition
itself via a payload, which is what the previous change already does for the
items that were already in the catalog.

The variables explorer is parked, not restored: it drove its preview through
the same unpublished .html path, so it would have shown an empty frame. Items
that declare variables get the live player plus the static variables table, and
reconnecting the explorer to payloads is a follow-up.
2026-08-10 18:46:03 -04:00

90 lines
2.4 KiB
HTML
Vendored

<!doctype html>
<!--
beat-accent: demo. Standalone 1920x1080 host composition that mounts the
primitive from ./beat-accent.html through data-composition-src. The wide,
centered mount card gives the burst room for its word and radial flash.
Non-default text, flashColor, and intensity values prove per-instance
variables flow through the mount. This file is a host-only visual check and
is not installed by `hyperframes add`.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Beat Accent - Demo</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 1920px;
height: 1080px;
overflow: hidden;
background: #05070d;
}
#root {
position: relative;
width: 1920px;
height: 1080px;
overflow: hidden;
background: radial-gradient(ellipse at 50% 42%, #17213a 0%, #05070d 72%);
}
.mount-card {
--bg: #101827;
--surface: #18233a;
--fg: #f8fafc;
--muted: #94a3b8;
--border: #334155;
--brand: #22c55e;
--accent: #ff4f8b;
--font-body: Inter, system-ui, sans-serif;
--font-display: Inter, system-ui, sans-serif;
width: 52%;
height: 44%;
left: 24%;
top: 28%;
border-radius: 32px;
border: 1px solid rgba(148, 163, 184, 0.28);
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.52);
overflow: hidden;
}
</style>
</head>
<body>
<div
id="root"
data-composition-id="beat-accent-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="4"
data-fps="30"
>
<div
id="beat-accent-mount"
class="mount-card clip"
data-composition-id="beat-accent"
data-composition-src="./beat-accent.html"
data-variable-values='{"text":"DROP","flashColor":"bright","intensity":1.6}'
data-start="0"
data-duration="4"
data-track-index="0"
data-width="998"
data-height="475"
></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<script>
window.__timelines = window.__timelines || {};
window.__timelines["beat-accent-demo"] = gsap.timeline({ paused: true });
</script>
</body>
</html>