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.
1 line
3.9 KiB
JSON
1 line
3.9 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>Signup Flow - 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 width: 1920px;\n height: 1080px;\n display: grid;\n place-items: center;\n background: #fafafa;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n min-width: 760px;\n min-height: 520px;\n padding: 56px;\n /* ponytail: scale-up wrapper (not a GSAP target); card was ~20% of frame */\n transform: scale(2.2);\n }\n .hf-ui-signup-flow {\n display: grid;\n gap: 14px;\n width: 430px;\n padding: 30px;\n border: 1px solid #e4e4e7;\n border-radius: 28px;\n background: #ffffff;\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);\n }\n .hf-ui-signup-flow h3 {\n margin: 0 0 6px;\n text-align: center;\n font-size: 28px;\n }\n .hf-ui-signup-flow button,\n .hf-ui-signup-field {\n height: 50px;\n border-radius: 14px;\n font-size: 15px;\n font-weight: 600;\n }\n .hf-ui-signup-social,\n .hf-ui-signup-field {\n border: 1px solid #e4e4e7;\n background: #ffffff;\n color: #18181b;\n }\n .hf-ui-signup-field {\n display: flex;\n align-items: center;\n padding: 0 15px;\n }\n .hf-ui-signup-field.muted {\n color: #a1a1aa;\n }\n .hf-ui-signup-divider {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 10px;\n align-items: center;\n color: #a1a1aa;\n font-size: 13px;\n font-weight: 500;\n }\n .hf-ui-signup-divider span {\n height: 1px;\n background: #e4e4e7;\n }\n .hf-ui-signup-submit {\n border: 0;\n background: #18181b;\n color: #ffffff;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"signup-flow-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <div class=\"hf-ui-signup-flow\">\n <h3>Create account</h3>\n <button class=\"hf-ui-signup-social\" type=\"button\">Continue with Google</button>\n <div class=\"hf-ui-signup-divider\"><span></span><em>or</em><span></span></div>\n <div class=\"hf-ui-signup-field\">email@company.com</div>\n <div class=\"hf-ui-signup-field muted\">Password</div>\n <button class=\"hf-ui-signup-submit\" type=\"button\">Start building</button>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n tl.fromTo(\n \".hf-ui-signup-flow\",\n { opacity: 0, y: 26 },\n { opacity: 1, y: 0, duration: 0.36, ease: \"power2.out\" },\n 0.25,\n );\n tl.fromTo(\n \".hf-ui-signup-flow > *\",\n { y: 14, opacity: 0 },\n { y: 0, opacity: 1, duration: 0.24, stagger: 0.05, ease: \"power2.out\" },\n 0.48,\n );\n tl.to(\n \".hf-ui-signup-submit\",\n { scale: 0.97, duration: 0.12, yoyo: true, repeat: 1, ease: \"power1.inOut\" },\n 1.2,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"signup-flow-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |