mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-13 07:40:06 +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.
1 line
5.8 KiB
JSON
1 line
5.8 KiB
JSON
{"html":"<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=1920, height=1080\" />\n <title>Fade Through - Demo</title>\n <script src=\"https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js\"></script>\n <style>\n * {\n box-sizing: border-box;\n }\n html,\n body {\n margin: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n }\n #demo {\n position: relative;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n font-family: Inter, system-ui, sans-serif;\n background: #f5f5f4;\n }\n .scene {\n position: absolute;\n inset: 0;\n display: grid;\n place-items: center;\n }\n /* Scene A — light neutral */\n .a {\n background: #fafafa;\n }\n /* Scene B — dark zinc */\n .b {\n background: #18181b;\n opacity: 0;\n }\n /* Shared card */\n .card {\n width: 820px;\n border-radius: 16px;\n padding: 72px 80px 80px;\n display: flex;\n flex-direction: column;\n gap: 32px;\n }\n .a .card {\n background: #ffffff;\n border: 1px solid #e4e4e7;\n box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);\n }\n .b .card {\n background: #27272a;\n border: 1px solid #3f3f46;\n box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);\n }\n .badge {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n font-size: 26px;\n font-weight: 500;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n width: fit-content;\n padding: 10px 22px;\n border-radius: 999px;\n }\n .a .badge {\n background: #f4f4f5;\n color: #71717a;\n }\n .b .badge {\n background: #3f3f46;\n color: #a1a1aa;\n }\n .badge-dot {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n }\n .a .badge-dot {\n background: #71717a;\n }\n .b .badge-dot {\n background: #a1a1aa;\n }\n .card-title {\n font-size: 72px;\n font-weight: 700;\n line-height: 1.08;\n letter-spacing: -0.02em;\n margin: 0;\n }\n .a .card-title {\n color: #18181b;\n }\n .b .card-title {\n color: #fafafa;\n }\n .card-body {\n font-size: 32px;\n font-weight: 400;\n line-height: 1.5;\n color: #71717a;\n }\n .b .card-body {\n color: #71717a;\n }\n .divider {\n height: 1px;\n background: #e4e4e7;\n border: none;\n margin: 0;\n }\n .b .divider {\n background: #3f3f46;\n }\n .meta-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .meta-label {\n font-size: 26px;\n font-weight: 500;\n }\n .a .meta-label {\n color: #71717a;\n }\n .b .meta-label {\n color: #71717a;\n }\n .mode-pill {\n font-size: 26px;\n font-weight: 600;\n padding: 10px 28px;\n border-radius: 999px;\n }\n .a .mode-pill {\n background: #18181b;\n color: #fafafa;\n }\n .b .mode-pill {\n background: #fafafa;\n color: #18181b;\n }\n .hf-fade-through-wash {\n position: absolute;\n inset: 0;\n opacity: 0;\n pointer-events: none;\n background: #fafafa;\n z-index: 900;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"fade-through-demo\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <!-- Scene A: Light mode -->\n <div class=\"scene a hf-fade-through-out\">\n <div class=\"card\">\n <div class=\"badge\"><span class=\"badge-dot\"></span>Light Mode</div>\n <h2 class=\"card-title\">Your workspace,<br />beautifully lit.</h2>\n <p class=\"card-body\">\n Clean surfaces, crisp type, and just enough contrast to keep you focused all day long.\n </p>\n <hr class=\"divider\" />\n <div class=\"meta-row\">\n <span class=\"meta-label\">Appearance</span>\n <span class=\"mode-pill\">Light</span>\n </div>\n </div>\n </div>\n\n <!-- Scene B: Dark mode -->\n <div class=\"scene b hf-fade-through-in\">\n <div class=\"card\">\n <div class=\"badge\"><span class=\"badge-dot\"></span>Dark Mode</div>\n <h2 class=\"card-title\">Easy on the eyes,<br />night or day.</h2>\n <p class=\"card-body\">\n Deep backgrounds, refined contrast, and thoughtful color for late-night sessions.\n </p>\n <hr class=\"divider\" />\n <div class=\"meta-row\">\n <span class=\"meta-label\">Appearance</span>\n <span class=\"mode-pill\">Dark</span>\n </div>\n </div>\n </div>\n\n <div class=\"hf-fade-through-wash\" aria-hidden=\"true\"></div>\n <script>\n const tl = gsap.timeline({ paused: true });\n tl.to(\".hf-fade-through-out\", { opacity: 0, duration: 0.45, ease: \"power2.inOut\" }, 1.3);\n tl.to(\".hf-fade-through-wash\", { opacity: 1, duration: 0.35, ease: \"power2.inOut\" }, 1.3);\n tl.to(\".hf-fade-through-wash\", { opacity: 0, duration: 0.45, ease: \"power2.inOut\" }, 1.65);\n tl.to(\".hf-fade-through-in\", { opacity: 1, duration: 0.55, ease: \"power2.out\" }, 1.65);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"fade-through-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |