mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
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.
96 lines
2.7 KiB
HTML
Vendored
96 lines
2.7 KiB
HTML
Vendored
<!doctype html>
|
|
<!--
|
|
avatar-cloud: standalone 1920x1080 demo host.
|
|
|
|
The demo mounts avatar-cloud.html through data-composition-src. Its explicit
|
|
host card proves the primitive sizes from the supplied box and that variables
|
|
cross the mount boundary. It is kept in sync with avatar-cloud.html by hand
|
|
and is not installed by hyperframes add.
|
|
-->
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=1920, height=1080" />
|
|
<title>Avatar Cloud - Demo</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 1920px;
|
|
height: 1080px;
|
|
overflow: hidden;
|
|
background: #05070d;
|
|
}
|
|
|
|
#root {
|
|
--bg: #090d18;
|
|
--surface: #171e31;
|
|
--fg: #f8fafc;
|
|
--muted: #94a3b8;
|
|
--border: #334155;
|
|
--brand: #7c6cff;
|
|
--accent: #38bdf8;
|
|
--radius: 28px;
|
|
--space-2: 18px;
|
|
--space-3: 30px;
|
|
--font-body: Inter, system-ui, sans-serif;
|
|
--font-display: Inter, system-ui, sans-serif;
|
|
position: relative;
|
|
width: 1920px;
|
|
height: 1080px;
|
|
overflow: hidden;
|
|
background: radial-gradient(ellipse at 50% 42%, #111a32 0%, #05070d 72%);
|
|
}
|
|
|
|
/* A definite CSS box is required for the mounted primitive's cqw and cqh
|
|
units. Data dimensions stay aligned for runtime tooling. */
|
|
.mount-card {
|
|
width: 76%;
|
|
height: 72%;
|
|
left: 12%;
|
|
top: 14%;
|
|
overflow: hidden;
|
|
border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 42px 110px color-mix(in srgb, var(--bg) 72%, transparent);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div
|
|
id="root"
|
|
data-composition-id="avatar-cloud-demo"
|
|
data-start="0"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
data-duration="5"
|
|
data-fps="30"
|
|
>
|
|
<div
|
|
id="avatar-cloud-mount"
|
|
class="mount-card clip"
|
|
data-composition-id="avatar-cloud"
|
|
data-composition-src="./avatar-cloud.html"
|
|
data-variable-values='{"avatarCount":12,"showLinks":"yes","label":"50k builders"}'
|
|
data-start="0"
|
|
data-duration="5"
|
|
data-track-index="0"
|
|
data-width="1459"
|
|
data-height="778"
|
|
></div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
|
|
<script>
|
|
// This host has no motion. The mounted primitive owns its timeline.
|
|
window.__timelines = window.__timelines || {};
|
|
window.__timelines["avatar-cloud-demo"] = gsap.timeline({ paused: true });
|
|
</script>
|
|
</body>
|
|
</html>
|