Skip to content

Write HTML. Render video. Built for agents.

2.4 KB
Raw Blame
<!doctype html>
<!--
  focus-rack demo. This standalone composition mounts focus-rack.html through
  data-composition-src. Non-default labels and accent prove that all variables
  flow through the mount while the primitive remains sized by its host box.
-->
<html lang="en" data-composition-id="focus-rack-demo" data-composition-duration="3.5">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <title>Focus Rack Demo</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html,
      body {
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: #0b0c0e;
      }

      #root {
        --bg: #0b0c0e;
        --fg: #f8fafc;
        --surface: #1a2030;
        --border: #394155;
        --font-display: Inter, system-ui, sans-serif;
        --font-body: Inter, system-ui, sans-serif;
        --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
        position: relative;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: radial-gradient(ellipse at 50% 44%, #211b32 0%, #0b0c0e 68%);
      }

      .mount-card {
        position: absolute;
        left: 12%;
        top: 14%;
        width: 76%;
        height: 72%;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 30px;
        background: var(--bg);
        box-shadow: 0 48px 120px rgba(0, 0, 0, 0.52);
      }
    </style>
  </head>
  <body>
    <div
      id="root"
      data-composition-id="focus-rack-demo"
      data-start="0"
      data-width="1920"
      data-height="1080"
      data-duration="3.5"
      data-fps="30"
    >
      <div
        id="focus-rack-mount"
        class="mount-card clip"
        data-composition-id="focus-rack"
        data-composition-src="./focus-rack.html"
        data-variable-values='{"label_a":"Working copy","label_b":"Approved","accent":"violet"}'
        data-start="0"
        data-duration="3.5"
        data-track-index="0"
        data-width="1459"
        data-height="778"
      ></div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      window.__timelines = window.__timelines || {};
      window.__timelines["focus-rack-demo"] = gsap.timeline({ paused: true });
    </script>
  </body>
</html>