|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Intent — Invite Member Example</title> |
| 7 | + <style> |
| 8 | + body { font-family: system-ui, sans-serif; max-width: 650px; margin: 2rem auto; padding: 0 1rem; line-height: 1.5; } |
| 9 | + h1:first-of-type { font-size: 1.25rem; } |
| 10 | + h2 { font-size: 1rem; margin-top: 2rem; } |
| 11 | + label { display: block; font-weight: 600; margin-top: 1rem; margin-bottom: 0.25rem; } |
| 12 | + input { width: 100%; box-sizing: border-box; padding: 0.5rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; } |
| 13 | + button { margin-top: 0.75rem; padding: 0.5rem 1rem; font-size: 1rem; cursor: pointer; border: 1px solid #aaa; border-radius: 4px; background: #fff; } |
| 14 | + button.primary { font-weight: 700; background: #1a73e8; color: #fff; border-color: #1a73e8; } |
| 15 | + button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 16 | + output { display: block; margin-top: 0.5rem; font-style: italic; color: #555; } |
| 17 | + pre { background: #f5f5f5; padding: 0.75rem; border-radius: 4px; font-size: 0.8rem; overflow-x: auto; } |
| 18 | + .proves { background: #e8f0fe; padding: 0.75rem; border-radius: 4px; margin-top: 1.5rem; } |
| 19 | + .proves ul { margin: 0.25rem 0; padding-left: 1.25rem; } |
| 20 | + </style> |
| 21 | + </head> |
| 22 | + <body> |
| 23 | + <h1>Intent: Invite Member</h1> |
| 24 | + <p>A canonical runnable example. See <a href="../../docs/Quickstart.md">Quickstart</a> for the walkthrough.</p> |
| 25 | + <div id="root"></div> |
| 26 | + <div class="proves"> |
| 27 | + <strong>What this proves:</strong> |
| 28 | + <ul> |
| 29 | + <li>A semantic screen can be defined without DOM, components, or markup.</li> |
| 30 | + <li>Asks can validate input and block actions with human-readable reasons.</li> |
| 31 | + <li>The DOM renderer materializes the graph into real, inspectable HTML.</li> |
| 32 | + <li>Actions produce feedback visible to the user.</li> |
| 33 | + <li>The semantic graph can be inspected via <code>inspectScreen()</code>.</li> |
| 34 | + <li>Tests can assert product behavior without touching the DOM.</li> |
| 35 | + </ul> |
| 36 | + </div> |
| 37 | + <h2>Semantic Graph (<code>inspectScreen()</code>)</h2> |
| 38 | + <pre id="inspect">Loading...</pre> |
| 39 | + <script type="module" src="/src/main.ts"></script> |
| 40 | + </body> |
| 41 | +</html> |
0 commit comments