garage44.eu/jeroen/cartopolis

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

.. /docs/mockups/chat-world/v5.html

raw

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cartopolis chat — v5: the essence</title>
<link rel="stylesheet" href="style.css">
<style>
:root { --gps:#4FB2FF; --gpsbg:rgba(79,178,255,.16); }
body { width:1500px; }
.essence { font-size:30px; line-height:1.3; color:var(--cream); max-width:1250px; margin:18px 0 30px; letter-spacing:-.3px; }
.essence b { color:var(--brand); font-weight:inherit; }
.rules { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:44px; }
.rules div { background:var(--surface); border:1px solid var(--gline); border-radius:16px; padding:18px 20px; }
.rules h3 { color:var(--cream); font-size:17px; margin-bottom:6px; }
.rules h3 span { color:var(--brand); margin-right:6px; }
.rules p { color:var(--dim); font-size:14px; }
.rules i { color:var(--text); font-style:normal; }
.shot ul { font-size:14px; }

.gpsdot { position:absolute; z-index:3; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; }
.gpsdot .ring { width:46px; height:46px; border-radius:50%; background:var(--gpsbg); border:2px solid rgba(79,178,255,.6); display:grid; place-items:center; }
.gpsdot .core { width:18px; height:18px; border-radius:50%; background:var(--gps); border:3px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.4); }
.gpsdot .name { margin-top:2px; font-size:11.5px; color:#fff; background:rgba(10,14,16,.8); padding:1px 7px; border-radius:8px; white-space:nowrap; }
.gpsdot .name b { color:var(--gps); font-weight:inherit; }

/* a point: a message that is a place seen from somewhere */
.pt { align-self:flex-start; width:258px; background:var(--raised); border-radius:18px; border-bottom-left-radius:6px; overflow:hidden; }
.pt.me { align-self:flex-end; border-bottom-left-radius:18px; border-bottom-right-radius:6px; }
.pt .img { height:112px; background-size:cover; position:relative; }
.pt .n { position:absolute; left:8px; top:8px; width:24px; height:24px; border-radius:50%; background:var(--cream); color:var(--ink); font-size:13px; display:grid; place-items:center; }
.pt .meta { padding:8px 12px 10px; }
.pt .meta b { color:var(--cream); font-weight:inherit; display:block; font-size:14.5px; }
.pt .meta span { color:var(--dim); font-size:12px; }

/* pins for points on the World view */
.ppin { position:absolute; z-index:4; transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; }
.ppin .head { display:flex; align-items:center; gap:7px; background:var(--cream); color:var(--ink); border-radius:14px; padding:4px 10px 4px 4px; font-size:12.5px; box-shadow:0 6px 16px rgba(0,0,0,.35); max-width:210px; }
.ppin .head .n { width:22px; height:22px; border-radius:50%; background:var(--ink); color:var(--cream); display:grid; place-items:center; font-size:12px; flex:none; }
.ppin .stem { width:2px; height:16px; background:var(--cream); }
.ppin .dot { width:8px; height:8px; border-radius:50%; background:var(--cream); border:2px solid var(--ink); }

/* today's card, one button added */
.wcard { position:absolute; left:10px; right:10px; bottom:88px; z-index:6; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--gline); border-radius:20px; padding:12px 14px; }
.wcard .hd b { font-size:17px; color:var(--cream); font-weight:inherit; display:block; }
.wcard .hd span { font-size:12.5px; color:var(--dim); }
.facts { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px; }
.facts div { font-size:12px; padding:3px 9px; border-radius:9px; background:var(--raised); color:var(--text); }
.sendto { border-top:1px solid var(--gline); padding-top:10px; }
.sendto .lab { font-size:12px; color:var(--dim); margin-bottom:8px; display:flex; justify-content:space-between; }
.strip { display:flex; gap:12px; }
.strip div { text-align:center; font-size:11px; color:var(--dim); width:50px; }
.strip .av { margin:0 auto 4px; width:44px; height:44px; font-size:16px; }
.strip .sel .av { box-shadow:0 0 0 2px var(--ink), 0 0 0 4px var(--cream); }
.strip .sel { color:var(--cream); }
.glassbld { position:absolute; z-index:2; background:rgba(199,211,216,.28); border:2px solid rgba(243,247,249,.9); }
.disc { width:44px; height:44px; border-radius:50%; background:var(--glass); border:1px solid var(--gline); display:grid; place-items:center; color:var(--text); backdrop-filter:blur(10px); }
.dock { position:absolute; left:50%; transform:translateX(-50%); bottom:30px; z-index:6; display:flex; gap:10px; }
.topseg { position:absolute; top:52px; left:70px; right:70px; z-index:5; }
.seg.glass { background:var(--glass); backdrop-filter:blur(12px); }
.cut { margin-top:52px; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.cut div { background:var(--surface); border:1px solid var(--gline); border-radius:16px; padding:18px 20px; }
.cut h3 { color:var(--cream); font-size:16px; margin-bottom:8px; }
.cut li { color:var(--dim); font-size:14px; margin:0 0 5px 18px; }
.cut li b { color:var(--text); font-weight:inherit; }
</style>
</head>
<body>
<svg width="0" height="0" style="position:absolute">
  <symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4z"/></symbol>
  <symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></symbol>
  <symbol id="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol>
  <symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
  <symbol id="mic" viewBox="0 0 24 24"><rect x="9" y="3.5" width="6" height="11" rx="3"/><path d="M5.5 11a6.5 6.5 0 0013 0M12 17.5V21"/></symbol>
  <symbol id="plane" viewBox="0 0 24 24"><path d="M3 13l18-7-7 18-2.5-8.5z"/></symbol>
  <symbol id="menu" viewBox="0 0 24 24"><path d="M4 7h16M4 12h16M4 17h16"/></symbol>
  <symbol id="bookmark" viewBox="0 0 24 24"><path d="M6 4h12v17l-6-4-6 4z"/></symbol>
  <symbol id="phone" viewBox="0 0 24 24"><path d="M6 4h3l1.5 4-2 1.5a10 10 0 005 5l1.5-2 4 1.5v3a2 2 0 01-2 2A16 16 0 014 6a2 2 0 012-2z"/></symbol>
</svg>

<h1>Cartopolis chat — <b>v5: the essence</b></h1>
<p class="essence">A chat is a conversation about places. <b>Chat</b> shows what was said; <b>World</b> shows the same chat on the map: the people in it and the places they pointed at. One new kind of message makes it work: <b>a point</b>, a spot in the world seen from where the sender stood.</p>

<div class="rules">
  <div><h3><span>1</span>Every chat has two views</h3><p><i>Chat | World</i> in the header. Same messages, same text field. World isn't a separate map feature: it <i>is</i> the chat, laid out on the map.</p></div>
  <div><h3><span>2</span>You can point at the world</h3><p>Tap anything on the map and send it to a chat. It arrives as a picture of what you saw. Tap it and you're standing there. On the World view it's a numbered pin.</p></div>
  <div><h3><span>3</span>People show up where they are</h3><p>An <i>avatar</i> if they're in the world. Their <i>real location</i> only if they chose to share it with this chat, until a time they chose.</p></div>
</div>

<div class="row">

<!-- A. CHAT -->
<div class="shot">
<div class="phone">
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="thead">
    <svg class="i"><use href="#back"/></svg><div class="av sm c1 ring">S</div>
    <div class="who"><b>Sanne</b><span><span class="live"></span>in the world · Vismarkt</span></div>
    <svg class="i"><use href="#phone"/></svg>
  </div>
  <div class="tabs"><div class="seg"><div class="on"><svg class="i s"><use href="#chat"/></svg>Chat</div><div><span class="live"></span>World</div></div></div>
  <div class="msgs">
    <div class="m them">Where shall we have dinner Saturday?<small>17:58</small></div>
    <div class="pt me">
      <div class="img" style="background-image:url(city.jpg);background-position:30% 72%;background-size:560px auto"><div class="n">1</div></div>
      <div class="meta"><b>Stadsschouwburg</b><span>then the show after?</span></div>
    </div>
    <div class="pt">
      <div class="img" style="background-image:url(dusk.jpg);background-position:62% 60%;background-size:620px auto"><div class="n">2</div></div>
      <div class="meta"><b>Turfsingel 84</b><span>this café next door, 7 pm?</span></div>
    </div>
    <div class="m me">Perfect 👍<small>18:04</small></div>
  </div>
  <div class="composer"><div class="circ"><svg class="i"><use href="#plus"/></svg></div><div class="field">Message</div><div class="circ hot"><svg class="i"><use href="#mic"/></svg></div></div>
</div>
<h2><span>A</span>Chat</h2>
<ul>
  <li>An ordinary thread. Two of its messages are points: a place plus a picture of it, as the sender saw it.</li>
  <li>Tapping a point switches to World with the camera where the sender's was.</li>
</ul>
</div>

<!-- B. WORLD (same chat) -->
<div class="shot">
<div class="phone">
  <div class="world" style="background-image:url(dusk.jpg); background-position:50% 55%; background-size:auto 1200px;"></div>
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="float-top">
    <div class="thead"><svg class="i"><use href="#back"/></svg><div class="av sm c1 ring">S</div><div class="who"><b>Sanne</b><span><span class="live"></span>in the world · Vismarkt</span></div><svg class="i"><use href="#phone"/></svg></div>
    <div class="tabs"><div class="seg"><div><svg class="i s"><use href="#chat"/></svg>Chat</div><div class="on w"><span class="live"></span>World</div></div></div>
  </div>
  <div class="ppin" style="left:130px;top:330px"><div class="head"><div class="n">1</div>Stadsschouwburg</div><div class="stem"></div><div class="dot"></div></div>
  <div class="ppin" style="left:250px;top:392px"><div class="head"><div class="n">2</div>café, 7 pm?</div><div class="stem"></div><div class="dot"></div></div>
  <div class="bub" style="left:196px;top:470px">Perfect 👍</div>
  <div class="mk" style="left:230px;top:600px"><div class="av c1 ring">S</div><div class="stem o"></div><div class="foot"></div><div class="name">Sanne</div></div>
  <div class="gpsdot" style="left:140px;top:640px"><div class="ring"><div class="core"></div></div><div class="name">You <b>· shared with Sanne till 20:00</b></div></div>
  <div class="sheet">
    <div class="handle"></div>
    <div class="mini"><p><b>Sanne</b>this café next door, 7 pm?</p><p><b class="me">You</b>Perfect 👍</p></div>
    <div class="composer"><div class="circ"><svg class="i"><use href="#plus"/></svg></div><div class="field">Message</div><div class="circ hot"><svg class="i"><use href="#mic"/></svg></div></div>
  </div>
</div>
<h2><span>B</span>World: the same chat, on the map</h2>
<ul>
  <li>The points from the thread are numbered pins, the people are where they are, and new messages float over whoever said them.</li>
  <li>From here everything is today's app: fly around, tap a pin and <i>Go</i> for today's routing and driver mode.</li>
</ul>
</div>

<!-- C. POINT AT SOMETHING -->
<div class="shot">
<div class="phone">
  <div class="world" style="background-image:url(city.jpg); background-position:30% 72%; background-size:auto 1700px;"></div>
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="topseg"><div class="seg glass"><div><svg class="i s"><use href="#chat"/></svg>Chats</div><div class="on w"><span class="live"></span>World</div></div></div>
  <div class="glassbld" style="left:160px;top:250px;width:120px;height:92px;transform:skew(-14deg,-6deg);border-radius:4px"></div>
  <div class="wcard">
    <div class="hd"><b>Stadsschouwburg</b><span>Turfsingel 86 · 1883 · theatre · 350 m</span></div>
    <div class="facts"><div>Rijksmonument</div><div>4 storeys</div><div>2 addresses</div></div>
    <div class="sendto">
      <div class="lab"><span>Send to a chat</span><span>more…</span></div>
      <div class="strip">
        <div class="sel"><div class="av c1">S</div>Sanne</div>
        <div><div class="av c2">J</div>Joris</div>
        <div><div class="av c2 room">🚲</div>#fietsers</div>
        <div><div class="av c6 room">🏡</div>Family</div>
        <div><div class="av here-disc room" style="font-size:12px">here</div>Here</div>
      </div>
    </div>
  </div>
  <div class="dock">
    <div class="disc"><svg class="i"><use href="#search"/></svg></div>
    <div class="disc"><svg class="i"><use href="#plane"/></svg></div>
    <div class="disc"><svg class="i"><use href="#bookmark"/></svg></div>
    <div class="disc"><svg class="i"><use href="#chat"/></svg></div>
    <div class="disc"><svg class="i"><use href="#menu"/></svg></div>
  </div>
</div>
<h2><span>C</span>Pointing at something</h2>
<ul>
  <li>Today's building card, unchanged, plus one row: your recent chats. One tap sends the point.</li>
  <li>The same row goes on every card: a place, a search result, a route, a spot you long-pressed.</li>
</ul>
</div>

</div>

<div class="cut">
  <div><h3>Stays exactly as today</h3><ul>
    <li><b>The map viewer</b> (the World tab outside a chat), camera modes, layers, search, places.</li>
    <li><b>Routing and driver mode</b>, reached with Go from any point or card.</li>
    <li><b>Nearby chat, speech bubbles, voice, emotes, block and report.</b> Nearby chat becomes the "Here" chat in the list.</li>
    <li><b>Signed out:</b> the viewer as it is now; Chats only says it needs an account.</li>
  </ul></div>
  <div><h3>New, and nothing else</h3><ul>
    <li><b>Point</b>: one new message type (a place, a camera position, a picture).</li>
    <li><b>Chat | World</b> on every chat.</li>
    <li><b>Direct messages and stored history</b>, which a chat list needs anyway.</li>
    <li><b>Sharing real location with one chat, until a time.</b></li>
    <li style="margin-top:10px">Left for later, and only if the core works: looking together through a friend's camera, meet-ups, the ring of actions around avatars.</li>
  </ul></div>
</div>
</body>
</html>