mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 23:03:09 +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.7 KiB
JSON
1 line
3.7 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>Badge Pop - 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: #f4f4f5;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n padding: 56px;\n transform: scale(\n 3\n ); /* ponytail: scale wrapper (hugs content — no min-width inflation), not GSAP targets */\n transform-origin: center;\n }\n .hf-transition-badge-pop {\n position: relative;\n display: inline-grid;\n place-items: center;\n font-family: Inter, system-ui, sans-serif;\n }\n .hf-transition-badge-button {\n display: grid;\n place-items: center;\n width: 76px;\n height: 76px;\n border: 1px solid #e4e4e7;\n border-radius: 22px;\n background: #ffffff;\n color: #18181b;\n box-shadow: 0 20px 58px rgba(0, 0, 0, 0.12);\n }\n .hf-transition-badge-button svg {\n width: 30px;\n height: 30px;\n fill: none;\n stroke: currentColor;\n stroke-width: 2.2;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n .hf-transition-badge-count {\n position: absolute;\n right: -8px;\n top: -8px;\n display: grid;\n place-items: center;\n min-width: 30px;\n height: 30px;\n padding: 0 8px;\n border: 3px solid #ffffff;\n border-radius: 999px;\n background: #ef4444;\n color: #ffffff;\n font-size: 13px;\n font-weight: 900;\n transform-origin: center;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"badge-pop-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-transition-badge-pop\">\n <button class=\"hf-transition-badge-button\" type=\"button\" aria-label=\"Notifications\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path d=\"M18 8a6 6 0 10-12 0c0 7-3 7-3 7h18s-3 0-3-7\" />\n <path d=\"M10 20a2 2 0 004 0\" />\n </svg>\n </button>\n <span class=\"hf-transition-badge-count\">3</span>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n tl.fromTo(\n \".hf-transition-badge-button\",\n { y: 18, opacity: 0 },\n { y: 0, opacity: 1, duration: 0.34, ease: \"power2.out\" },\n 0.35,\n );\n tl.fromTo(\n \".hf-transition-badge-count\",\n { scale: 0, opacity: 0 },\n { scale: 1, opacity: 1, duration: 0.42, ease: \"back.out(2.4)\" },\n 0.7,\n );\n tl.to(\n \".hf-transition-badge-count\",\n { scale: 1.18, duration: 0.12, yoyo: true, repeat: 1, ease: \"power1.inOut\" },\n 1.15,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"badge-pop-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |