index.html

At 29d1130Copy the commit ID

29d1130History

Preview

Code3.9 KiB
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Magic Hand · Uno</title>
  <link rel="stylesheet" href="./study.css?monochrome-v3">
</head>
<body>
  <main>
    <header class="intro">
      <p class="brand">Uno <span>Character Studies</span></p>
      <h1>Magic Hand</h1>
      <p>Choose a pose or a motion loop.</p>
    </header>
    <prototype-switcher></prototype-switcher>
    <template id="study">
      <div class="card">
        <div class="stage">
          <p class="status" role="status">Loading 3D Preview</p>
          <fieldset class="rotation-panel" aria-label="Rotation in degrees" disabled>
            <span class="rotation-title" aria-hidden="true">Rotation (°)</span>
            <label class="axis">
              <span aria-hidden="true">X</span>
              <input aria-label="X Rotation" data-axis="x" type="number" min="-180" max="180" step="1" required>
            </label>
            <label class="axis">
              <span aria-hidden="true">Y</span>
              <input aria-label="Y Rotation" data-axis="y" type="number" min="-180" max="180" step="1" required>
            </label>
            <label class="axis">
              <span aria-hidden="true">Z</span>
              <input aria-label="Z Rotation" data-axis="z" type="number" min="-180" max="180" step="1" required>
            </label>
            <button class="reset-angles" type="button" aria-label="Reset Rotation">Reset</button>
          </fieldset>
        </div>
        <div class="view-controls">
          <span>Drag to Rotate</span>
          <button class="reset-view" type="button">Reset View</button>
        </div>
        <div class="controls">
          <div class="actions">
            <div class="poses" role="group" aria-label="Hand poses">
              <button type="button" data-pose="sphere" aria-pressed="true">Sphere</button>
              <button type="button" data-pose="open" aria-pressed="false">Open Hand</button>
              <button type="button" data-pose="fist" aria-pressed="false">Fist</button>
              <button type="button" data-pose="up" aria-pressed="false">Thumbs Up</button>
              <button type="button" data-pose="down" aria-pressed="false">Thumbs Down</button>
              <button type="button" data-pose="pointLeft" aria-pressed="false">Point Left</button>
              <button type="button" data-pose="pointRight" aria-pressed="false">Point Right</button>
              <button type="button" data-pose="pointUp" aria-pressed="false">Point Up</button>
              <button type="button" data-pose="pointDown" aria-pressed="false">Point Down</button>
            </div>
            <div class="loop-options" role="group" aria-label="Motion loops">
              <button type="button" data-loop="reveal" aria-pressed="false">Reveal Loop</button>
              <button type="button" data-loop="tap" aria-pressed="false">Finger Tap</button>
              <button type="button" data-loop="drum" aria-pressed="false">Finger Drum</button>
              <button type="button" data-loop="point" aria-pressed="false">Point Loop</button>
            </div>
          </div>
          <div class="loop-controls" hidden>
            <div class="beats" aria-label="Key poses">
              <button type="button">Rest</button>
              <button type="button">Notice</button>
              <button type="button">Reach</button>
              <button type="button">Reveal</button>
            </div>
            <div class="transport">
              <button class="play" type="button">Pause</button>
              <input type="range" min="0" max="1000" value="0" aria-label="Loop position">
            </div>
          </div>
        </div>
      </div>
    </template>
  </main>
  <script src="./switcher.js?monochrome"></script>
  <script type="module" src="./study.js?monochrome"></script>
</body>
</html>

Files