garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/mockups/lenses/v3.html

raw

<!doctype html>
<html><head><meta charset="utf-8"><link rel="stylesheet" href="style.css">
<style>
  body { width:1360px; }
  .tap { position:absolute; width:50px; height:50px; border-radius:50%; border:2px solid var(--brand); background:rgba(253,96,18,.18); z-index:30; }
  .note { position:absolute; z-index:30; font-size:11px; color:#fff; background:rgba(253,96,18,.9); padding:2px 7px; border-radius:6px; white-space:nowrap; }
  .sheet.box { left:10px; right:10px; bottom:70px; border-radius:20px; border:1px solid var(--gline); padding:8px 16px 12px; }
  .icon-btn.t { background:transparent; }
  .btn.off { color:#ffb4a8; }
</style>
<svg width="0" height="0" style="position:absolute">
  <symbol id="layers" viewBox="0 0 24 24"><path d="M12 3 2 8.5 12 14l10-5.5L12 3Z"/><path d="m2 13.5 10 5.5 10-5.5"/></symbol>
  <symbol id="lens" viewBox="0 0 24 24"><path d="M5 20V12M10 20V8M15 20v-6M20 20V5"/></symbol>
  <symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5"/><path d="m20 20-4.2-4.2"/></symbol>
  <symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4V5Z"/><path d="M8 9h8M8 12h5"/></symbol>
  <symbol id="globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18"/></symbol>
  <symbol id="cam" viewBox="0 0 24 24"><path d="M4 8h3l2-3h6l2 3h3v11H4V8Z"/><circle cx="12" cy="13" r="3.5"/></symbol>
  <symbol id="mark" viewBox="0 0 24 24"><path d="M7 3h10v18l-5-4-5 4V3Z"/></symbol>
  <symbol id="menu" viewBox="0 0 24 24"><path d="M4 7h16M4 12h16M4 17h16"/></symbol>
  <symbol id="x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18"/></symbol>
  <symbol id="pin" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><circle cx="12" cy="12" r="8"/></symbol>
</svg>
</head>
<body>

<h1>Lenses — <b>a lens stays on, its sheet goes away</b> <span class="new">v3</span></h1>
<p class="lede">
Asked 2026-11-02, against v2: "why can't a lens be on, and its dialog be clicked away? The lens icon
can say whether a lens is on." So <b>on and shown are two things</b>. A lens on is the coloured map,
the frame round the screen and the <b>lens disc lit</b>; nothing else needs to stand over the map.
The sheet is where you read and choose, and it goes when you are done: ✕, a pick, or a drag on the
map hides it. Turning the lens off is its own button. The same on every screen.
</p>

<div class="row">
  <!-- 3a on, nothing up -->
  <div>
    <div class="phone" style="background-image:url(../scenarios/map-areas.jpg)">
      <div class="frame"></div>
      <div class="status"><span>16:20</span><span class="notch"></span><span>4G ▮▮▮</span></div>
      <div class="abs col">
        <div class="disc"><svg class="i"><use href="#layers"/></svg></div>
        <div class="disc on"><svg class="i"><use href="#lens"/></svg></div>
      </div>
      <div class="note" style="top:112px; left:70px">lit: a lens is on · tap for its sheet</div>
      <div class="abs dock">
        <div class="disc"><svg class="i"><use href="#search"/></svg></div><div class="disc"><svg class="i"><use href="#chat"/></svg></div><div class="disc"><svg class="i"><use href="#globe"/></svg></div><div class="disc cam"><svg class="i"><use href="#cam"/></svg></div><div class="disc"><svg class="i"><use href="#mark"/></svg></div><div class="disc"><svg class="i"><use href="#menu"/></svg></div>
      </div>
    </div>
    <div class="cap"><h3><span>3a</span>On — the whole map</h3><ul>
      <li>Where a lens rests: <b>no sheet, no strip</b>. The colours are on the map, the mode's frame round it, and the lens disc wears the engaged plate.</li>
      <li>Tap the disc for the sheet (3b). Tap a place's name for its card, as now.</li>
    </ul></div>
  </div>

  <!-- 3b the sheet -->
  <div>
    <div class="phone" style="background-image:url(../scenarios/map-areas.jpg)">
      <div class="frame"></div>
      <div class="status"><span>16:20</span><span class="notch"></span><span>4G ▮▮▮</span></div>
      <div class="abs col">
        <div class="disc"><svg class="i"><use href="#layers"/></svg></div>
        <div class="disc on"><svg class="i"><use href="#lens"/></svg></div>
      </div>
      <div class="abs sheet box">
        <div class="grab"></div>
        <div class="lt"><span class="mode">Replay</span><span class="name">Population to 2050</span>
          <span class="icon-btn t"><svg class="i s"><use href="#x"/></svg></span></div>
        <div class="lt" style="margin-top:2px"><span class="src">a model's estimate · per gemeente · 2050 forecast</span></div>
        <div class="ramp"><i style="background:#b35806"></i><i style="background:#f1a340"></i><i style="background:#f7f7f7"></i><i style="background:#d8daeb"></i><i style="background:#998ec3"></i><i style="background:#542788"></i></div>
        <div class="ramp-l"><span>down 10 % or more</span><span>up 20 % or more</span></div>
        <div class="here"><svg class="i s" style="color:var(--accent)"><use href="#pin"/></svg><span><b>Assen</b><br><small>gemeente · likely −1.6 % – +13 %</small></span><span class="v">+5.5 % ›</span></div>
        <div class="sect">People</div>
        <div class="fig on"><span class="radio"></span>Change since 2023<span class="mini" style="background:linear-gradient(90deg,#b35806,#f7f7f7,#542788)"></span><span class="val">+5.5 %</span></div>
        <div class="fig"><span class="radio"></span>Inhabitants<span class="mini" style="background:linear-gradient(90deg,#f2f0f7,#9e9ac8,#54278f)"></span><span class="val">73,200</span></div>
        <div class="btns"><span class="btn">Sources</span><span class="btn">All lenses</span><span class="btn off">Lens off</span></div>
      </div>
      <div class="note" style="bottom:404px; right:16px">✕ hides · lens stays on</div>
      <div class="abs dock">
        <div class="disc"><svg class="i"><use href="#search"/></svg></div><div class="disc"><svg class="i"><use href="#chat"/></svg></div><div class="disc"><svg class="i"><use href="#globe"/></svg></div><div class="disc cam"><svg class="i"><use href="#cam"/></svg></div><div class="disc"><svg class="i"><use href="#mark"/></svg></div><div class="disc"><svg class="i"><use href="#menu"/></svg></div>
      </div>
    </div>
    <div class="cap"><h3><span>3b</span>The sheet — read and choose</h3><ul>
      <li>One sheet holds it all: the open figure's <b>key</b> (scale, year, the place under the crosshair) over the <b>figures</b> to pick from.</li>
      <li><b>✕, the disc, a pick, or a drag on the map hide it</b> — back to 3a, the lens still on.</li>
      <li><b>Lens off</b> turns it off; All lenses opens the shelf to choose another.</li>
    </ul></div>
  </div>

  <!-- 3c off -->
  <div>
    <div class="phone" style="background-image:url(../scenarios/map-areas.jpg); filter:grayscale(1) brightness(.7)">
      <div class="status"><span>16:20</span><span class="notch"></span><span>4G ▮▮▮</span></div>
      <div class="abs col">
        <div class="disc"><svg class="i"><use href="#layers"/></svg></div>
        <div class="disc"><svg class="i"><use href="#lens"/></svg></div>
      </div>
      <div class="note" style="top:112px; left:70px">dark: no lens · tap for the shelf</div>
      <div class="abs dock">
        <div class="disc"><svg class="i"><use href="#search"/></svg></div><div class="disc"><svg class="i"><use href="#chat"/></svg></div><div class="disc"><svg class="i"><use href="#globe"/></svg></div><div class="disc cam"><svg class="i"><use href="#cam"/></svg></div><div class="disc"><svg class="i"><use href="#mark"/></svg></div><div class="disc"><svg class="i"><use href="#menu"/></svg></div>
      </div>
    </div>
    <div class="cap"><h3><span>3c</span>Off</h3><ul>
      <li>No lens: the disc is dark and opens the shelf of lenses. Picking one there turns it on and hides the shelf — 3a.</li>
      <li>The v2 one-row strip and its palette go: with the sheet one tap away, nothing has to rest over the map.</li>
    </ul></div>
  </div>
</div>

</body></html>