| index e2a3270..b517f5d 100644 |
| --- a/docs/superpowers/specs/2026-11-17-presenter-mockup.html |
| +++ b/docs/superpowers/specs/2026-11-17-presenter-mockup.html |
| @@ -3,7 +3,7 @@ |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| -<title>Slides: the presenter window, copied from the HalfStack deck (mockup 2)</title> |
| +<title>Slides: the presenter window, copied from the HalfStack deck (mockup 3)</title> |
| <style> |
| /* Values are the deck's own (engine/deck.css, "presenter view"). */ |
| :root { --bg: #0b0b0f; --ink: #efefec; --ink-2: #c4c4cc; --muted: #9a9aa6; --accent: #ffb454; --panel: #111118; --border: #26262f; |
| @@ -40,13 +40,36 @@ |
| #pnext-label { font-family: var(--mono); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); } |
| #pnotes { min-inline-size: 0; overflow: hidden; font-size: 32px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px 28px; } |
| #hint { grid-column: 1 / 3; color: var(--muted); font-size: 16px; } |
| - @media (max-width: 800px) { #presenter { grid-template-columns: 1fr; } #phead, #hint { grid-column: 1; flex-wrap: wrap; gap: 8px 20px; } } |
| + #psteps { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 20px; color: var(--muted); } |
| + #psteps i { inline-size: 14px; block-size: 14px; border-radius: 50%; border: 2px solid var(--muted); } |
| + #psteps i.done { background: var(--accent); border-color: var(--accent); } |
| + #pright { min-inline-size: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; } |
| + #ptools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; font: 16px/1.5 system-ui, sans-serif; } |
| + #ptools button { min-block-size: 36px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); color: var(--ink-2); } |
| + #ptools button[aria-pressed="true"] { background: var(--panel); color: var(--ink); border-color: var(--muted); } |
| + #pnotes.scroll { overflow: auto; } |
| + #pgrid { position: absolute; z-index: 3; inset-block-start: 52px; inset-inline-start: 0; inline-size: min(92vw, 560px); padding: 16px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font: 16px/1.5 system-ui, sans-serif; } |
| + #pgrid button { display: grid; gap: 6px; padding: 8px; border-radius: 6px; color: var(--ink-2); text-align: start; } |
| + #pgrid button:hover, #pgrid button[aria-current="true"] { background: #1b1b24; color: var(--ink); } |
| + #pgrid span { display: block; aspect-ratio: 16 / 9; background: var(--paper); border-radius: 2px; } |
| + #pgrid button.parkedslide span { background: #3a3a44; } |
| + .arranging .pframe, .arranging #pnotes { outline: 2px dashed var(--accent); outline-offset: 4px; resize: both; overflow: auto; cursor: move; } |
| + #parrange { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 8px; color: var(--ink-2); font-size: 18px; } |
| + #parrange button { min-block-size: 36px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); color: var(--ink); } |
| + @media (max-width: 800px) { #presenter { grid-template-columns: 1fr; } #phead, #hint, #parrange { grid-column: 1; flex-wrap: wrap; gap: 8px 20px; } } |
| </style> |
| </head> |
| <body> |
| <div id="presenter"> |
| <div id="phead"> |
| <button type="button" id="ppos" title="Click, or type a number and Enter, to go to a slide">2 / 4 · core</button> |
| + <div id="pgrid" hidden> |
| + <button type="button"><span></span>1 · Welcome</button> |
| + <button type="button" aria-current="true"><span></span>2 · Three reasons</button> |
| + <button type="button" class="parkedslide"><span></span>Parked · The old opening</button> |
| + <button type="button"><span></span>3 · A longer story (full)</button> |
| + <button type="button"><span></span>4 · Links</button> |
| + </div> |
| <span id="pblack" hidden>BLACK</span> |
| <button type="button" id="pelapsed" title="Click to reset">12:41</button> |
| <span id="pclock">14:32</span> |
| @@ -55,18 +78,22 @@ |
| <button type="button">Pair a phone as a remote…</button> |
| <button type="button">Open the slide window</button> |
| <button type="button">Switch to full</button> |
| + <button type="button" id="marrange">Arrange this window…</button> |
| <hr> |
| <button type="button">Back to the deck</button> |
| <button type="button">End presenting</button> |
| </div> |
| </div> |
| + <div id="parrange" hidden>Arranging: drag a panel to move it, drag its corner to resize it. <button type="button" id="areset">Reset to the default</button><button type="button" id="adone">Done</button></div> |
| <div id="pleft"> |
| <div class="pframe" id="pcur"><h2 id="curh">Three reasons it worked</h2> |
| <ul id="curl"><li>The deck was data, so it could change overnight</li><li>Every slide was rehearsed where it was written</li><li>Nothing needed the network</li></ul></div> |
| + <div id="psteps" aria-label="Presses on this slide"><i></i><i></i><i></i><span id="pstepstext">press 1 of 3</span></div> |
| <div id="pnext-label">Next step</div> |
| <div class="pframe" id="pnext"><h2 id="nxth">Three reasons it worked</h2> |
| <ul id="nxtl"><li>The deck was data, so it could change overnight</li><li>Every slide was rehearsed where it was written</li><li>Nothing needed the network</li></ul></div> |
| </div> |
| + <div id="pright"><div id="ptools"><button type="button" id="nfit" aria-pressed="true">Fit</button><button type="button" id="nscroll" aria-pressed="false">Scroll</button><button type="button" id="nsmaller" aria-label="Smaller notes">A−</button><button type="button" id="nlarger" aria-label="Larger notes">A+</button></div> |
| <div id="pnotes">Three reasons. Take them slowly, one press each. |
| |
| (Press.) |
| @@ -75,8 +102,12 @@ First: the deck was data. A string changed at midnight was on the slide by break |
| |
| (Press.) |
| |
| -Second: every slide was rehearsed where it was written.</div> |
| - <div id="hint">Mockup: → or Space steps forward, ← back, B blacks the screen. The ⋯ menu is the only thing added to your deck's window.</div> |
| +Second: every slide was rehearsed where it was written. |
| + |
| +(Press.) |
| + |
| +Third: nothing needed the network. Both windows stayed together on the laptop with the Wi-Fi off, which is the only reason the talk survived the venue.</div></div> |
| + <div id="hint">Mockup: → or Space steps forward, ← back, B blacks the screen. Click the position for the slide grid. Fit, Scroll, A− and A+ work. Arrange is in the ⋯ menu.</div> |
| </div> |
| <script> |
| const $ = id => document.getElementById(id); |
| @@ -89,6 +120,8 @@ Second: every slide was rehearsed where it was written.</div> |
| $('nxth').textContent = last ? 'Links' : 'Three reasons it worked'; |
| $('nxtl').hidden = last; |
| nxt.forEach((li, i) => li.classList.toggle('off', i > step)); |
| + [...$('psteps').querySelectorAll('i')].forEach((d, i) => d.classList.toggle('done', i < step)); |
| + $('pstepstext').textContent = step === 0 ? 'before the first press' : 'press ' + step + ' of 3'; |
| $('pcur').classList.toggle('blacked', black); |
| $('pblack').hidden = !black; |
| } |
| @@ -100,8 +133,25 @@ Second: every slide was rehearsed where it was written.</div> |
| paint(); |
| }); |
| $('pmore').addEventListener('click', e => { e.stopPropagation(); const on = $('pmenu').hidden; $('pmenu').hidden = !on; $('pmore').setAttribute('aria-expanded', String(on)); }); |
| - addEventListener('click', () => { $('pmenu').hidden = true; $('pmore').setAttribute('aria-expanded', 'false'); }); |
| - $('pleft').addEventListener('click', () => { step = Math.min(3, step + 1); black = false; paint(); }); |
| + addEventListener('click', () => { $('pmenu').hidden = true; $('pmore').setAttribute('aria-expanded', 'false'); $('pgrid').hidden = true; }); |
| + $('ppos').addEventListener('click', e => { e.stopPropagation(); $('pgrid').hidden = !$('pgrid').hidden; }); |
| + let size = 32, mode = 'fit'; |
| + function notes() { |
| + const n = $('pnotes'); n.classList.toggle('scroll', mode === 'scroll'); |
| + $('nfit').setAttribute('aria-pressed', String(mode === 'fit')); $('nscroll').setAttribute('aria-pressed', String(mode === 'scroll')); |
| + let px = size; n.style.fontSize = px + 'px'; |
| + if (mode === 'fit') while (n.scrollHeight > n.clientHeight && px > 16) { px -= 1; n.style.fontSize = px + 'px'; } |
| + } |
| + $('nfit').addEventListener('click', e => { e.stopPropagation(); mode = 'fit'; notes(); }); |
| + $('nscroll').addEventListener('click', e => { e.stopPropagation(); mode = 'scroll'; notes(); }); |
| + $('nsmaller').addEventListener('click', e => { e.stopPropagation(); size = Math.max(16, size - 4); mode = 'scroll'; notes(); }); |
| + $('nlarger').addEventListener('click', e => { e.stopPropagation(); size = Math.min(56, size + 4); mode = 'scroll'; notes(); }); |
| + function arrange(on) { $('presenter').classList.toggle('arranging', on); $('parrange').hidden = !on; } |
| + $('marrange').addEventListener('click', () => arrange(true)); |
| + $('adone').addEventListener('click', e => { e.stopPropagation(); arrange(false); }); |
| + $('areset').addEventListener('click', e => { e.stopPropagation(); document.querySelectorAll('.pframe, #pnotes').forEach(el => { el.style.width = ''; el.style.height = ''; }); }); |
| + addEventListener('resize', notes); notes(); |
| + $('pleft').addEventListener('click', () => { if ($('presenter').classList.contains('arranging')) return; step = Math.min(3, step + 1); black = false; paint(); }); |
| paint(); |
| </script> |
| </body> |