Files
hyperframes/docs/public/catalog/components/simulated-cursor.json
T
Miguel Ángel 9734578e60 feat(registry): bring back the video-primitive moves (#3169)
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.
2026-08-10 18:46:03 -04:00

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>Simulated Cursor - 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 background: #ecf1f3;\n font-family: Inter, system-ui, sans-serif;\n display: grid;\n place-items: center;\n color: #152026;\n }\n .demo-frame {\n /* ponytail: zoom on wrapper so GSAP can freely animate .card transform */\n zoom: 1.5;\n }\n .card {\n width: 880px;\n padding: 72px;\n background: white;\n border: 1px solid #dce4e8;\n border-radius: 16px;\n box-shadow: 0 24px 70px rgba(37, 55, 66, 0.1);\n }\n .title {\n font-size: 64px;\n font-weight: 850;\n letter-spacing: -0.03em;\n }\n .button {\n margin-top: 48px;\n display: inline-flex;\n padding: 22px 36px;\n background: #141a20;\n color: white;\n font-size: 28px;\n font-weight: 760;\n border-radius: 10px;\n }\n .hf-simulated-cursor {\n --hf-cursor-x: 420px;\n --hf-cursor-y: 360px;\n position: absolute;\n left: 0;\n top: 0;\n width: 44px;\n height: 44px;\n transform: translate3d(var(--hf-cursor-x), var(--hf-cursor-y), 0);\n pointer-events: none;\n z-index: 999;\n filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));\n }\n .hf-simulated-cursor-pulse {\n position: absolute;\n left: 9px;\n top: 9px;\n width: 22px;\n height: 22px;\n border: 2px solid rgba(20, 26, 32, 0.75);\n border-radius: 999px;\n opacity: 0;\n transform: scale(0.2);\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"simulated-cursor-demo\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <div class=\"card\">\n <div class=\"title\">Point at the action without screen recording.</div>\n <div class=\"button\">Generate video</div>\n </div>\n </div>\n <div class=\"hf-simulated-cursor\" aria-hidden=\"true\">\n <div class=\"hf-simulated-cursor-pulse\"></div>\n <svg\n viewBox=\"0 0 24 24\"\n width=\"34\"\n height=\"34\"\n style=\"filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.3))\"\n >\n <path\n d=\"M5.5 3.2 L5.5 19.6 L9.7 15.7 L12.5 21.9 L15.0 20.7 L12.3 14.6 L17.9 14.2 Z\"\n fill=\"#18181b\"\n stroke=\"#ffffff\"\n stroke-width=\"1.5\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n tl.from(\".card\", { opacity: 0, y: 30, duration: 0.6, ease: \"power3.out\" }, 0.2);\n tl.to(\n \".hf-simulated-cursor\",\n {\n \"--hf-cursor-x\": \"1030px\",\n \"--hf-cursor-y\": \"620px\",\n duration: 1,\n ease: \"power2.inOut\",\n },\n 1.0,\n );\n tl.fromTo(\n \".hf-simulated-cursor-pulse\",\n { opacity: 0.8, scale: 0.2 },\n { opacity: 0, scale: 2.4, duration: 0.45, ease: \"power2.out\" },\n 2.02,\n );\n window.__timelines = window.__timelines || {};\n window.__timelines[\"simulated-cursor-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}