git clone https://garage44.eu/jeroen/cartopolis.git.. /docs/mockups/mobile-header/v1.html
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>The web page's top bar on a phone — v1</title>
<style>
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; src: url('../../../assets/fonts/PlusJakartaSans-Regular.ttf'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600 700; src: url('../../../assets/fonts/PlusJakartaSans-SemiBold.ttf'); }
/* theme.css, light half */
:root {
--brand:#fd6012; --accent:#5cc6c0; --accent-text:#17696a; --accent-soft:#d9f0ee; --on-accent:#0f1416;
--bg:#f1f5f5; --surface:#fff; --sunken:#e7eded; --text:#1f2829; --strong:#0f1416; --dim:#546568; --faint:#84979a;
--border:#dae3e3; --warn:#855700; --warn-soft:#fbf1da;
}
* { box-sizing:border-box; }
body { margin:0; padding:28px; background:#cfd8d8; font-family:'Plus Jakarta Sans',system-ui,sans-serif; color:var(--text); display:flex; gap:28px; align-items:flex-start; }
.col { display:flex; flex-direction:column; gap:12px; align-items:center; }
.col h2 { margin:0; font-size:22px; font-weight:600; color:var(--strong); }
.col p { margin:0; width:390px; font-size:14px; color:var(--dim); line-height:1.4; text-align:center; min-height:40px; }
.phone { width:390px; height:844px; background:var(--bg); border-radius:28px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 20px 50px -20px rgba(0,0,0,.35); position:relative; }
.status { height:30px; flex:none; display:flex; justify-content:space-between; align-items:center; padding:0 26px; font-size:13px; font-weight:600; color:var(--strong); }
svg.i { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mark { width:28px; height:28px; flex:none; }
.av { width:32px; height:32px; border-radius:50%; background:#3f7f86; color:#fff; display:grid; place-items:center; font-weight:600; font-size:14px; flex:none; }
.badge { background:var(--brand); color:#fff; border-radius:9px; font-size:11px; font-weight:600; min-width:17px; height:17px; display:inline-grid; place-items:center; padding:0 5px; }
/* the content below every bar: Community's first screen */
.list { flex:1; padding:6px 12px; display:flex; flex-direction:column; gap:2px; }
.list h1 { font-size:22px; margin:8px 8px 10px; font-weight:600; color:var(--strong); }
.row { display:flex; gap:14px; align-items:center; padding:10px 8px; border-radius:12px; }
.row .t { flex:1; display:flex; flex-direction:column; }
.row b { font-weight:500; font-size:16px; color:var(--strong); }
.row small { color:var(--dim); font-size:13px; }
.tile { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--sunken); color:var(--dim); flex:none; font-weight:600; font-size:17px; }
.tile.g { background:#3d6f7a; color:#fff; } .tile.o { background:#3f7a52; color:#fff; }
/* ── now ── */
.now .bar { height:52px; flex:none; display:flex; align-items:center; gap:8px; padding:0 8px; background:var(--surface); border-bottom:1px solid var(--border); }
.now .tilemark { width:26px; height:26px; }
.now .seg { display:flex; gap:2px; padding:3px; background:var(--sunken); border:1px solid var(--border); border-radius:10px; }
.now .seg span { padding:5px 10px; border-radius:8px; font-size:13px; color:var(--dim); display:flex; gap:6px; align-items:center; }
.now .seg .on { background:var(--accent); color:var(--on-accent); font-weight:600; }
.now .seg .adm { color:var(--warn); }
.now .sp { flex:1; }
/* ── A: a title on top, the three places at the bottom ── */
.a .bar { height:56px; flex:none; display:flex; align-items:center; gap:12px; padding:0 16px; background:var(--bg); }
.a .bar .wm { font-size:19px; font-weight:600; color:var(--strong); letter-spacing:-.01em; flex:1; }
.a .bar .wm b { color:var(--brand); font-weight:600; }
.a .list h1 { display:none; }
.a .tabs { flex:none; height:76px; display:flex; background:var(--surface); border-top:1px solid var(--border); padding:6px 8px 18px; }
.a .tab { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:12px; font-weight:500; color:var(--dim); position:relative; }
.a .tab .pill { width:56px; height:30px; border-radius:15px; display:grid; place-items:center; }
.a .tab.on { color:var(--strong); font-weight:600; }
.a .tab.on .pill { background:var(--accent-soft); color:var(--accent-text); }
.a .tab .badge { position:absolute; top:-2px; left:calc(50% + 8px); }
/* ── B: one quiet bar, tabs underlined ── */
.b .bar { height:52px; flex:none; display:flex; align-items:stretch; gap:4px; padding:0 14px 0 14px; background:var(--surface); border-bottom:1px solid var(--border); }
.b .bar > .mark { align-self:center; margin-right:10px; }
.b .tab { display:flex; align-items:center; gap:6px; padding:0 10px; font-size:15px; font-weight:500; color:var(--dim); border-bottom:2.5px solid transparent; margin-bottom:-1px; }
.b .tab.on { color:var(--strong); font-weight:600; border-bottom-color:var(--accent); }
.b .sp { flex:1; }
.b .bar > .av { align-self:center; }
.b .list h1 { display:none; }
/* ── C: the place is the title, and opens the choice ── */
.c .bar { height:56px; flex:none; display:flex; align-items:center; gap:10px; padding:0 16px; background:var(--bg); }
.c .pick { display:flex; align-items:center; gap:4px; font-size:21px; font-weight:600; color:var(--strong); flex:1; }
.c .pick .badge { margin-left:6px; }
.c .list h1 { display:none; }
.c .sheet { position:absolute; left:12px; top:84px; width:240px; background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:0 18px 40px -12px rgba(15,20,22,.3); padding:6px; display:flex; flex-direction:column; }
.c .sheet div { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px; font-size:16px; color:var(--strong); }
.c .sheet div small { color:var(--dim); font-size:12px; display:block; }
.c .sheet .on { background:var(--accent-soft); }
.c .sheet svg { color:var(--accent-text); }
.c .dim { position:absolute; inset:86px 0 0 0; background:rgba(15,20,22,.18); }
</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="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="shield" viewBox="0 0 24 24"><path d="M12 3 5 6v5c0 4.5 3 8.5 7 10 4-1.5 7-5.5 7-10V6z"/></symbol>
<symbol id="cal" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="2"/><path d="M4 10h16M9 3v4M15 3v4"/></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="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
<symbol id="down" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></symbol>
</svg>
<template id="rows">
<div class="row"><span class="tile"><svg class="i"><use href="#chat"/></svg></span><span class="t"><b>Home</b><small>People and groups</small></span><span class="badge">1</span></div>
<div class="row"><span class="tile"><svg class="i"><use href="#cal"/></svg></span><span class="t"><b>Calendar</b><small>1 today</small></span></div>
<div class="row"><span class="tile g">G</span><span class="t"><b>Gorecht buurt</b><small>9 people</small></span></div>
<div class="row"><span class="tile o">O</span><span class="t"><b>oosterparkwijk</b><small>24 people</small></span></div>
<div class="row"><span class="tile"><svg class="i"><use href="#search"/></svg></span><span class="t"><b>Find a community</b></span></div>
<div class="row"><span class="tile"><svg class="i"><use href="#plus"/></svg></span><span class="t"><b>New</b></span></div>
</template>
<div class="col"><h2>Now</h2><p>Three boxes in a row: the logo's tile, a filled switch, Admin in gold.</p>
<div class="phone now"><div class="status"><span>9:41</span><span>●●● 5G</span></div>
<div class="bar"><img class="tilemark" src="../../../assets/icon/cartopolis-light.svg">
<div class="seg"><span class="on">Community <span class="badge" style="background:var(--strong)">1</span></span><span><span style="color:var(--brand)">●</span> World</span><span class="adm">Admin</span></div>
<span class="sp"></span><span class="av">V</span></div>
<div class="list"><h1>Community</h1></div></div></div>
<div class="col"><h2>A · tabs at the bottom</h2><p>Like a phone app: the name on top, the three places under your thumb. Gives the page the most room.</p>
<div class="phone a"><div class="status"><span>9:41</span><span>●●● 5G</span></div>
<div class="bar"><img class="mark" src="../../../assets/icon/cartopolis-light.svg"><span class="wm">carto<b>polis</b></span><span class="av">V</span></div>
<div class="list"><h1>Community</h1></div>
<div class="tabs">
<div class="tab on"><span class="pill"><svg class="i"><use href="#chat"/></svg></span>Community<span class="badge">1</span></div>
<div class="tab"><span class="pill"><svg class="i"><use href="#globe"/></svg></span>World</div>
<div class="tab"><span class="pill"><svg class="i"><use href="#shield"/></svg></span>Admin</div>
</div></div></div>
<div class="col"><h2>B · one quiet bar</h2><p>The same bar, calmer: no boxes, the place you are in underlined, every word in one colour.</p>
<div class="phone b"><div class="status"><span>9:41</span><span>●●● 5G</span></div>
<div class="bar"><img class="mark" src="../../../assets/icon/cartopolis-light.svg">
<span class="tab on">Community <span class="badge">1</span></span><span class="tab">World</span><span class="tab">Admin</span>
<span class="sp"></span><span class="av">V</span></div>
<div class="list"><h1>Community</h1></div></div></div>
<div class="col"><h2>C · the title chooses</h2><p>Only where you are, large; tap it to go to World or Admin (shown open).</p>
<div class="phone c"><div class="status"><span>9:41</span><span>●●● 5G</span></div>
<div class="bar"><img class="mark" src="../../../assets/icon/cartopolis-light.svg"><span class="pick">Community <svg class="i"><use href="#down"/></svg><span class="badge">1</span></span><span class="av">V</span></div>
<div class="list"><h1>Community</h1></div>
<div class="dim"></div>
<div class="sheet">
<div class="on"><svg class="i"><use href="#chat"/></svg><span>Community<small>Chats and groups</small></span></div>
<div><svg class="i"><use href="#globe"/></svg><span>World<small>The map in 3D</small></span></div>
<div><svg class="i"><use href="#shield"/></svg><span>Admin<small>Accounts, data, stats</small></span></div>
</div></div></div>
<script>
for (const l of document.querySelectorAll('.list')) l.append(document.getElementById('rows').content.cloneNode(true))
</script>
</body></html>