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
5.9 KiB
JSON
1 line
5.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>Spotlight Card - 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: #f7f7f8;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n padding: 52px;\n transform: scale(1.65);\n transform-origin: center center;\n }\n .hf-remocn-spotlight-card {\n --hf-accent: var(--accent, #18181b);\n --hf-ink: #111827;\n --hf-muted: #6b7280;\n --hf-surface: #ffffff;\n color: var(--hf-ink);\n font-family: Inter, system-ui, sans-serif;\n }\n .hf-remocn-spotlight-card {\n position: relative;\n width: 760px;\n height: 428px;\n overflow: hidden;\n border-radius: 30px;\n background: #080b12;\n box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);\n }\n .hf-remocn-spotlight-card .mesh {\n position: absolute;\n inset: -22%;\n filter: blur(44px);\n opacity: 0.88;\n background:\n radial-gradient(\n circle at var(--hf-x1, 20%) var(--hf-y1, 30%),\n rgba(255, 255, 255, 0.45) 0 18%,\n transparent 32%\n ),\n radial-gradient(\n circle at var(--hf-x2, 76%) var(--hf-y2, 52%),\n rgba(255, 255, 255, 0.18) 0 16%,\n transparent 34%\n ),\n radial-gradient(\n circle at var(--hf-x3, 46%) var(--hf-y3, 78%),\n rgba(255, 255, 255, 0.08) 0 18%,\n transparent 34%\n );\n }\n .hf-remocn-spotlight-card .card {\n position: absolute;\n inset: 74px 92px;\n border: 1px solid rgba(255, 255, 255, 0.16);\n border-radius: 26px;\n background: rgba(255, 255, 255, 0.08);\n color: #fff;\n display: grid;\n place-items: center;\n text-align: center;\n overflow: hidden;\n }\n .hf-remocn-spotlight-card .spot {\n position: absolute;\n width: 260px;\n height: 260px;\n border-radius: 50%;\n background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%);\n transform: translate(var(--hf-spot-x, 0px), var(--hf-spot-y, 0px));\n mix-blend-mode: screen;\n }\n .hf-remocn-spotlight-card .particle {\n position: absolute;\n left: 50%;\n top: 54%;\n width: 12px;\n height: 20px;\n border-radius: 3px;\n background: var(--c);\n transform: translate(var(--hf-px, 0px), var(--hf-py, 0px)) rotate(var(--hf-pr, 0deg));\n opacity: var(--hf-po, 0);\n }\n .hf-remocn-spotlight-card h3 {\n margin: 0;\n font-size: 44px;\n letter-spacing: -0.04em;\n }\n .hf-remocn-spotlight-card p {\n margin: 8px 0 0;\n font-size: 18px;\n color: rgba(255, 255, 255, 0.7);\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"spotlight-card-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-remocn-spotlight-card\">\n <div class=\"mesh\"></div>\n <div class=\"card\">\n <div class=\"spot\"></div>\n <div>\n <h3>Spotlight Card</h3>\n <p>A card with a scripted cursor spotlight and lit border.</p>\n </div>\n </div>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-remocn-spotlight-card .mesh\",\n {\n \"--hf-x1\": \"18%\",\n \"--hf-y1\": \"28%\",\n \"--hf-x2\": \"78%\",\n \"--hf-y2\": \"46%\",\n \"--hf-x3\": \"44%\",\n \"--hf-y3\": \"80%\",\n },\n {\n \"--hf-x1\": \"34%\",\n \"--hf-y1\": \"42%\",\n \"--hf-x2\": \"62%\",\n \"--hf-y2\": \"60%\",\n \"--hf-x3\": \"58%\",\n \"--hf-y3\": \"64%\",\n duration: 4,\n ease: \"sine.inOut\",\n },\n startTime,\n );\n tl.fromTo(\n \".hf-remocn-spotlight-card .spot\",\n { \"--hf-spot-x\": \"-120px\", \"--hf-spot-y\": \"-70px\" },\n { \"--hf-spot-x\": \"190px\", \"--hf-spot-y\": \"90px\", duration: 3, ease: \"sine.inOut\" },\n startTime,\n );\n const particles_spotlight_card = gsap.utils.toArray(\".hf-remocn-spotlight-card .particle\");\n if (particles_spotlight_card.length) {\n tl.fromTo(\n particles_spotlight_card,\n { \"--hf-po\": 0, \"--hf-px\": \"0px\", \"--hf-py\": \"0px\", \"--hf-pr\": \"0deg\" },\n {\n \"--hf-po\": 1,\n \"--hf-px\": (i) => Math.cos(i * 0.83) * 250 + \"px\",\n \"--hf-py\": (i) => -120 - Math.sin(i * 0.61) * 120 + \"px\",\n \"--hf-pr\": (i) => 180 + i * 37 + \"deg\",\n duration: 0.8,\n stagger: 0.015,\n ease: \"power2.out\",\n },\n startTime + 0.2,\n );\n }\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"spotlight-card-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |