garage44.eu/jeroen/cartopolis

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

.. /docs/mockups/workspace/v1-calls.html

raw

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>Cartopolis workspace — v1, calls</title><link rel="stylesheet" href="style.css">
<style>
.vid { background:radial-gradient(circle at 50% 38%, #8c7a6c 0 16%, transparent 17%), radial-gradient(ellipse at 50% 92%, #5d5047 0 34%, transparent 35%), linear-gradient(160deg,#3b4a50,#232b2e); }
.vid.b { background:radial-gradient(circle at 50% 38%, #c79a7a 0 16%, transparent 17%), radial-gradient(ellipse at 50% 92%, #34506a 0 34%, transparent 35%), linear-gradient(160deg,#4a4a3e,#2a2a22); }
.vid.c { background:radial-gradient(circle at 50% 38%, #6e4f3e 0 16%, transparent 17%), radial-gradient(ellipse at 50% 92%, #7a3b44 0 34%, transparent 35%), linear-gradient(160deg,#2e3c48,#1d252c); }
.vid.d { background:radial-gradient(circle at 50% 38%, #d8b49a 0 16%, transparent 17%), radial-gradient(ellipse at 50% 92%, #3d5a3a 0 34%, transparent 35%), linear-gradient(160deg,#4b3f45,#2a2327); }
.face { position:absolute; z-index:4; transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; }
.face .v { width:64px; height:64px; border-radius:50%; border:3px solid #fff; box-shadow:0 6px 16px rgba(0,0,0,.4); }
.face.talk .v { border-color:var(--accent); box-shadow:0 0 0 5px rgba(254,117,47,.35), 0 6px 16px rgba(0,0,0,.4); }
.face.far .v { width:44px; height:44px; opacity:.85; }
.face .name { margin-top:4px; font-size:11.5px; color:#fff; background:rgba(10,13,15,.8); padding:1px 8px; border-radius:8px; white-space:nowrap; }
.face .tail { width:2px; height:26px; background:rgba(255,255,255,.8); }
.ring2 { position:absolute; z-index:3; border-radius:50%; border:2px dashed rgba(255,255,255,.6); }
.toast { position:absolute; z-index:5; display:flex; gap:10px; align-items:center; padding:9px 12px; }
.trail { position:absolute; inset:0; z-index:2; }
.mini { width:430px; border-radius:10px; overflow:hidden; background:var(--panel); box-shadow:0 0 0 1px #2a3236; margin:6px 0 14px; }
</style></head>
<body>

<svg width="0" height="0" style="position:absolute">
<symbol id="hash" viewBox="0 0 24 24"><path d="M5 9h14M4 15h14M10 3 8 21M16 3l-2 18"/></symbol>
<symbol id="lock" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></symbol>
<symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="m20 20-4-4"/></symbol>
<symbol id="head" viewBox="0 0 24 24"><path d="M4 15v-3a8 8 0 0 1 16 0v3"/><rect x="3" y="14" width="4" height="6" rx="1.5"/><rect x="17" y="14" width="4" height="6" rx="1.5"/></symbol>
<symbol id="video" viewBox="0 0 24 24"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="m16 10 5-3v10l-5-3"/></symbol>
<symbol id="mic" viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3"/></symbol>
<symbol id="screen" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></symbol>
<symbol id="pin" viewBox="0 0 24 24"><path d="M12 21s-6-5.5-6-11a6 6 0 0 1 12 0c0 5.5-6 11-6 11z"/><circle cx="12" cy="10" r="2.2"/></symbol>
<symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4z"/></symbol>
<symbol id="globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18"/></symbol>
<symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
<symbol id="at" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-4 7.5"/></symbol>
<symbol id="smile" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M8.5 14.5a4.5 4.5 0 0 0 7 0M9 9.5h.01M15 9.5h.01"/></symbol>
<symbol id="thread" viewBox="0 0 24 24"><path d="M5 4h14v9H11l-4 3v-3H5z"/><path d="M9 20h6l3 2v-2"/></symbol>
<symbol id="build" viewBox="0 0 24 24"><path d="M4 21V8l8-5 8 5v13M9 21v-6h6v6M3 21h18"/></symbol>
<symbol id="users" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3.5"/><path d="M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6"/></symbol>
<symbol id="eye" viewBox="0 0 24 24"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol>
<symbol id="arrow" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol>
<symbol id="x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18"/></symbol>
<symbol id="bell" viewBox="0 0 24 24"><path d="M6 16V11a6 6 0 0 1 12 0v5l2 2H4z"/><path d="M10 21h4"/></symbol>
<symbol id="cube" viewBox="0 0 24 24"><path d="M12 3 4 7.5v9L12 21l8-4.5v-9z"/><path d="M4 7.5 12 12l8-4.5M12 12v9"/></symbol>
<symbol id="walk" viewBox="0 0 24 24"><circle cx="13" cy="4.5" r="2"/><path d="M10 21l2-6-3-3 1-5 4 3 3 1M12 15l3 2 1 4M10 7l-3 2-1 3"/></symbol>
<symbol id="clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
<symbol id="door" viewBox="0 0 24 24"><path d="M5 21V3h11v18M3 21h16M13 12h.01"/></symbol>
<symbol id="grid" viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="1.5"/><rect x="13" y="3" width="8" height="8" rx="1.5"/><rect x="3" y="13" width="8" height="8" rx="1.5"/><rect x="13" y="13" width="8" height="8" rx="1.5"/></symbol>
<symbol id="note" viewBox="0 0 24 24"><path d="M5 3h10l4 4v14H5z"/><path d="M14 3v5h5M8 13h8M8 17h5"/></symbol>
<symbol id="hand" viewBox="0 0 24 24"><path d="M8 13V5.5a1.5 1.5 0 0 1 3 0V12M11 11V4.5a1.5 1.5 0 0 1 3 0V12M14 11.5V6a1.5 1.5 0 0 1 3 0v8c0 4-2.5 7-6.5 7S5 18 4 15l-1.5-3.5a1.5 1.5 0 0 1 2.6-1.4L8 13"/></symbol>
<symbol id="moon" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 1 1 9.5 4 6.5 6.5 0 0 0 20 14.5z"/></symbol>
<symbol id="cal" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4"/></symbol>
</svg>

<h1><span class="wm">carto<i>polis</i></span> workspace — <em>calls that happen somewhere</em></h1>
<p class="lede">Calls are the app's encrypted calls (Opus, VP9, sealed with the chat's keys, forwarded by the simulator, which cannot open them). The web UI adds nothing to the security, only to the <b>shape</b>: a call can be the usual grid of faces, or it can take place <b>in the channel's place</b>, and whoever knows the site can walk everyone through it.</p>

<!-- ───────────────────────── C: call as a room ───────────────────────── -->
<div class="screen">
<div class="browser">
  <div class="chrome"><div class="dots"><i></i><i></i><i></i></div><div class="url">cartopolis.org<b>/w/atelier-noord/ebbinge-quarter/call</b></div></div>
  <div class="app">
    <div class="rail">
      <img class="logo" src="../../../assets/icon/cartopolis.svg">
      <div class="ws c4 on">AN</div><div class="ws c2">GM</div><div class="sp"></div>
      <div class="av c7" style="width:38px;height:38px">L<span class="pr world" style="border-color:var(--ink)"></span></div>
    </div>
    <div class="main">
      <div class="world" style="background-image:url(meet.jpg)"></div>
      <div class="float glass" style="left:14px;right:14px;top:12px;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 14px">
        <span class="live"></span>
        <div style="flex:1"><b style="color:var(--cream)">Call · # ebbinge-quarter</b> <span style="color:var(--dim);font-size:12.5px">· in the courtyard, Ebbingekwartier · 24:10 · <svg class="i s" style="vertical-align:-3px"><use href="#lock"/></svg> encrypted</span></div>
        <div class="seg"><div><svg class="i s"><use href="#grid"/></svg>Grid</div><div class="on"><svg class="i s"><use href="#cube"/></svg>Room</div></div>
      </div>
      <div class="face talk" style="left:47%;top:46%"><div class="v vid b"></div><div class="name">Sanne · talking</div><div class="tail"></div></div>
      <div class="face" style="left:69%;top:40%"><div class="v vid"></div><div class="name">Joris</div><div class="tail"></div></div>
      <div class="face" style="left:30%;top:44%"><div class="v vid d"></div><div class="name">Daan</div><div class="tail"></div></div>
      <div class="ring2" style="left:80%;top:44%;width:150px;height:70px"></div>
      <div class="face far" style="left:85%;top:47%"><div class="v vid c"></div><div class="name">Fatima</div><div class="tail" style="height:16px"></div></div>
      <div class="face far" style="left:93%;top:48%"><div class="v vid"></div><div class="name">Mei</div><div class="tail" style="height:16px"></div></div>
      <div class="chip float" style="left:76%;top:61%">side conversation · you hear them faintly</div>
      <div class="chip float" style="left:44%;top:74%"><svg class="i s"><use href="#walk"/></svg>You · WASD to walk, drag to look</div>
      <div class="float glass" style="left:50%;bottom:16px;transform:translateX(-50%);padding:9px 12px">
        <div class="callbar">
          <div class="cb on"><svg class="i"><use href="#mic"/></svg></div><div class="cb"><svg class="i"><use href="#video"/></svg></div>
          <div class="btn" style="background:var(--accent);color:var(--ink);font-weight:600"><svg class="i s"><use href="#eye"/></svg>Share my view</div>
          <div class="cb"><svg class="i"><use href="#screen"/></svg></div><div class="cb"><svg class="i"><use href="#hand"/></svg></div><div class="cb"><svg class="i"><use href="#pin"/></svg></div>
          <div class="cb end"><svg class="i"><use href="#x"/></svg></div>
        </div>
      </div>
    </div>
    <div class="pane" style="width:300px">
      <div class="ph">In the call <span>6</span></div>
      <div class="sec">
        <div class="it"><div class="av sm c1">S</div><span class="n" style="color:var(--cream)">Sanne</span><span class="pl">3 m</span><span class="live" style="margin-left:6px"></span></div>
        <div class="it"><div class="av sm c2">J</div><span class="n">Joris</span><span class="pl">6 m</span></div>
        <div class="it"><div class="av sm c6">D</div><span class="n">Daan</span><span class="pl">5 m</span></div>
        <div class="it"><div class="av sm c3">F</div><span class="n">Fatima</span><span class="pl">18 m · quieter</span></div>
        <div class="it"><div class="av sm c5">M</div><span class="n">Mei</span><span class="pl">19 m · quieter</span></div>
        <div class="it"><div class="av sm c7">L</div><span class="n">You</span></div>
      </div>
      <div class="sec" style="margin-top:6px"><h4>Hearing</h4>
        <div class="seg" style="margin:4px 8px"><div class="on">By distance</div><div>Everyone equally</div></div>
        <p style="color:var(--dim);font-size:12.5px;padding:8px 10px">By distance, people further away are quieter, so a group can split off and come back without starting a second call. Turn it off and it is an ordinary call.</p>
      </div>
      <div style="flex:1"></div>
      <div class="sec" style="border-top:1px solid var(--gline);padding:10px 8px"><h4>Call chat</h4>
        <div class="msg" style="padding:4px 8px"><div class="av xs c3">F</div><div class="body"><p style="font-size:13px">Mei and I are checking the bin store, back in 5</p></div></div>
      </div>
    </div>
  </div>
</div>
<div class="notes">
  <h2><span>C</span>A call is a room <span class="new">new</span></h2>
  <ul>
    <li>A call starts as the usual grid. <b>Room</b> moves it into the channel's place: everyone's avatar is there with their camera feed as a disc over its head.</li>
    <li><b>Distance is the volume knob.</b> Fatima and Mei walked to the bin store to look at something and are now a quiet side conversation, still in the same call. Walking back is rejoining. Every device mixes the sound itself from positions it already knows, so the server still forwards only sealed audio.</li>
    <li>Pick <b>Everyone equally</b> and it is an ordinary call again, in the same place.</li>
    <li>For people who never open World, the grid stays the grid:</li>
  </ul>
  <div class="mini">
    <div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding:8px">
      <div class="tile talk vid b" style="height:84px"><span class="nm">Sanne</span></div><div class="tile vid" style="height:84px"><span class="nm">Joris</span></div><div class="tile vid d" style="height:84px"><span class="nm">Daan</span></div>
      <div class="tile vid c" style="height:84px"><span class="nm">Fatima · away 18 m</span></div><div class="tile vid" style="height:84px"><span class="nm">Mei</span></div>
      <div class="tile" style="height:84px;background:url(meet.jpg) center/cover"><span class="nm"><svg class="i s"><use href="#cube"/></svg>Room</span></div>
    </div>
  </div>
  <ul><li>Grid view: the room is one more tile, a live look into the place, which opens Room when clicked.</li></ul>
</div>
</div>

<!-- ───────────────────────── D: share my view ───────────────────────── -->
<div class="screen">
<div class="browser">
  <div class="chrome"><div class="dots"><i></i><i></i><i></i></div><div class="url">cartopolis.org<b>/w/gemeente/grote-markt-east/call</b></div></div>
  <div class="app">
    <div class="rail">
      <img class="logo" src="../../../assets/icon/cartopolis.svg">
      <div class="ws c4">AN</div><div class="ws c2 on">GM</div><div class="sp"></div>
      <div class="av c7" style="width:38px;height:38px">L<span class="pr world" style="border-color:var(--ink)"></span></div>
    </div>
    <div class="main">
      <div class="world" style="background-image:url(station.jpg)"></div>
      <svg class="trail" viewBox="0 0 932 800" preserveAspectRatio="none"><path d="M120 720 C 220 640, 300 600, 380 520 S 520 400, 600 360" fill="none" stroke="#FE752F" stroke-width="4" stroke-dasharray="2 10" stroke-linecap="round"/></svg>
      <div class="float glass" style="left:14px;top:12px;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 10px;border-color:rgba(254,117,47,.6)">
        <div class="av c1 ring" style="width:30px;height:30px;font-size:12px;box-shadow:0 0 0 2px var(--accent)">S</div>
        <div><b style="color:var(--cream)">Following Sanne's view</b><div style="color:var(--dim);font-size:12px">her camera, her layers · drawn by your own viewer</div></div>
        <div class="btn ghost">Look around myself</div>
      </div>
      <div class="float" style="right:14px;top:12px;display:flex;gap:8px">
        <div class="tile talk vid b" style="width:112px;height:72px"><span class="nm" style="font-size:11px">Sanne</span></div>
        <div class="tile vid" style="width:112px;height:72px"><span class="nm" style="font-size:11px">Wethouder</span></div>
        <div class="tile vid c" style="width:112px;height:72px"><span class="nm" style="font-size:11px">Ahmed</span></div>
        <div class="tile" style="width:60px;height:72px;display:grid;place-items:center;color:var(--dim);font-size:13px">+5</div>
      </div>
      <div class="pin" style="left:255px;top:610px"><div class="lab"><span class="num">4</span>Bus stop, Ebbingestraat</div><div class="stem"></div><div class="dot"></div></div>
      <div class="ring2" style="left:585px;top:330px;width:60px;height:60px;border:3px solid var(--accent);border-style:solid;box-shadow:0 0 0 8px rgba(254,117,47,.25)"></div>
      <div class="bub" style="left:540px;top:262px">"this corner is where the crossing goes"</div>
      <div class="chip float" style="left:600px;top:400px"><span class="live"></span>Sanne is pointing here</div>
      <div class="float glass toast" style="left:14px;bottom:86px">
        <svg class="i" style="color:var(--accent)"><use href="#pin"/></svg>
        <div><b style="color:var(--cream)">Sanne posted point 4</b><div style="color:var(--dim);font-size:12.5px">to # grote-markt-east · Bus stop, Ebbingestraat</div></div>
      </div>
      <div class="float glass" style="left:50%;bottom:16px;transform:translateX(-50%);padding:9px 12px">
        <div class="callbar">
          <div class="cb"><svg class="i"><use href="#mic"/></svg></div><div class="cb"><svg class="i"><use href="#video"/></svg></div>
          <div class="seg"><div><svg class="i s"><use href="#grid"/></svg>Grid</div><div class="on"><svg class="i s"><use href="#cube"/></svg>Room</div></div>
          <div class="cb"><svg class="i"><use href="#hand"/></svg></div>
          <div class="cb end"><svg class="i"><use href="#x"/></svg></div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="notes">
  <h2><span>D</span>Share my view, not my screen <span class="new">new</span></h2>
  <ul>
    <li>Screen sharing a 3D city sends a blurry video of somebody else's monitor. <b>Share my view</b> sends only where the camera is and what it is aimed at, a few bytes per frame, and <b>every viewer draws the city itself</b>: full resolution, smooth on a weak connection, no lag on someone else's encoder.</li>
    <li><b>Look around myself</b> lets anyone leave the tour to look at something on their own. The banner then says <i>Back to Sanne</i>.</li>
    <li><b>Pointing</b>: the presenter's cursor shows up as a ring in everyone's view, so "this corner here" means the same corner for everyone.</li>
    <li>Points dropped during the tour are <b>posted to the channel</b>, so the call leaves a record in the channel: the route walked and the spots discussed.</li>
    <li>Here it is a guest workspace: the municipality's channel, with an alderman in it who never installed anything. A link opens the browser, the browser opens the place.</li>
    <li>The camera position travels inside the call's encryption, like the audio does.</li>
  </ul>
</div>
</div>

</body></html>