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.8 KiB
JSON
1 line
3.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>SVG Line Draw Loader - Demo</title>\n <script src=\"https://cdn.jsdelivr.net/npm/gsap@3.15.0/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: var(--bg, #f4f4f5);\n font-family: var(--font-body, Inter, system-ui, sans-serif);\n }\n .hf-advanced-svg-line-draw-loader {\n color: var(--fg, #18181b);\n font-family: var(--font-body, Inter, system-ui, sans-serif);\n }\n .hf-advanced-svg-line-draw-loader {\n width: 720px;\n min-height: 420px;\n border-radius: 16px;\n padding: 48px;\n background: var(--surface, #ffffff);\n box-shadow:\n 0 24px 70px rgba(0, 0, 0, 0.1),\n 0 1px 0 var(--border, #e4e4e7) inset;\n border: 1px solid var(--border, #e4e4e7);\n display: grid;\n place-items: center;\n /* ponytail: scale wrapper — GSAP only targets path, not this element */\n transform: scale(1.7);\n }\n .hf-advanced-svg-line-draw-loader .grid {\n display: grid;\n grid-template-columns: repeat(8, 46px);\n gap: 10px;\n }\n .hf-advanced-svg-line-draw-loader .cell {\n width: 46px;\n height: 46px;\n border-radius: 14px;\n background: color-mix(in srgb, var(--fg, #111827) 45%, transparent);\n transform: translateY(var(--hf-cell-y, 0px)) scale(var(--hf-cell-scale, 1));\n opacity: var(--hf-cell-opacity, 1);\n }\n .hf-advanced-svg-line-draw-loader svg {\n width: 520px;\n height: 220px;\n overflow: visible;\n }\n .hf-advanced-svg-line-draw-loader path {\n fill: none;\n stroke: var(--accent, #18181b);\n stroke-width: 12;\n stroke-linecap: round;\n stroke-dasharray: 900;\n stroke-dashoffset: var(--hf-dash, 0);\n }\n .hf-advanced-svg-line-draw-loader .stack {\n position: relative;\n width: 520px;\n height: 260px;\n }\n .hf-advanced-svg-line-draw-loader .card {\n position: absolute;\n inset: 0;\n border-radius: 26px;\n background: linear-gradient(135deg, var(--surface, #fafafa), var(--surface, #e4e4e7));\n border: 1px solid var(--border, rgba(15, 23, 42, 0.08));\n box-shadow: 0 20px 54px rgba(15, 23, 42, 0.14);\n transform: translateY(var(--hf-card-y, 0px)) scale(var(--hf-card-scale, 1));\n opacity: var(--hf-card-opacity, 1);\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"svg-line-draw-loader-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"hf-advanced-svg-line-draw-loader\">\n <svg viewBox=\"0 0 520 220\">\n <path d=\"M24 160 C90 28, 188 40, 228 128 S356 234, 494 68\" />\n </svg>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-advanced-svg-line-draw-loader path\",\n { \"--hf-dash\": 900 },\n { \"--hf-dash\": 0, duration: 1.35, ease: \"power3.inOut\" },\n startTime,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"svg-line-draw-loader-demo\"] = tl;\n </script>\n </body>\n</html>\n"} |