you-dont-need-react

you-dont-need-react
git clone git://brookjeynes.dev/bjeynes/you-dont-need-react.git
Log | Files | Refs | README

task-drag-flow.html (2065B)


      1 <!doctype html>
      2 <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>How the task moves</title><style>body{margin:0;background:#15181c;color:#f2f4f7;font-family:Arial,sans-serif}main{overflow-x:auto}svg{width:100%;min-width:1200px;height:auto;display:block}text{fill:#f2f4f7;text-anchor:middle;font-family:Arial,sans-serif}.title{font-size:24px;font-weight:bold}.label{font-size:18px;font-weight:bold}.code{font:20px 'Courier New',monospace;fill:#c9b98f}.accent{fill:#87afaf}.body{font-size:20px}</style></head><body><main>
      3 <svg viewBox="0 0 1200 450" role="img" aria-labelledby="task-drag-flow-title task-drag-flow-desc" xmlns="http://www.w3.org/2000/svg"><title id="task-drag-flow-title">How the task moves</title><desc id="task-drag-flow-desc">A dragged task stores its ID in dataTransfer; the drop handler reads that ID and moves the task to the destination column.</desc>
      4 <defs><marker id="task-drag-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto"><path d="M0 0 L8 4 L0 8 Z" fill="#f2f4f7"/></marker></defs>
      5 <path d="M348 220 H444 M756 220 H852" fill="none" stroke="#f2f4f7" stroke-width="2" marker-end="url(#task-drag-arrow)"/>
      6 <rect x="80" y="164" width="264" height="112" fill="none" stroke="#f2f4f7" stroke-width="2"/><rect x="448" y="164" width="304" height="112" fill="none" stroke="#f2f4f7" stroke-width="2"/><rect x="856" y="164" width="264" height="112" fill="none" stroke="#f2f4f7" stroke-width="2"/>
      7 <text x="212" y="130" class="label">DRAG START</text><text x="600" y="130" class="label">DATA TRANSFER</text><text x="988" y="130" class="label">DROP</text>
      8 <text x="212" y="226" class="body">Buy groceries</text><text x="600" y="226" class="code">id: abc123</text><text x="988" y="226" class="body accent">Buy groceries</text>
      9 <text x="212" y="314" class="body">To do</text><text x="988" y="314" class="body">In progress</text><text x="600" y="397" class="body">The ID travels with the drag; drop reads it.</text>
     10 </svg></main></body></html>