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

102 lines
2.7 KiB
HTML
Vendored

<!doctype html>
<!--
Oversized Cursor, standalone demo.
Mounts oversized-cursor.html as a sub-composition (data-composition-src) into a
dark host stage, instead of inlining its markup/style/script. Passing lint and
validate here, with the cursor visibly present in mid-motion snapshots, proves
the primitive satisfies the sub-composition mount contract (see
skills/hyperframes-core/references/sub-compositions.md).
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Oversized Cursor, Demo</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#root {
position: relative;
width: 1920px;
height: 1080px;
overflow: hidden;
background: var(--bg, #05070c);
font-family: var(--font-body, Inter, system-ui, sans-serif);
}
.demo-frame {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 1280px;
height: 720px;
border-radius: 24px;
border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
background: var(--surface, #0b0f16);
box-shadow: 0 40px 120px rgba(2, 6, 23, 0.55);
overflow: hidden;
}
</style>
</head>
<body>
<div
id="root"
data-composition-id="oversized-cursor-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="4.2"
>
<div
id="demo-frame"
class="demo-frame clip"
data-start="0"
data-duration="4.2"
data-track-index="0"
></div>
<div
class="clip"
id="oversized-cursor"
data-composition-id="oversized-cursor"
data-composition-src="./oversized-cursor.html"
data-variable-values='{"cursor_variant":"light","target_x":66,"target_y":42,"click_label":"Ship it"}'
data-start="0"
data-duration="4.2"
data-track-index="1"
data-width="1280"
data-height="720"
style="
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 1280px;
height: 720px;
"
></div>
</div>
<script>
window.__timelines = window.__timelines || {};
var tl = gsap.timeline({ paused: true });
window.__timelines["oversized-cursor-demo"] = tl;
</script>
</body>
</html>