create-nimbo 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +119 -2
- package/install.js +6 -0
- package/package.json +41 -4
- package/tools/nimbo/install.js +462 -0
- package/tools/nimbo/template/.claude/skills/blueprint/SKILL.md +161 -0
- package/tools/nimbo/template/.claude/skills/discover/SKILL.md +71 -0
- package/tools/nimbo/template/.claude/skills/explain/SKILL.md +66 -0
- package/tools/nimbo/template/.claude/skills/feature/SKILL.md +124 -0
- package/tools/nimbo/template/.claude/skills/intake/SKILL.md +131 -0
- package/tools/nimbo/template/.claude/skills/integrate/SKILL.md +75 -0
- package/tools/nimbo/template/.claude/skills/reflect/SKILL.md +58 -0
- package/tools/nimbo/template/.claude/skills/release/SKILL.md +80 -0
- package/tools/nimbo/template/.claude/skills/roadmap/SKILL.md +166 -0
- package/tools/nimbo/template/.claude/skills/stack/SKILL.md +116 -0
- package/tools/nimbo/template/.workflow/dashboard/build.mjs +301 -0
- package/tools/nimbo/template/.workflow/dashboard/template.html +964 -0
- package/tools/nimbo/template/AGENTS.md.template +21 -0
- package/tools/nimbo/template/CLAUDE.md.template +143 -0
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="nl" data-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Dashboard</title>
|
|
7
|
+
<script>(function(){var t;try{t=localStorage.getItem("nimbo-theme")}catch(e){}if(!t)t=matchMedia("(prefers-color-scheme: light)").matches?"light":"dark";document.documentElement.setAttribute("data-theme",t)})();</script>
|
|
8
|
+
<style>
|
|
9
|
+
:root {
|
|
10
|
+
--bg: #0b0b0d;
|
|
11
|
+
--panel: #111113;
|
|
12
|
+
--panel-2: #17171a;
|
|
13
|
+
--text: #e9e7e3;
|
|
14
|
+
--muted: #8d8a85;
|
|
15
|
+
--faint: #4d4b48;
|
|
16
|
+
--hair: #232326;
|
|
17
|
+
--jij: #d9a273;
|
|
18
|
+
--ai: #8fa9dc;
|
|
19
|
+
--lit: #d8d6d2;
|
|
20
|
+
--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
21
|
+
--sans: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
|
|
22
|
+
--ease: cubic-bezier(.2,.7,.1,1);
|
|
23
|
+
color-scheme: dark;
|
|
24
|
+
}
|
|
25
|
+
* { box-sizing: border-box; }
|
|
26
|
+
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
|
|
27
|
+
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); overflow-x: hidden; }
|
|
28
|
+
body::before {
|
|
29
|
+
content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
|
|
30
|
+
background: radial-gradient(ellipse 46% 38% at 50% 50%, rgba(255,255,255,.055), rgba(255,255,255,.015) 55%, transparent 75%);
|
|
31
|
+
}
|
|
32
|
+
button { font: inherit; color: inherit; }
|
|
33
|
+
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; }
|
|
34
|
+
|
|
35
|
+
/* top + bottom chrome */
|
|
36
|
+
.top {
|
|
37
|
+
position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
|
|
38
|
+
padding: 26px clamp(16px, 4.5vw, 64px) 40px; background: linear-gradient(var(--bg) 45%, transparent);
|
|
39
|
+
}
|
|
40
|
+
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px var(--sans); letter-spacing: .32em; }
|
|
41
|
+
.brand .logo { width: 20px; height: 20px; color: var(--text); filter: drop-shadow(0 0 6px rgba(255,255,255,.18)); }
|
|
42
|
+
.brand .glyph-old { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, var(--text) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--text); }
|
|
43
|
+
.top .sep { color: var(--faint); }
|
|
44
|
+
.top .crumb { color: var(--muted); }
|
|
45
|
+
.info { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; font: 600 10px var(--mono); color: var(--muted); cursor: pointer; background: none; padding: 0; }
|
|
46
|
+
.info:hover { color: var(--text); border-color: var(--muted); }
|
|
47
|
+
.top .proj { margin-left: auto; color: var(--muted); font: 13.5px var(--mono); letter-spacing: .04em; text-align: right; }
|
|
48
|
+
@media (max-width: 720px) { .top .crumb, .top .sep { display: none; } }
|
|
49
|
+
|
|
50
|
+
.bar {
|
|
51
|
+
position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
|
|
52
|
+
padding: 0 clamp(16px, 4.5vw, 64px); background: linear-gradient(transparent, var(--bg) 38%);
|
|
53
|
+
}
|
|
54
|
+
.bar-in { border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 22px; padding: 20px 0 24px; flex-wrap: wrap; }
|
|
55
|
+
.live { display: flex; align-items: center; gap: 12px; color: var(--muted); white-space: nowrap; }
|
|
56
|
+
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(255,255,255,.6); }
|
|
57
|
+
.live b { color: var(--text); font-weight: 500; }
|
|
58
|
+
.say { color: var(--muted); font-size: 14px; flex: 1 1 260px; }
|
|
59
|
+
.say b { color: var(--text); font-weight: 500; }
|
|
60
|
+
.nav { display: flex; gap: 6px; margin-left: auto; }
|
|
61
|
+
.nav button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 10px; font: 15px var(--mono); }
|
|
62
|
+
.nav button:hover { color: var(--text); }
|
|
63
|
+
.nav .tourbtn { font: 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
|
|
64
|
+
|
|
65
|
+
/* timeline */
|
|
66
|
+
main { position: relative; z-index: 1; padding: 44vh clamp(16px, 4.5vw, 64px) 52vh; max-width: 1280px; margin: 0 auto; }
|
|
67
|
+
.heads, .row { display: grid; grid-template-columns: minmax(0,1fr) 132px 36px minmax(0,1fr); }
|
|
68
|
+
.heads { margin-bottom: 56px; }
|
|
69
|
+
.heads button { background: none; border: 0; cursor: pointer; color: var(--faint); padding: 0; transition: color .2s; }
|
|
70
|
+
.heads button:hover { color: var(--text); }
|
|
71
|
+
.heads .h-idee { text-align: right; padding-right: 28px; }
|
|
72
|
+
.heads .h-route { text-align: center; }
|
|
73
|
+
.heads .h-leren { text-align: left; padding-left: 0; }
|
|
74
|
+
#tl { position: relative; }
|
|
75
|
+
#ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
|
|
76
|
+
.row { position: relative; z-index: 1; min-height: 200px; padding: 30px 0 34px; }
|
|
77
|
+
.row.first { min-height: 150px; }
|
|
78
|
+
.row.future { min-height: 120px; padding-top: 10px; }
|
|
79
|
+
.cell { min-width: 0; }
|
|
80
|
+
.axis { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
|
|
81
|
+
.idee, .leren { align-self: center; }
|
|
82
|
+
.disc {
|
|
83
|
+
--d: 12px; width: var(--d); height: var(--d); border-radius: 50%; border: 0; padding: 0; cursor: pointer;
|
|
84
|
+
background: radial-gradient(circle at 34% 32%, #fff, var(--lit) 38%, #8e8c88 100%);
|
|
85
|
+
box-shadow: 0 0 0 0 transparent; transform: scale(var(--s, 1)); transition: transform .35s var(--ease), box-shadow .35s;
|
|
86
|
+
will-change: transform;
|
|
87
|
+
}
|
|
88
|
+
.row.future .disc { background: radial-gradient(circle at 35% 30%, #2a2a2d, #141416 70%); box-shadow: inset 0 0 0 1px #3a3a3e; }
|
|
89
|
+
.row.now .disc { --d: 30px; background: radial-gradient(circle at 34% 30%, #fff, #e4e2de 30%, #9a9893 85%, #6d6b67); box-shadow: 0 0 40px 6px rgba(255,255,255,.13), 0 0 0 9px rgba(255,255,255,.03); }
|
|
90
|
+
.row.feature .disc { --d: 16px; }
|
|
91
|
+
.row.feature.now .disc { --d: 30px; }
|
|
92
|
+
.hname { margin-top: 14px; color: var(--text); transition: opacity .3s; opacity: var(--o, 1); }
|
|
93
|
+
.hsub { margin-top: 3px; font: 12.5px var(--sans); color: var(--muted); opacity: var(--o, 1); transition: opacity .3s; }
|
|
94
|
+
.row.future .hname { color: var(--muted); }
|
|
95
|
+
.here { margin-top: 8px; color: var(--text); font: 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
|
|
96
|
+
|
|
97
|
+
.idee { padding-right: 28px; text-align: right; display: grid; align-content: start; gap: 14px; padding-top: 0; }
|
|
98
|
+
.leren { padding-left: 12px; display: grid; align-content: start; gap: 12px; }
|
|
99
|
+
.item { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; opacity: var(--o, 1); transition: opacity .3s; display: block; width: 100%; }
|
|
100
|
+
.idee .item { color: var(--text); font-size: 15px; line-height: 1.45; position: relative; }
|
|
101
|
+
.idee .item::after { content: ""; position: absolute; right: -19px; top: .5em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--jij); }
|
|
102
|
+
.idee .item.gone { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
|
|
103
|
+
.idee .item.gone::after { background: none; box-shadow: inset 0 0 0 1px var(--faint); }
|
|
104
|
+
.idee .item small { display: block; margin-top: 2px; }
|
|
105
|
+
.item small { font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
|
|
106
|
+
.leren .item { color: var(--text); }
|
|
107
|
+
.leren .goal { font: 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
|
|
108
|
+
.leren .goal span { color: var(--muted); }
|
|
109
|
+
.leren .q { font-size: 14px; color: var(--muted); padding-left: 14px; position: relative; }
|
|
110
|
+
.leren .q::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--muted); }
|
|
111
|
+
.step { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
|
|
112
|
+
.step i { display: block; width: 14px; background: var(--faint); border-radius: 1px; }
|
|
113
|
+
.step i.on { background: var(--text); }
|
|
114
|
+
.step i:nth-child(1) { height: 6px; } .step i:nth-child(2) { height: 12px; } .step i:nth-child(3) { height: 18px; }
|
|
115
|
+
.leren .stepline { display: flex; align-items: center; gap: 12px; }
|
|
116
|
+
.leren .dim { opacity: .45; }
|
|
117
|
+
|
|
118
|
+
@media (max-width: 760px) {
|
|
119
|
+
.heads { display: none; }
|
|
120
|
+
.row { grid-template-columns: 64px minmax(0,1fr); grid-template-areas: "axis idee" "axis leren"; row-gap: 12px; }
|
|
121
|
+
.row .axis { grid-area: axis; }
|
|
122
|
+
.row .idee { grid-area: idee; text-align: left; padding: 0 0 0 12px; }
|
|
123
|
+
.row .leren { grid-area: leren; padding-left: 12px; }
|
|
124
|
+
.row .tracks { display: none; }
|
|
125
|
+
.idee .item::after { right: auto; left: -14px; }
|
|
126
|
+
.idee .item { padding-left: 0; }
|
|
127
|
+
.hname { font-size: 9.5px; letter-spacing: .12em; }
|
|
128
|
+
.hsub { display: none; }
|
|
129
|
+
.axis .here { font-size: 9px; letter-spacing: .1em; }
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* overlay drawings */
|
|
133
|
+
.o-line { stroke: #3a3a3e; stroke-width: 1; }
|
|
134
|
+
.o-line.fut { stroke: #2a2a2d; stroke-dasharray: 2 5; }
|
|
135
|
+
.o-jij { stroke: var(--jij); fill: none; stroke-linecap: round; opacity: .85; }
|
|
136
|
+
.o-ai { stroke: var(--ai); fill: none; stroke-linecap: round; opacity: .85; }
|
|
137
|
+
.o-hit { stroke: transparent; stroke-width: 34; fill: none; pointer-events: stroke; cursor: pointer; }
|
|
138
|
+
.o-track { stroke: #6f6c67; stroke-width: 1.2; fill: none; }
|
|
139
|
+
.o-track.fut { stroke-dasharray: 3 4; stroke: #4d4b48; }
|
|
140
|
+
.o-end { fill: var(--bg); stroke: #8d8a85; stroke-width: 1.2; }
|
|
141
|
+
.o-end.ok { fill: #8d8a85; }
|
|
142
|
+
.o-lbl { font: 10px var(--mono); letter-spacing: .14em; fill: var(--muted); text-transform: uppercase; }
|
|
143
|
+
.o-lbl.ok { fill: var(--faint); }
|
|
144
|
+
.o-hit-track { stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
|
|
145
|
+
|
|
146
|
+
/* tour */
|
|
147
|
+
body[data-tour] [data-band] { transition: opacity .5s var(--ease); }
|
|
148
|
+
body[data-tour] [data-band]:not(.lit) { opacity: .07 !important; }
|
|
149
|
+
.tourcard {
|
|
150
|
+
position: fixed; z-index: 40; left: 50%; bottom: 116px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
|
|
151
|
+
width: min(440px, calc(100vw - 32px)); background: rgba(20,20,23,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
|
152
|
+
border: 1px solid var(--hair); border-radius: 14px; padding: 20px 22px; transition: opacity .4s var(--ease), transform .4s var(--ease);
|
|
153
|
+
}
|
|
154
|
+
body[data-tour] .tourcard { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
|
|
155
|
+
.tourcard .k { color: var(--muted); margin-bottom: 8px; }
|
|
156
|
+
.tourcard p { margin: 0 0 16px; font-size: 15.5px; }
|
|
157
|
+
.tourcard .act { display: flex; gap: 10px; align-items: center; }
|
|
158
|
+
.tourcard .dots { display: flex; gap: 6px; margin-right: auto; }
|
|
159
|
+
.tourcard .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
|
|
160
|
+
.tourcard .dots i.on { background: var(--text); }
|
|
161
|
+
.tourcard .off { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
|
|
162
|
+
.tourcard .off input { margin: 0; accent-color: var(--muted); cursor: pointer; }
|
|
163
|
+
.btn { background: none; border: 1px solid var(--hair); border-radius: 99px; padding: 7px 16px; cursor: pointer; color: var(--muted); font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
|
|
164
|
+
.btn:hover { color: var(--text); border-color: var(--faint); }
|
|
165
|
+
.btn.pri { color: var(--bg); background: var(--text); border-color: var(--text); }
|
|
166
|
+
|
|
167
|
+
/* drawer */
|
|
168
|
+
.drawer {
|
|
169
|
+
--w: min(560px, calc(100vw - 44px));
|
|
170
|
+
position: fixed; top: 0; bottom: 0; right: 0; z-index: 30; display: flex;
|
|
171
|
+
transform: translateX(var(--w)); transition: transform .55s var(--ease);
|
|
172
|
+
}
|
|
173
|
+
.drawer.open { transform: none; }
|
|
174
|
+
.tabs { width: 44px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
|
|
175
|
+
.tab {
|
|
176
|
+
writing-mode: vertical-rl; transform: rotate(180deg); background: rgba(17,17,19,.86); border: 1px solid var(--hair); border-right: 0;
|
|
177
|
+
border-radius: 0 10px 10px 0; padding: 16px 0; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 10px; width: 44px;
|
|
178
|
+
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .2s, background .2s;
|
|
179
|
+
}
|
|
180
|
+
.tab .mono { font-size: 10.5px; }
|
|
181
|
+
.tab::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--muted)); }
|
|
182
|
+
.tab:hover { color: var(--text); }
|
|
183
|
+
.tab[aria-selected="true"] { color: var(--text); background: var(--panel); }
|
|
184
|
+
.sheet { width: var(--w); background: var(--panel); border-left: 1px solid var(--hair); box-shadow: -30px 0 80px rgba(0,0,0,.55); overflow-y: auto; overscroll-behavior: contain; }
|
|
185
|
+
.sheet-in { padding: 34px clamp(20px, 4vw, 44px) 120px; }
|
|
186
|
+
.sh-top { display: flex; align-items: center; margin-bottom: 40px; }
|
|
187
|
+
.sh-top .mono { color: var(--muted); }
|
|
188
|
+
.x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
|
|
189
|
+
.x:hover { color: var(--text); border-color: var(--faint); }
|
|
190
|
+
.pane { display: none; animation: fade .5s var(--ease); }
|
|
191
|
+
.pane.on { display: block; }
|
|
192
|
+
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
193
|
+
.pane h2 { font: 300 clamp(28px, 4vw, 36px)/1.15 var(--sans); letter-spacing: -.015em; margin: 0 0 14px; }
|
|
194
|
+
.fact { font-size: 17px; color: var(--muted); margin: 0 0 40px; }
|
|
195
|
+
.fact b { color: var(--text); font-weight: 500; }
|
|
196
|
+
.sub { color: var(--muted); margin: 36px 0 16px; display: flex; align-items: center; gap: 14px; }
|
|
197
|
+
.sub::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
|
|
198
|
+
|
|
199
|
+
.flist { display: grid; }
|
|
200
|
+
.frow { display: grid; grid-template-columns: 22px 44px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); }
|
|
201
|
+
.frow:first-child { border-top: 0; }
|
|
202
|
+
.frow .m { width: 10px; height: 10px; border-radius: 50%; background: var(--lit); }
|
|
203
|
+
.frow .m.n { width: 14px; height: 14px; box-shadow: 0 0 14px rgba(255,255,255,.25); }
|
|
204
|
+
.frow .m.f { background: #19191c; box-shadow: inset 0 0 0 1px #3a3a3e; }
|
|
205
|
+
.frow .id { font: 12px var(--mono); color: var(--muted); }
|
|
206
|
+
.frow .t { font-size: 15px; }
|
|
207
|
+
.frow .r { font-size: 13px; color: var(--muted); }
|
|
208
|
+
.frow .s { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
|
|
209
|
+
|
|
210
|
+
.qgroup { margin-bottom: 18px; }
|
|
211
|
+
.qgroup .mono { color: var(--faint); font-size: 10px; margin-bottom: 8px; }
|
|
212
|
+
.qrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
|
|
213
|
+
.qrow span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
|
|
214
|
+
.qrow.ok { color: var(--muted); }
|
|
215
|
+
|
|
216
|
+
.tree { position: relative; padding-left: 26px; }
|
|
217
|
+
.tree::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--hair); }
|
|
218
|
+
.v { position: relative; margin-bottom: 22px; }
|
|
219
|
+
.v::before { content: ""; position: absolute; left: -24px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--jij); }
|
|
220
|
+
.v.gone { color: var(--faint); text-decoration: line-through; }
|
|
221
|
+
.v.gone::before { background: var(--bg); box-shadow: inset 0 0 0 1px var(--faint); }
|
|
222
|
+
.v.turn { color: var(--muted); font-size: 14px; font-style: italic; }
|
|
223
|
+
.v.turn::before { background: none; transform: none; width: 9px; height: 9px; left: -25px; border-radius: 50%; border: 1px solid var(--muted); }
|
|
224
|
+
.v .t { font-size: 16px; }
|
|
225
|
+
.v small { display: block; margin-top: 2px; font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-decoration: none; font-style: normal; }
|
|
226
|
+
|
|
227
|
+
.mx { display: grid; grid-template-columns: 82px repeat(4, minmax(0,1fr)); gap: 0; font-size: 13px; }
|
|
228
|
+
.mx > div { padding: 10px 4px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 40px; }
|
|
229
|
+
.mx > .hd { border-top: 0; color: var(--faint); font: 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; min-height: 0; }
|
|
230
|
+
.mx > .ph { color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
|
|
231
|
+
.dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--jij); transition: transform .15s; }
|
|
232
|
+
.dot:hover, .dot.sel { transform: scale(1.35); }
|
|
233
|
+
.dot.ai { background: var(--ai); }
|
|
234
|
+
.dot.hollow { background: transparent; box-shadow: inset 0 0 0 1.6px var(--ai); }
|
|
235
|
+
.dot.hollow.h { box-shadow: inset 0 0 0 1.6px var(--jij); }
|
|
236
|
+
.dot.dia { border-radius: 2px; transform: rotate(45deg) scale(.8); }
|
|
237
|
+
.dot.dia:hover, .dot.dia.sel { transform: rotate(45deg) scale(1.1); }
|
|
238
|
+
.dot.sq { border-radius: 2px; }
|
|
239
|
+
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; color: var(--muted); font-size: 12.5px; align-items: center; }
|
|
240
|
+
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
|
|
241
|
+
.goalline { display: grid; grid-template-columns: 82px minmax(0,1fr); font-size: 13px; color: var(--muted); padding: 6px 4px; }
|
|
242
|
+
.goalline .mono { font-size: 10px; letter-spacing: .12em; color: var(--faint); }
|
|
243
|
+
.entry { margin-top: 16px; min-height: 96px; padding: 16px 18px; border-radius: 12px; background: var(--panel-2); font-size: 14px; color: var(--muted); }
|
|
244
|
+
.entry b { color: var(--text); font-weight: 500; }
|
|
245
|
+
.entry .mono { font-size: 10px; margin-bottom: 6px; }
|
|
246
|
+
|
|
247
|
+
.stairs { display: flex; align-items: flex-end; gap: 8px; margin: 6px 0 10px; }
|
|
248
|
+
.stair { flex: 1; border-top: 1.5px solid var(--faint); padding-top: 10px; }
|
|
249
|
+
.stair:nth-child(1) { margin-bottom: 0; } .stair:nth-child(2) { margin-bottom: 26px; } .stair:nth-child(3) { margin-bottom: 52px; }
|
|
250
|
+
.stair .mono { font-size: 10.5px; color: var(--muted); }
|
|
251
|
+
.stair .w { font-size: 13px; color: var(--faint); margin-top: 2px; }
|
|
252
|
+
.stair.done { border-color: var(--muted); }
|
|
253
|
+
.stair.now { border-color: var(--text); }
|
|
254
|
+
.stair.now .mono { color: var(--text); }
|
|
255
|
+
.ex { display: grid; gap: 10px; }
|
|
256
|
+
.ex div { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 10px; font-size: 14.5px; }
|
|
257
|
+
.ex .mono { font-size: 10px; color: var(--faint); padding-top: 4px; }
|
|
258
|
+
.ex em { font-style: normal; color: var(--muted); }
|
|
259
|
+
code { font: 13px var(--mono); color: var(--text); background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
|
|
260
|
+
.goals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
|
|
261
|
+
.goals div { background: var(--panel); padding: 14px 16px; }
|
|
262
|
+
.goals .mono { font-size: 10px; color: var(--faint); }
|
|
263
|
+
.goals .val { font-size: 15px; margin-top: 2px; }
|
|
264
|
+
|
|
265
|
+
.duid { margin-top: 48px; padding: 24px 0 0; border-top: 1px solid var(--hair); }
|
|
266
|
+
.duid .lbl { color: var(--ai); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
|
|
267
|
+
.duid .lbl span { color: var(--faint); }
|
|
268
|
+
.duid p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; color: #cfccc7; }
|
|
269
|
+
.duid .ask { margin-top: 20px; padding-left: 16px; border-left: 1px solid var(--ai); color: var(--text); font-size: 16px; }
|
|
270
|
+
.duid .ask .mono { display: block; color: var(--faint); font-size: 10px; margin-bottom: 4px; }
|
|
271
|
+
.basis { margin-top: 18px; font: 10.5px var(--mono); letter-spacing: .1em; color: var(--faint); }
|
|
272
|
+
.basis b { color: var(--muted); font-weight: 400; }
|
|
273
|
+
|
|
274
|
+
:focus-visible { outline: 1px solid var(--muted); outline-offset: 3px; }
|
|
275
|
+
|
|
276
|
+
.duid.solo { margin-top: 8px; border-top: 0; padding-top: 0; }
|
|
277
|
+
.duid.solo p { font-size: 17px; }
|
|
278
|
+
.qdots { display: inline-flex; gap: 5px; margin-left: 12px; }
|
|
279
|
+
.qdots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--muted); display: block; }
|
|
280
|
+
.goalw { font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
|
|
281
|
+
.row.sel .disc { outline: 1px solid var(--muted); outline-offset: 7px; }
|
|
282
|
+
.st { font-size: 10px; color: var(--faint); margin-left: 6px; white-space: nowrap; }
|
|
283
|
+
.st.now { color: var(--text); }
|
|
284
|
+
.hgrid { display: grid; grid-template-columns: 112px minmax(0,1fr); border-top: 1px solid var(--hair); }
|
|
285
|
+
.hk, .hv { padding: 16px 0; border-bottom: 1px solid var(--hair); }
|
|
286
|
+
.hk { font-size: 10px; color: var(--faint); padding-top: 19px; }
|
|
287
|
+
.hv { font-size: 15.5px; }
|
|
288
|
+
.hv .bl + .bl { margin-top: 8px; }
|
|
289
|
+
.hdots { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
|
|
290
|
+
.hentry { font-size: 14px; color: var(--muted); margin-top: 10px; }
|
|
291
|
+
.hentry:empty { display: none; }
|
|
292
|
+
.hentry b { color: var(--text); font-weight: 500; }
|
|
293
|
+
.hnav { display: flex; justify-content: space-between; margin-top: 28px; }
|
|
294
|
+
.hnav button { background: none; border: 1px solid var(--hair); border-radius: 99px; padding: 7px 16px; cursor: pointer; color: var(--muted); font: 11px var(--mono); letter-spacing: .16em; }
|
|
295
|
+
.hnav button:hover { color: var(--text); border-color: var(--faint); }
|
|
296
|
+
.idee .item { font-size: 14px; color: var(--muted); }
|
|
297
|
+
|
|
298
|
+
.idee .item.idea { display: block; color: var(--text); font-size: 14.5px; line-height: 1.4; }
|
|
299
|
+
.idee .item.idea small { display: block; margin: 0 0 3px; color: var(--faint); }
|
|
300
|
+
.idee .item.idea.startidee small { color: var(--jij); }
|
|
301
|
+
.idee .item.idea.startidee { font-size: 15.5px; }
|
|
302
|
+
.hv .soort { font-size: 10px; color: var(--jij); }
|
|
303
|
+
.hv .why { margin-top: 6px; font-size: 14px; color: var(--muted); }
|
|
304
|
+
|
|
305
|
+
/* ---- v4: cards ---- */
|
|
306
|
+
.idee, .leren { align-self: end; padding-bottom: 44px; gap: 10px; }
|
|
307
|
+
.idee { justify-items: end; padding-right: 34px; }
|
|
308
|
+
.leren { justify-items: start; padding-left: 0; }
|
|
309
|
+
.ci {
|
|
310
|
+
width: 252px; text-align: left; cursor: pointer; display: block; color: var(--text);
|
|
311
|
+
border: 1px solid var(--hair); border-radius: 10px; padding: 10px 13px 11px;
|
|
312
|
+
background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
|
|
313
|
+
opacity: var(--o, 1); transition: opacity .3s, border-color .2s, background .2s;
|
|
314
|
+
hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
|
|
315
|
+
}
|
|
316
|
+
.ci:hover, .ci:focus-visible { border-color: #3a3a3e; background: rgba(255,255,255,.04); outline: none; }
|
|
317
|
+
.ci .lab { display: flex; align-items: center; gap: 8px; font: 9.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
|
|
318
|
+
.ci .lab .g { width: 10px; text-align: center; color: var(--jij); letter-spacing: 0; font-size: 10px; }
|
|
319
|
+
.ci .tx { display: block; font-size: 13px; line-height: 1.45; color: #d6d3ce; }
|
|
320
|
+
.ci.startidee { border-color: rgba(217,162,115,.32); }
|
|
321
|
+
.ci.startidee .lab { color: var(--jij); }
|
|
322
|
+
.ci.startidee .tx { color: var(--text); }
|
|
323
|
+
.ci.lc .lab .g { color: var(--muted); }
|
|
324
|
+
.ci.lc .step { height: 11px; gap: 2px; }
|
|
325
|
+
.ci.lc .step i { width: 6px; }
|
|
326
|
+
.ci.lc .step i:nth-child(1) { height: 4px; } .ci.lc .step i:nth-child(2) { height: 7px; } .ci.lc .step i:nth-child(3) { height: 11px; }
|
|
327
|
+
.ci .qdots { margin-left: auto; gap: 4px; }
|
|
328
|
+
.ci .qdots i { width: 5px; height: 5px; }
|
|
329
|
+
.o-conn { stroke: #2a2a2e; stroke-width: 1; }
|
|
330
|
+
.o-cdot { fill: #4d4b48; }
|
|
331
|
+
.row.future .ci { opacity: .5; }
|
|
332
|
+
@media (max-width: 760px) {
|
|
333
|
+
.idee, .leren { align-self: start; padding: 0 0 0 12px; justify-items: stretch; }
|
|
334
|
+
.ci { width: 100%; }
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* ---- v5: panel in main-screen style ---- */
|
|
338
|
+
.sheet-in { padding-top: 30px; }
|
|
339
|
+
.sh-top { margin-bottom: 30px; }
|
|
340
|
+
.ph-t { display: flex; align-items: center; gap: 14px; }
|
|
341
|
+
.ph-t h3 { margin: 0; font: 400 24px/1.25 var(--sans); letter-spacing: -.01em; }
|
|
342
|
+
.pdisc { width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle at 34% 32%, #fff, var(--lit) 38%, #8e8c88); }
|
|
343
|
+
.pdisc.now { width: 18px; height: 18px; box-shadow: 0 0 18px 3px rgba(255,255,255,.16); }
|
|
344
|
+
.pdisc.future { background: radial-gradient(circle at 35% 30%, #2a2a2d, #141416 70%); box-shadow: inset 0 0 0 1px #3a3a3e; }
|
|
345
|
+
.pill { margin-left: auto; font-size: 9.5px; letter-spacing: .2em; padding: 4px 10px; border: 1px solid var(--hair); border-radius: 99px; color: var(--muted); }
|
|
346
|
+
.pill.now { color: var(--text); border-color: #3a3a3e; }
|
|
347
|
+
.ph-wat { margin: 12px 0 26px 28px; font-size: 15px; color: var(--muted); line-height: 1.55; }
|
|
348
|
+
.pcs { display: grid; gap: 10px; margin-left: 28px; position: relative; }
|
|
349
|
+
.pcs::before { content: ""; position: absolute; left: -21px; top: -14px; bottom: 6px; width: 1px; background: linear-gradient(var(--hair), transparent); }
|
|
350
|
+
.pc { border: 1px solid var(--hair); border-radius: 10px; padding: 12px 15px 13px; background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008)); hyphens: auto; -webkit-hyphens: auto; }
|
|
351
|
+
.pc .lab { display: flex; align-items: center; gap: 8px; font: 9.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
|
|
352
|
+
.pc .lab .g { width: 10px; text-align: center; letter-spacing: 0; font-size: 10px; color: var(--muted); }
|
|
353
|
+
.pc .tx { font-size: 14px; line-height: 1.5; color: #d6d3ce; }
|
|
354
|
+
.pc .tx.li + .tx.li { margin-top: 6px; }
|
|
355
|
+
.pc .tx.ring { padding-left: 14px; position: relative; }
|
|
356
|
+
.pc .tx.ring::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--muted); }
|
|
357
|
+
.pc .why { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
|
|
358
|
+
.pc.idea.startidee { border-color: rgba(217,162,115,.32); }
|
|
359
|
+
.pc.idea .lab { color: var(--muted); }
|
|
360
|
+
.pc.idea.startidee .lab { color: var(--jij); }
|
|
361
|
+
.pc .step { height: 11px; gap: 2px; }
|
|
362
|
+
.pc .step i { width: 6px; }
|
|
363
|
+
.pc .step i:nth-child(1) { height: 4px; } .pc .step i:nth-child(2) { height: 7px; } .pc .step i:nth-child(3) { height: 11px; }
|
|
364
|
+
.qk { display: block; margin-bottom: 6px; font-size: 9.5px; letter-spacing: .16em; color: var(--faint); }
|
|
365
|
+
.qg + .qg { margin-top: 14px; }
|
|
366
|
+
.g-braid { display: inline-block; width: 6px !important; height: 6px; border-radius: 50%; background: var(--jij); box-shadow: 4px 0 0 var(--ai); margin-right: 4px; }
|
|
367
|
+
.g-route { display: inline-block; width: 7px !important; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9a9893); }
|
|
368
|
+
.mbraid { width: 100%; height: 26px; display: block; margin: 2px 0 4px; }
|
|
369
|
+
.mb-leg { display: flex; gap: 14px; font-size: 9.5px; letter-spacing: .16em; margin-bottom: 10px; }
|
|
370
|
+
.srs { border-top: 1px solid var(--hair); }
|
|
371
|
+
.sr { width: 100%; display: grid; grid-template-columns: 12px 30px minmax(0,1fr) auto 12px; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--hair); padding: 9px 0; cursor: pointer; text-align: left; color: var(--text); }
|
|
372
|
+
.sr:hover .so, .sr[aria-expanded="true"] .so { color: var(--text); }
|
|
373
|
+
.sd { width: 8px; height: 8px; border-radius: 50%; background: var(--jij); justify-self: center; }
|
|
374
|
+
.sd.ai { background: var(--ai); }
|
|
375
|
+
.sd.hollow { background: transparent; box-shadow: inset 0 0 0 1.4px var(--ai); }
|
|
376
|
+
.sd.hollow.sq.h { box-shadow: inset 0 0 0 1.4px var(--jij); }
|
|
377
|
+
.sd.sq { border-radius: 2px; }
|
|
378
|
+
.sd.dia { border-radius: 1px; transform: rotate(45deg) scale(.85); }
|
|
379
|
+
.sw { font-size: 9.5px; letter-spacing: .14em; }
|
|
380
|
+
.sw.h { color: var(--jij); } .sw.ai { color: var(--ai); }
|
|
381
|
+
.so { font-size: 13.5px; color: #c9c6c1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
382
|
+
.sty { font-size: 9px; letter-spacing: .14em; color: var(--faint); }
|
|
383
|
+
.chev { color: var(--faint); transition: transform .2s; font-size: 14px; }
|
|
384
|
+
.sr[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--text); }
|
|
385
|
+
.sx { padding: 8px 0 12px 50px; font-size: 13px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--hair); }
|
|
386
|
+
.ph-empty { color: var(--muted); font-size: 14px; }
|
|
387
|
+
.hnav { margin-left: 28px; }
|
|
388
|
+
.ph-intro { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 6px; }
|
|
389
|
+
.ph-basis { font-size: 9.5px; color: var(--faint); letter-spacing: .16em; margin-bottom: 22px; }
|
|
390
|
+
.dcard { margin-bottom: 12px; padding: 16px 18px 18px; }
|
|
391
|
+
.dcard h4 { margin: 0 0 10px; font: 400 18px/1.3 var(--sans); }
|
|
392
|
+
.dcard p { font-size: 14.5px; line-height: 1.6; color: #cfccc7; margin: 0 0 10px; }
|
|
393
|
+
.dcard .ask { margin-top: 14px; padding-left: 14px; border-left: 1px solid var(--ai); font-size: 14.5px; }
|
|
394
|
+
.dcard .ask .mono { display: block; color: var(--faint); font-size: 9.5px; margin-bottom: 3px; }
|
|
395
|
+
.dcard .ask.mine { border-left-color: var(--jij); }
|
|
396
|
+
.dcard .basis { margin-top: 14px; font: 9.5px var(--mono); letter-spacing: .1em; color: var(--faint); }
|
|
397
|
+
.dcard .basis b { color: var(--muted); font-weight: 400; }
|
|
398
|
+
.tabs { gap: 0; }
|
|
399
|
+
|
|
400
|
+
/* ---- v6: quiet footer, tour includes the Duiding panel ---- */
|
|
401
|
+
.tourfab { position: fixed; right: clamp(16px, 4.5vw, 64px); bottom: 26px; z-index: 20; background: none; border: 1px solid var(--hair); border-radius: 99px; padding: 8px 16px; color: var(--muted); cursor: pointer; font-size: 10.5px; letter-spacing: .2em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .2s, border-color .2s; }
|
|
402
|
+
.tourfab:hover { color: var(--text); border-color: var(--faint); }
|
|
403
|
+
body[data-tour] .tourfab { opacity: 0; pointer-events: none; }
|
|
404
|
+
.tourcard { bottom: 34px; }
|
|
405
|
+
body[data-tour="duiding"] .tourcard { left: calc((100vw - min(560px, 100vw - 44px) - 44px) / 2); }
|
|
406
|
+
body[data-tour="duiding"] .drawer .tab { color: var(--text); background: var(--panel); }
|
|
407
|
+
@media (max-width: 760px) { body[data-tour="duiding"] .tourcard { left: 50%; } }
|
|
408
|
+
|
|
409
|
+
/* ---- v7: project title on the axis ---- */
|
|
410
|
+
.ptitle { display: grid; grid-template-columns: minmax(0,1fr) 132px 36px minmax(0,1fr); margin: 0 0 46px; }
|
|
411
|
+
.pt-in { grid-column: 2; justify-self: center; text-align: center; white-space: nowrap; }
|
|
412
|
+
.pt-name { font: 300 30px/1.1 var(--sans); letter-spacing: -.01em; color: var(--text); }
|
|
413
|
+
.pt-date { margin-top: 10px; font-size: 10px; letter-spacing: .24em; color: var(--muted); }
|
|
414
|
+
@media (max-width: 760px) { .ptitle { display: block; text-align: center; } .pt-name { font-size: 24px; } }
|
|
415
|
+
|
|
416
|
+
/* ---- v7: theme toggle ---- */
|
|
417
|
+
.theme { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: 99px; }
|
|
418
|
+
.theme button { width: 28px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 99px; background: none; color: var(--faint); cursor: pointer; padding: 0; transition: color .2s, background .2s; }
|
|
419
|
+
.theme button svg { width: 14px; height: 14px; }
|
|
420
|
+
.theme button:hover { color: var(--text); }
|
|
421
|
+
.theme button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); }
|
|
422
|
+
html, body, .sheet, .ci, .pc, .tab { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
|
|
423
|
+
|
|
424
|
+
/* ---- v7: light theme ---- */
|
|
425
|
+
:root[data-theme="light"] {
|
|
426
|
+
--bg: #f2f0eb; --panel: #faf9f6; --panel-2: #ebe8e1; --text: #1e1d1b; --muted: #6e6961; --faint: #aaa49a; --hair: #dfdad1;
|
|
427
|
+
--jij: #b4652d; --ai: #4569ad; --lit: #3a3936; color-scheme: light;
|
|
428
|
+
}
|
|
429
|
+
[data-theme="light"] body::before { background: radial-gradient(ellipse 46% 38% at 50% 50%, rgba(255,255,255,.75), rgba(255,255,255,.25) 55%, transparent 75%); }
|
|
430
|
+
[data-theme="light"] .disc { background: radial-gradient(circle at 34% 30%, #8a8780, #45433f 55%, #1f1e1c); }
|
|
431
|
+
[data-theme="light"] .row.now .disc { background: radial-gradient(circle at 34% 30%, #8f8b84, #3d3b37 55%, #181716); box-shadow: 0 8px 26px rgba(30,25,15,.22), 0 0 0 9px rgba(30,25,15,.04); }
|
|
432
|
+
[data-theme="light"] .row.future .disc { background: var(--bg); box-shadow: inset 0 0 0 1px #c6c0b5; }
|
|
433
|
+
[data-theme="light"] .o-line { stroke: #cfc9bf; }
|
|
434
|
+
[data-theme="light"] .o-line.fut { stroke: #d8d3ca; }
|
|
435
|
+
[data-theme="light"] .o-track { stroke: #a39d93; }
|
|
436
|
+
[data-theme="light"] .o-track.fut { stroke: #c6c0b5; }
|
|
437
|
+
[data-theme="light"] .o-end { stroke: #8f897f; }
|
|
438
|
+
[data-theme="light"] .o-end.ok { fill: #8f897f; }
|
|
439
|
+
[data-theme="light"] .o-conn { stroke: #e2ddd4; }
|
|
440
|
+
[data-theme="light"] .o-cdot { fill: #bdb7ac; }
|
|
441
|
+
[data-theme="light"] .ci, [data-theme="light"] .pc { background: rgba(255,255,255,.62); }
|
|
442
|
+
[data-theme="light"] .ci:hover { background: #fff; border-color: #cdc7bc; }
|
|
443
|
+
[data-theme="light"] .ci .tx, [data-theme="light"] .pc .tx { color: #3a3834; }
|
|
444
|
+
[data-theme="light"] .dcard p, [data-theme="light"] .so { color: #3f3d39; }
|
|
445
|
+
[data-theme="light"] .ci.startidee, [data-theme="light"] .pc.idea.startidee { border-color: rgba(180,101,45,.35); }
|
|
446
|
+
[data-theme="light"] .tab { background: rgba(250,249,246,.9); }
|
|
447
|
+
[data-theme="light"] .tab[aria-selected="true"] { background: var(--panel); }
|
|
448
|
+
[data-theme="light"] .sheet { box-shadow: -30px 0 80px rgba(40,30,10,.12); }
|
|
449
|
+
[data-theme="light"] .tourcard { background: rgba(255,255,255,.94); }
|
|
450
|
+
[data-theme="light"] .pdisc { background: radial-gradient(circle at 34% 30%, #8a8780, #3a3936 60%); }
|
|
451
|
+
[data-theme="light"] .pdisc.now { box-shadow: 0 4px 14px rgba(30,25,15,.22); }
|
|
452
|
+
[data-theme="light"] .pdisc.future { background: var(--bg); box-shadow: inset 0 0 0 1px #c6c0b5; }
|
|
453
|
+
[data-theme="light"] .g-route { background: radial-gradient(circle at 35% 30%, #8a8780, #2a2927); }
|
|
454
|
+
[data-theme="light"] .mbraid line { stroke: var(--hair); }
|
|
455
|
+
[data-theme="light"] .brand .logo { filter: none; }
|
|
456
|
+
[data-theme="light"] #lg stop:nth-child(1) { stop-color: #8f8b84; }
|
|
457
|
+
[data-theme="light"] #lg stop:nth-child(2) { stop-color: #45433f; }
|
|
458
|
+
[data-theme="light"] #lg stop:nth-child(3) { stop-color: #1f1e1c; }
|
|
459
|
+
[data-theme="light"] .here { color: var(--text); }
|
|
460
|
+
|
|
461
|
+
/* ---- v8: one type scale for main and panel ---- */
|
|
462
|
+
.ph-t h3 { font: 500 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
|
|
463
|
+
.ph-t { gap: 12px; }
|
|
464
|
+
.ph-sub { margin: 4px 0 0 28px; font-size: 12.5px; color: var(--muted); }
|
|
465
|
+
.ph-wat { margin: 14px 0 22px 28px; font-size: 13px; line-height: 1.45; }
|
|
466
|
+
.pc .tx, .ph-empty { font-size: 13px; line-height: 1.45; }
|
|
467
|
+
.pc .why, .sx { font-size: 12.5px; }
|
|
468
|
+
.so { font-size: 13px; }
|
|
469
|
+
.ph-intro { font-size: 13px; line-height: 1.45; }
|
|
470
|
+
.dcard h4 { font: 500 13px/1.45 var(--sans); margin: 0 0 8px; color: var(--text); }
|
|
471
|
+
.dcard p { font-size: 13px; line-height: 1.55; }
|
|
472
|
+
.dcard .ask { font-size: 13px; }
|
|
473
|
+
.duid.solo p { font-size: 13px; }
|
|
474
|
+
|
|
475
|
+
/* ---- v8: roadmap ---- */
|
|
476
|
+
.rmbtn { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 11px; border: 1px solid var(--hair); border-radius: 99px; background: none; color: var(--muted); cursor: pointer; font-size: 10px; letter-spacing: .2em; transition: color .2s, border-color .2s; }
|
|
477
|
+
.rmbtn svg { width: 14px; height: 14px; }
|
|
478
|
+
.rmbtn:hover { color: var(--text); border-color: var(--faint); }
|
|
479
|
+
.rmbtn + .theme { margin-left: 10px; }
|
|
480
|
+
.rm { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; overflow-y: auto; padding: 0 16px;
|
|
481
|
+
background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
|
|
482
|
+
opacity: 0; transition: opacity .3s var(--ease); }
|
|
483
|
+
.rm.on { opacity: 1; }
|
|
484
|
+
.rm[hidden] { display: none; }
|
|
485
|
+
.rm-in { width: min(1040px, 100%); padding: 30px 0 80px; transform: translateY(10px); transition: transform .4s var(--ease); }
|
|
486
|
+
.rm.on .rm-in { transform: none; }
|
|
487
|
+
.rm-top { display: flex; align-items: center; }
|
|
488
|
+
.rm-top .mono { color: var(--muted); }
|
|
489
|
+
.rm-title { margin: 52px 0 46px; text-align: center; font: 300 30px/1.1 var(--sans); letter-spacing: -.01em; }
|
|
490
|
+
.rm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
|
|
491
|
+
@media (max-width: 760px) { .rm-cols { grid-template-columns: minmax(0,1fr); } }
|
|
492
|
+
.rm-col { display: grid; align-content: start; gap: 10px; }
|
|
493
|
+
.rm-h { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .2em; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
|
|
494
|
+
.rm-h .pdisc { width: 10px; height: 10px; }
|
|
495
|
+
.rm-h .pdisc.now { width: 12px; height: 12px; }
|
|
496
|
+
.rm-n { margin-left: auto; color: var(--faint); }
|
|
497
|
+
.rm-card { width: 100%; cursor: default; }
|
|
498
|
+
.rm-card .rm-name { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
|
|
499
|
+
.rm-card .tx { font-size: 12.5px; color: var(--muted); }
|
|
500
|
+
.rm-card.now { border-color: #3a3a3e; }
|
|
501
|
+
.rm-card.future { opacity: .7; }
|
|
502
|
+
.rm-empty { font-size: 13px; color: var(--faint); padding: 10px 0; }
|
|
503
|
+
[data-theme="light"] .rm-card.now { border-color: #cdc7bc; }
|
|
504
|
+
|
|
505
|
+
/* ---- v9: roadmap as one line to release ---- */
|
|
506
|
+
.rm-title { margin: 52px 0 10px; }
|
|
507
|
+
.rm-sub { text-align: center; color: var(--faint); font-size: 10px; letter-spacing: .2em; margin-bottom: 64px; }
|
|
508
|
+
.rl { display: flex; align-items: stretch; }
|
|
509
|
+
.rz { flex: var(--n) 1 0; min-width: 0; }
|
|
510
|
+
.rz-h { color: var(--muted); font-size: 10px; letter-spacing: .2em; padding: 0 0 12px 2px; margin: 0 14px 0 0; border-bottom: 1px solid var(--hair); }
|
|
511
|
+
.rz.now .rz-h { color: var(--text); }
|
|
512
|
+
.rz-i { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
|
|
513
|
+
.rs { min-width: 0; }
|
|
514
|
+
.rs-track { position: relative; height: 64px; display: flex; align-items: center; }
|
|
515
|
+
.rs-track::before, .rs-track::after { content: ""; position: absolute; top: 50%; height: 0; border-top: 1px solid var(--muted); }
|
|
516
|
+
.rs-track::before { left: 0; width: 9px; }
|
|
517
|
+
.rs-track::after { left: 9px; right: 0; }
|
|
518
|
+
.rs.first .rs-track::before { border-top-color: transparent; }
|
|
519
|
+
.rs.now .rs-track::after, .rs.future .rs-track::before, .rs.future .rs-track::after { border-top: 1px dashed var(--faint); }
|
|
520
|
+
.rs.rel .rs-track::after { display: none; }
|
|
521
|
+
.rs-track .pdisc { position: relative; z-index: 1; }
|
|
522
|
+
.rs-track .pdisc.now { margin-left: -2px; }
|
|
523
|
+
.rs-ring { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--faint); background: var(--bg); }
|
|
524
|
+
.rs-t { padding: 6px 18px 0 0; }
|
|
525
|
+
.rs-t .lab { display: block; font: 9.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
|
|
526
|
+
.rs.now .rs-t .lab { color: var(--text); }
|
|
527
|
+
.rs-t .rm-name { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
|
|
528
|
+
.rs-t .tx { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); hyphens: auto; -webkit-hyphens: auto; }
|
|
529
|
+
.rs.future .rs-t { opacity: .62; }
|
|
530
|
+
.rs-here { display: inline-block; margin-top: 12px; font-size: 9.5px; letter-spacing: .2em; color: var(--text); padding: 4px 9px; border: 1px solid var(--hair); border-radius: 99px; }
|
|
531
|
+
@media (max-width: 760px) {
|
|
532
|
+
.rm-sub { margin-bottom: 36px; }
|
|
533
|
+
.rl { flex-direction: column; gap: 8px; }
|
|
534
|
+
.rz-h { margin: 0 0 4px; }
|
|
535
|
+
.rz-i { grid-template-columns: minmax(0,1fr); }
|
|
536
|
+
.rs { display: grid; grid-template-columns: 34px minmax(0,1fr); }
|
|
537
|
+
.rs-track { height: auto; justify-content: center; align-items: flex-start; padding-top: 22px; }
|
|
538
|
+
.rs-track::before, .rs-track::after { top: 0; bottom: 0; left: 50%; width: 0; height: auto; border-top: 0 !important; border-left: 1px solid var(--muted); }
|
|
539
|
+
.rs-track::before { bottom: auto; height: 22px; }
|
|
540
|
+
.rs-track::after { top: 22px; }
|
|
541
|
+
.rs.now .rs-track::after, .rs.future .rs-track::before, .rs.future .rs-track::after { border-left: 1px dashed var(--faint); }
|
|
542
|
+
.rs.first .rs-track::before { border-left-color: transparent; }
|
|
543
|
+
.rs-t { padding: 18px 0 18px 8px; }
|
|
544
|
+
}
|
|
545
|
+
body[data-tour="roadmap"] .tourcard { z-index: 60; }
|
|
546
|
+
body[data-tour="roadmap"] .rmbtn { color: var(--text); border-color: var(--faint); }
|
|
547
|
+
.brand { position: relative; }
|
|
548
|
+
.payoff { position: absolute; left: 0; top: 100%; margin-top: 3px; white-space: nowrap; font: italic 300 10.5px/1 var(--sans); letter-spacing: .04em; color: var(--faint); }
|
|
549
|
+
|
|
550
|
+
/* ---- v10: ghost forms for what is still to come ---- */
|
|
551
|
+
.ci.ghost { cursor: default; border-style: dashed; border-color: var(--hair); background: none; }
|
|
552
|
+
.ci.ghost:hover { border-color: var(--hair); background: none; }
|
|
553
|
+
.ci.ghost .lab, .ci.ghost .lab .g { color: var(--faint); }
|
|
554
|
+
.ci.ghost .tx { color: var(--faint); }
|
|
555
|
+
.o-conn.g { stroke-dasharray: 2 3; }
|
|
556
|
+
.row.ghost .disc { background: none !important; box-shadow: none !important; border: 1px dashed var(--faint); }
|
|
557
|
+
.row.ghost .hname, .row.ghost .hsub { color: var(--faint); }
|
|
558
|
+
.rs-ghost { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 1px dashed var(--faint); background: var(--bg); }
|
|
559
|
+
.rs.gh .rs-t { opacity: .5; }
|
|
560
|
+
.duid-empty { border-style: dashed; background: none; }
|
|
561
|
+
.duid-empty p { color: var(--muted); }
|
|
562
|
+
html { scrollbar-gutter: stable; }
|
|
563
|
+
html.lock { overflow: hidden; }
|
|
564
|
+
#sheet, .rm { overscroll-behavior: contain; }
|
|
565
|
+
.ph-basis .stale { color: var(--jij); }
|
|
566
|
+
.ci.more { padding-top: 8px; padding-bottom: 9px; }
|
|
567
|
+
.ci.more .tx { color: var(--muted); font-size: 12px; }
|
|
568
|
+
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
|
|
569
|
+
</style>
|
|
570
|
+
</head>
|
|
571
|
+
<body>
|
|
572
|
+
|
|
573
|
+
<header class="top">
|
|
574
|
+
<div class="brand"><svg class="logo" viewBox="0 0 20 20" aria-hidden="true"><defs><radialGradient id="lg" cx="38%" cy="34%" r="70%"><stop offset="0" stop-color="#fff"/><stop offset=".55" stop-color="#d8d6d2"/><stop offset="1" stop-color="#8e8c88"/></radialGradient></defs><circle cx="10" cy="10" r="8.2" fill="none" stroke="currentColor" stroke-width="1.1" stroke-linecap="round" stroke-dasharray="40 11.5" transform="rotate(-62 10 10)" opacity=".85"/><circle cx="10" cy="10" r="3.6" fill="url(#lg)"/></svg><span class="bw">NIMBO</span><span class="payoff">learn while doing</span></div>
|
|
575
|
+
<span class="sep">/</span>
|
|
576
|
+
<span class="crumb mono" data-name></span>
|
|
577
|
+
<button class="info" id="infoBtn" title="Rondleiding" aria-label="Rondleiding starten">i</button>
|
|
578
|
+
<button class="rmbtn mono" id="rmBtn" aria-haspopup="dialog"><svg viewBox="0 0 16 16" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"><path d="M3 4.5h10M3 8h6.5M3 11.5h3.5"/></g></svg>Roadmap</button>
|
|
579
|
+
<div class="theme" role="group" aria-label="Weergave"><button data-t="light" aria-label="Licht" aria-pressed="false"><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.9" fill="none" stroke="currentColor" stroke-width="1.2"/><g stroke="currentColor" stroke-width="1.2" stroke-linecap="round"><path d="M8 1.6v1.6M8 12.8v1.6M1.6 8h1.6M12.8 8h1.6M3.5 3.5l1.1 1.1M11.4 11.4l1.1 1.1M3.5 12.5l1.1-1.1M11.4 4.6l1.1-1.1"/></g></svg></button><button data-t="dark" aria-label="Donker" aria-pressed="true"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M12.6 10.2A5.3 5.3 0 0 1 5.8 3.4a5.3 5.3 0 1 0 6.8 6.8z" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/></svg></button></div>
|
|
580
|
+
</header>
|
|
581
|
+
|
|
582
|
+
<main>
|
|
583
|
+
<div class="ptitle"><div class="pt-in"><div class="pt-name" data-name></div><div class="pt-date mono" id="ptDate"></div></div></div>
|
|
584
|
+
<div class="heads">
|
|
585
|
+
<button class="h-idee mono" data-open="idee">Je idee</button>
|
|
586
|
+
<button class="h-route mono" data-open="route">Route</button>
|
|
587
|
+
<span></span>
|
|
588
|
+
<button class="h-leren mono" data-open="leren">Leren</button>
|
|
589
|
+
</div>
|
|
590
|
+
<div id="tl">
|
|
591
|
+
<svg id="ov" aria-hidden="true"></svg>
|
|
592
|
+
</div>
|
|
593
|
+
</main>
|
|
594
|
+
|
|
595
|
+
<button class="tourfab mono" id="tourBtn">Rondleiding</button>
|
|
596
|
+
|
|
597
|
+
<div class="rm" id="rm" role="dialog" aria-modal="true" aria-label="Roadmap" hidden>
|
|
598
|
+
<div class="rm-in">
|
|
599
|
+
<div class="rm-top"><span class="mono">Roadmap</span><button class="x" id="rmClose" aria-label="Sluiten">✕</button></div>
|
|
600
|
+
<div class="rm-title" data-name></div>
|
|
601
|
+
<div class="rm-sub mono">Van eerste feature naar release</div>
|
|
602
|
+
<div class="rl" id="rmCols"></div>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
<div class="tourcard" role="dialog" aria-live="polite" aria-label="Rondleiding">
|
|
607
|
+
<div class="k mono" id="tourK"></div>
|
|
608
|
+
<p id="tourP"></p>
|
|
609
|
+
<div class="act"><div class="dots" id="tourDots"></div><button class="btn" id="tourSkip">Overslaan</button><button class="btn pri" id="tourNext">Volgende</button></div>
|
|
610
|
+
<label class="off"><input type="checkbox" id="tourOff">Niet meer automatisch tonen</label>
|
|
611
|
+
</div>
|
|
612
|
+
|
|
613
|
+
<aside class="drawer" id="drawer" aria-label="Verdieping">
|
|
614
|
+
<div class="tabs" role="tablist">
|
|
615
|
+
<button class="tab" role="tab" data-open="duiding" style="--c:var(--ai)"><span class="mono">Duiding</span></button>
|
|
616
|
+
</div>
|
|
617
|
+
<div class="sheet" id="sheet">
|
|
618
|
+
<div class="sheet-in">
|
|
619
|
+
<div class="sh-top"><span class="mono" id="shK">Verdieping</span><button class="x" id="closeBtn" aria-label="Sluiten">✕</button></div>
|
|
620
|
+
|
|
621
|
+
<section class="pane" data-pane="halte" id="haltePane"></section>
|
|
622
|
+
|
|
623
|
+
<section class="pane" data-pane="duiding" id="duidPane"></section>
|
|
624
|
+
</div>
|
|
625
|
+
</div>
|
|
626
|
+
</aside>
|
|
627
|
+
|
|
628
|
+
<script>
|
|
629
|
+
const DATA = __DATA__;
|
|
630
|
+
const LOG = DATA.log, STOPS = DATA.stops, TRACKS = DATA.tracks;
|
|
631
|
+
const byId = Object.fromEntries(LOG.map(d => [d.id, d]));
|
|
632
|
+
document.querySelectorAll("[data-name]").forEach(e => { e.innerHTML = DATA.name; });
|
|
633
|
+
document.title = document.querySelector("[data-name]").textContent + " · Nimbo";
|
|
634
|
+
document.getElementById("ptDate").innerHTML = DATA.stand ? "Stand · " + DATA.stand : "";
|
|
635
|
+
|
|
636
|
+
/* ---------- build rows ---------- */
|
|
637
|
+
const tl = document.getElementById("tl");
|
|
638
|
+
const STATUS = s => s.future ? "gepland" : s.now ? "bezig" : "af";
|
|
639
|
+
const stopDecisions = s => s.dids ? LOG.filter(d => s.dids.includes(d.id)) : [];
|
|
640
|
+
const ideeOf = d => { const m = d.idee.match(/^(\S+)\s+—\s+(.*)$/); return m ? { soort: m[1], t: m[2] } : { soort: "", t: d.idee }; };
|
|
641
|
+
for (const s of STOPS) {
|
|
642
|
+
const row = document.createElement("section");
|
|
643
|
+
row.className = "row" + (s.ghost ? " ghost" : "") + (s === STOPS[0] ? " first" : "") + (s.future ? " future" : "") + (s.now ? " now" : "") + (s.feature ? " feature" : "");
|
|
644
|
+
row.dataset.key = s.key;
|
|
645
|
+
const GLYPH = { startidee: "◆", toegevoegd: "+", gewijzigd: "⇄", bijgestuurd: "↺" };
|
|
646
|
+
const ideaCard = d => { const i = ideeOf(d);
|
|
647
|
+
return `<button class="ci ${i.soort}" data-halte="${s.key}"><span class="lab"><span class="g">${GLYPH[i.soort] || "·"}</span>${i.soort}</span><span class="tx">${i.t}</span></button>`; };
|
|
648
|
+
// At most three cards per stop: the first, a count, the last. The panel lists them all.
|
|
649
|
+
const ideas = stopDecisions(s).filter(d => d.idee);
|
|
650
|
+
const idee = ideas.length > 3
|
|
651
|
+
? ideaCard(ideas[0]) + `<button class="ci more" data-halte="${s.key}"><span class="lab"><span class="g">⋯</span>${ideas.length - 2} meer</span><span class="tx">${ideas.slice(1, -1).map(d => ideeOf(d).soort).filter((x, j, a) => a.indexOf(x) === j).join(" · ")}</span></button>` + ideaCard(ideas[ideas.length - 1])
|
|
652
|
+
: ideas.map(ideaCard).join("");
|
|
653
|
+
const dots = (s.uitleg || []).map(() => "<i></i>").join("");
|
|
654
|
+
const stair = s.trede ? `<span class="step">${[1,2,3].map(n => `<i class="${n <= s.trede ? "on" : ""}"></i>`).join("")}</span>` : `<span class="g">○</span>`;
|
|
655
|
+
const ghost = g => g ? `<div class="ci ghost"><span class="lab"><span class="g">◌</span>${g.lab}</span><span class="tx">${g.tx}</span></div>` : "";
|
|
656
|
+
const leren = s.lc ? `<button class="ci lc" data-halte="${s.key}"><span class="lab">${stair}${s.lc.lab}${dots ? `<span class="qdots" title="uitlegvragen">${dots}</span>` : ""}</span><span class="tx">${s.lc.tx}</span></button>` : "";
|
|
657
|
+
row.innerHTML = `
|
|
658
|
+
<div class="cell idee" data-band="idee">${idee}${ghost(s.gIdee)}</div>
|
|
659
|
+
<div class="cell axis" data-band="route">
|
|
660
|
+
<button class="disc" data-halte="${s.key}" aria-label="${s.name}: ${s.title}"></button>
|
|
661
|
+
<div class="hname mono">${s.name}</div>
|
|
662
|
+
${s.sub ? `<div class="hsub">${s.sub}</div>` : ""}
|
|
663
|
+
${s.now ? `<div class="here">● je bent hier</div>` : ""}
|
|
664
|
+
</div>
|
|
665
|
+
<div class="cell tracks"></div>
|
|
666
|
+
<div class="cell leren" data-band="leren">${leren}${ghost(s.gLeren)}</div>`;
|
|
667
|
+
tl.append(row);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* ---------- overlay: line, braid, tracks ---------- */
|
|
671
|
+
const NS = "http://www.w3.org/2000/svg";
|
|
672
|
+
const ov = document.getElementById("ov");
|
|
673
|
+
const mk = (t, a, parent) => { const n = document.createElementNS(NS, t); for (const k in a) n.setAttribute(k, a[k]); (parent || ov).append(n); return n; };
|
|
674
|
+
function pos() {
|
|
675
|
+
const base = tl.getBoundingClientRect();
|
|
676
|
+
return STOPS.map(s => {
|
|
677
|
+
const row = tl.querySelector(`[data-key="${s.key}"]`);
|
|
678
|
+
const d = row.querySelector(".disc").getBoundingClientRect();
|
|
679
|
+
const lab = (row.querySelector(".here") || row.querySelector(".hsub") || row.querySelector(".hname")).getBoundingClientRect();
|
|
680
|
+
const tr = row.querySelector(".tracks").getBoundingClientRect();
|
|
681
|
+
return { s, x: d.left + d.width / 2 - base.left, y: d.top + d.height / 2 - base.top, r: d.height / 2, lb: lab.bottom - base.top, tx: tr.left - base.left, tw: tr.width };
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
function draw() {
|
|
685
|
+
ov.innerHTML = "";
|
|
686
|
+
const base0 = tl.getBoundingClientRect();
|
|
687
|
+
const P = pos();
|
|
688
|
+
const iNow = STOPS.findIndex(s => s.now);
|
|
689
|
+
const gR = mk("g", { "data-band": "route" }), gS = mk("g", { "data-band": "samen" }), gT = mk("g", { "data-band": "route" });
|
|
690
|
+
// spine (segment i leads INTO stop i)
|
|
691
|
+
const segTop = i => i === 0 ? 4 : P[i - 1].lb + 12;
|
|
692
|
+
for (let i = 0; i < P.length; i++) {
|
|
693
|
+
mk("line", { x1: P[i].x, x2: P[i].x, y1: segTop(i), y2: P[i].y - P[i].r - 8, class: "o-line" + (i > iNow ? " fut" : "") }, gR);
|
|
694
|
+
}
|
|
695
|
+
// braid: the work of a phase flows into its stop; the strands meet at the decision
|
|
696
|
+
for (let i = 0; i < P.length; i++) {
|
|
697
|
+
const s = STOPS[i]; if (!s.dids) continue;
|
|
698
|
+
const ds = stopDecisions(s); if (!ds.length) continue;
|
|
699
|
+
const h = ds.filter(d => d.herkomst === "HUMAN").length, n = ds.length;
|
|
700
|
+
const y0 = segTop(i) + 6, y1 = P[i].y - P[i].r - 10, cx = P[i].x;
|
|
701
|
+
const k = Math.max(1, Math.round(n / 3)), A = 10;
|
|
702
|
+
const path = phase => {
|
|
703
|
+
let d = "";
|
|
704
|
+
for (let j = 0; j <= 80; j++) {
|
|
705
|
+
const t = j / 80, y = y0 + (y1 - y0) * t;
|
|
706
|
+
const x = cx + A * Math.sin(Math.PI * t) * Math.sin(Math.PI * k * t + phase);
|
|
707
|
+
d += (j ? "L" : "M") + x.toFixed(1) + "," + y.toFixed(1);
|
|
708
|
+
}
|
|
709
|
+
return d;
|
|
710
|
+
};
|
|
711
|
+
mk("path", { d: path(0), class: "o-jij", "stroke-width": (0.8 + 3.4 * h / n).toFixed(2) }, gS);
|
|
712
|
+
mk("path", { d: path(Math.PI), class: "o-ai", "stroke-width": (0.8 + 3.4 * (n - h) / n).toFixed(2) }, gS);
|
|
713
|
+
const hit = mk("path", { d: `M${cx},${y0}L${cx},${y1}`, class: "o-hit" }, gS);
|
|
714
|
+
hit.addEventListener("click", () => openHalte(s.key));
|
|
715
|
+
hit.appendChild(document.createElementNS(NS, "title")).textContent = `${s.name}: ${h} van jou, ${n - h} van de AI`;
|
|
716
|
+
}
|
|
717
|
+
// tracks
|
|
718
|
+
const idx = Object.fromEntries(STOPS.map((s, i) => [s.key, i]));
|
|
719
|
+
const yNow = P[iNow].y;
|
|
720
|
+
const ends = {};
|
|
721
|
+
TRACKS.forEach((t, j) => {
|
|
722
|
+
const a = P[idx[t.from]], b = P[idx[t.to]]; if (!a || !b) return;
|
|
723
|
+
const x = a.tx + 4 + j * 8;
|
|
724
|
+
const ya = a.y, yb = b.y;
|
|
725
|
+
const cut = Math.min(Math.max(yNow, ya), yb);
|
|
726
|
+
mk("path", { d: `M${a.x + 14},${ya} C${x - 4},${ya} ${x},${ya + 4} ${x},${ya + 14}`, class: "o-track" }, gT);
|
|
727
|
+
mk("line", { x1: x, x2: x, y1: ya + 14, y2: cut, class: "o-track" }, gT);
|
|
728
|
+
if (cut < yb) mk("line", { x1: x, x2: x, y1: cut, y2: yb, class: "o-track fut" }, gT);
|
|
729
|
+
mk("circle", { cx: x, cy: yb, r: 3.2, class: "o-end" + (t.ok ? " ok" : "") }, gT);
|
|
730
|
+
const off = (ends[t.to] = (ends[t.to] || 0) + 1) - 1;
|
|
731
|
+
const hit = mk("line", { x1: x, x2: x, y1: ya, y2: yb, class: "o-hit-track" }, gT);
|
|
732
|
+
hit.addEventListener("click", () => openHalte(t.to));
|
|
733
|
+
hit.appendChild(document.createElementNS(NS, "title")).textContent = t.label;
|
|
734
|
+
});
|
|
735
|
+
// hairline connectors: card → spine
|
|
736
|
+
const gC = mk("g", {});
|
|
737
|
+
ov.insertBefore(gC, ov.firstChild);
|
|
738
|
+
tl.querySelectorAll(".row").forEach((row, i) => {
|
|
739
|
+
const cx = P[i].x;
|
|
740
|
+
row.querySelectorAll(".ci").forEach(c => {
|
|
741
|
+
const r = c.getBoundingClientRect(), y = r.top + r.height / 2 - base0.top;
|
|
742
|
+
const left = c.closest(".idee");
|
|
743
|
+
const x1 = left ? r.right - base0.left : r.left - base0.left, x2 = left ? cx - 16 : cx + 16;
|
|
744
|
+
mk("line", { x1, x2, y1: y, y2: y, class: "o-conn" + (left ? " l" : "") + (c.classList.contains("ghost") ? " g" : "") }, gC);
|
|
745
|
+
mk("circle", { cx: x2, cy: y, r: 1.6, class: "o-cdot" }, gC);
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* ---------- focus lens on scroll ---------- */
|
|
751
|
+
let rows = [...tl.querySelectorAll(".row")];
|
|
752
|
+
function lens() {
|
|
753
|
+
const mid = innerHeight / 2;
|
|
754
|
+
for (const r of rows) {
|
|
755
|
+
const d = r.querySelector(".disc").getBoundingClientRect();
|
|
756
|
+
const dist = Math.min(1, Math.abs(d.top + d.height / 2 - mid) / (innerHeight * .55));
|
|
757
|
+
const f = 1 - dist;
|
|
758
|
+
r.querySelector(".disc").style.setProperty("--s", (0.75 + 0.75 * f * f).toFixed(3));
|
|
759
|
+
r.style.setProperty("--o", (0.28 + 0.72 * f).toFixed(3));
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
let ticking = false;
|
|
763
|
+
addEventListener("scroll", () => { if (!ticking) { ticking = true; requestAnimationFrame(() => { lens(); ticking = false; }); } }, { passive: true });
|
|
764
|
+
|
|
765
|
+
function scrollToRow(i, smooth) {
|
|
766
|
+
const d = rows[i].querySelector(".disc").getBoundingClientRect();
|
|
767
|
+
scrollTo({ top: scrollY + d.top + d.height / 2 - innerHeight / 2, behavior: smooth ? "smooth" : "instant" });
|
|
768
|
+
}
|
|
769
|
+
function nearest() {
|
|
770
|
+
const mid = innerHeight / 2; let best = 0, bd = 1e9;
|
|
771
|
+
rows.forEach((r, i) => { const d = r.querySelector(".disc").getBoundingClientRect(); const dd = Math.abs(d.top + d.height / 2 - mid); if (dd < bd) { bd = dd; best = i; } });
|
|
772
|
+
return best;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/* ---------- drawer ---------- */
|
|
776
|
+
const drawer = document.getElementById("drawer");
|
|
777
|
+
const sheet = document.getElementById("sheet");
|
|
778
|
+
function openPane(k, section) {
|
|
779
|
+
drawer.classList.add("open");
|
|
780
|
+
document.querySelectorAll(".pane").forEach(p => p.classList.toggle("on", p.dataset.pane === k));
|
|
781
|
+
document.querySelectorAll(".tab").forEach(t => t.setAttribute("aria-selected", t.dataset.open === k));
|
|
782
|
+
if (k !== "halte") { tl.querySelectorAll(".row.sel").forEach(r => r.classList.remove("sel")); document.getElementById("shK").textContent = "Duiding · jij"; }
|
|
783
|
+
sheet.scrollTop = 0;
|
|
784
|
+
if (section) { const el = document.getElementById("d-" + section); if (el) setTimeout(() => sheet.scrollTo({ top: el.offsetTop - 28, behavior: "smooth" }), 80); }
|
|
785
|
+
}
|
|
786
|
+
function closeDrawer() { tl.querySelectorAll(".row.sel").forEach(r => r.classList.remove("sel")); drawer.classList.remove("open"); document.querySelectorAll(".tab").forEach(t => t.setAttribute("aria-selected", false)); }
|
|
787
|
+
const who = d => d.herkomst === "AI" ? "AI" : "jij";
|
|
788
|
+
const TYPE = { keuze: "keuze", sturing: "sturing", voorstel: "voorstel", beoordeling: "toetsing", acceptatie: "akkoord", afwijzing: "afwijzing" };
|
|
789
|
+
const GL = { startidee: "◆", toegevoegd: "+", gewijzigd: "⇄", bijgestuurd: "↺" };
|
|
790
|
+
const clean = t => (t || "").replace(/\.$/, "");
|
|
791
|
+
const cls = d => ["sd", d.herkomst === "AI" ? "ai" : "h", d.type === "voorstel" ? "hollow" : "", d.type === "afwijzing" ? "hollow sq" : "", d.type === "beoordeling" ? "dia" : "", d.type === "acceptatie" ? "sq" : ""].join(" ");
|
|
792
|
+
const stairHTML = n => `<span class="step">${[1,2,3].map(k => `<i class="${k <= n ? "on" : ""}"></i>`).join("")}</span>`;
|
|
793
|
+
function braidSVG(ds) {
|
|
794
|
+
const n = ds.length, h = ds.filter(d => d.herkomst === "HUMAN").length, W = 300, H = 26, k = Math.max(1, Math.round(n / 2));
|
|
795
|
+
const path = ph => { let p = ""; for (let j = 0; j <= 60; j++) { const t = j / 60, x = W * t, y = H / 2 + 8 * Math.sin(Math.PI * t) * Math.sin(Math.PI * k * t + ph); p += (j ? "L" : "M") + x.toFixed(1) + "," + y.toFixed(1); } return p; };
|
|
796
|
+
return `<svg class="mbraid" viewBox="0 0 ${W} ${H}" preserveAspectRatio="none" aria-hidden="true"><line x1="0" x2="${W}" y1="${H/2}" y2="${H/2}" stroke="#2a2a2e"/><path d="${path(0)}" fill="none" stroke="var(--jij)" stroke-width="${(0.8 + 3 * h / n).toFixed(2)}" stroke-linecap="round" vector-effect="non-scaling-stroke"/><path d="${path(Math.PI)}" fill="none" stroke="var(--ai)" stroke-width="${(0.8 + 3 * (n - h) / n).toFixed(2)}" stroke-linecap="round" vector-effect="non-scaling-stroke"/></svg>
|
|
797
|
+
<div class="mb-leg mono"><span style="color:var(--jij)">jij ${h}</span><span style="color:var(--ai)">AI ${n - h}</span></div>`;
|
|
798
|
+
}
|
|
799
|
+
const card = (lab, glyph, body, extra = "") => `<div class="pc ${extra}"><div class="lab">${glyph}${lab}</div>${body}</div>`;
|
|
800
|
+
function openHalte(key) {
|
|
801
|
+
const i = STOPS.findIndex(s => s.key === key), s = STOPS[i], ds = stopDecisions(s), parts = [];
|
|
802
|
+
ds.filter(d => d.idee).forEach(d => { const x = ideeOf(d);
|
|
803
|
+
parts.push(card(x.soort, `<span class="g" style="color:var(--jij)">${GL[x.soort] || "·"}</span>`, `<div class="tx">${x.t}</div><div class="why">${d.inhoud}</div>`, "idea " + x.soort)); });
|
|
804
|
+
if (ds.length) parts.push(card("Samen", `<span class="g g-braid"></span>`, braidSVG(ds) + `<div class="srs">${ds.map(d => `<button class="sr" aria-expanded="false"><span class="${cls(d)}"></span><span class="sw mono ${d.herkomst === "AI" ? "ai" : "h"}">${who(d)}</span><span class="so">${clean(d.onderwerp)}</span><span class="sty mono">${TYPE[d.type]}</span><span class="chev">›</span></button><div class="sx" hidden>${d.inhoud || clean(d.gevolg)}</div>`).join("")}</div>`));
|
|
805
|
+
if (s.geoefend) parts.push(card(s.trede ? `Trede ${s.trede}` : "Oefening", s.trede ? stairHTML(s.trede) : `<span class="g">○</span>`, `<div class="tx">${s.geoefend}</div>`));
|
|
806
|
+
if (s.leerdoel) parts.push(card("Leerdoel", `<span class="g">○</span>`, `<div class="tx">${s.leerdoel}</div>`));
|
|
807
|
+
if (s.uitleg) parts.push(card("Uitleg gevraagd", `<span class="g">◦</span>`, s.uitleg.map(t => `<div class="tx li ring">${t}</div>`).join("")));
|
|
808
|
+
const qs = [
|
|
809
|
+
...TRACKS.filter(t => t.from === key).map(t => ["open gelaten", t.label]),
|
|
810
|
+
...TRACKS.filter(t => t.to === key && t.ok).map(t => ["uitgestapt", t.label]),
|
|
811
|
+
...TRACKS.filter(t => t.to === key && !t.ok).map(t => [s.future ? "nodig hier" : "open", t.label])];
|
|
812
|
+
// Group by kind: one small label per group, the questions below it, so long questions wrap cleanly.
|
|
813
|
+
const kinds = [...new Set(qs.map(([k]) => k))];
|
|
814
|
+
if (qs.length) parts.push(card("Vragen", `<span class="g">│</span>`, kinds.map(k => `<div class="qg"><div class="qk mono">${k}</div>${qs.filter(([x]) => x === k).map(([, t]) => `<div class="tx li">${t}</div>`).join("")}</div>`).join("")));
|
|
815
|
+
const state = s.future ? "future" : s.now ? "now" : "done";
|
|
816
|
+
const prev = STOPS[i - 1], next = STOPS[i + 1];
|
|
817
|
+
document.getElementById("haltePane").innerHTML = `
|
|
818
|
+
<div class="ph-t"><span class="pdisc ${state}"></span><h3>${s.name}</h3><span class="pill mono ${state}">${STATUS(s)}</span></div>
|
|
819
|
+
<div class="ph-sub">${s.feature ? s.title : s.sub}</div>
|
|
820
|
+
<p class="ph-wat">${s.wat}</p>
|
|
821
|
+
<div class="pcs">${parts.join("") || `<div class="ph-empty">Hier is nog niets gebeurd.</div>`}</div>
|
|
822
|
+
<div class="hnav">${prev ? `<button data-halte="${prev.key}">↑ ${prev.name}</button>` : "<span></span>"}${next ? `<button data-halte="${next.key}">${next.name} ↓</button>` : ""}</div>`;
|
|
823
|
+
openPane("halte");
|
|
824
|
+
document.getElementById("shK").textContent = `Halte ${i + 1} / ${STOPS.length}` + (s.feature ? ` · ${s.name}` : "");
|
|
825
|
+
tl.querySelectorAll(".row").forEach(r => r.classList.toggle("sel", r.dataset.key === key));
|
|
826
|
+
scrollToRow(i, true);
|
|
827
|
+
}
|
|
828
|
+
document.getElementById("haltePane").addEventListener("click", e => {
|
|
829
|
+
const b = e.target.closest(".sr"); if (!b) return;
|
|
830
|
+
const x = b.nextElementSibling, open = x.hidden;
|
|
831
|
+
x.hidden = !open; b.setAttribute("aria-expanded", open);
|
|
832
|
+
});
|
|
833
|
+
document.addEventListener("click", e => {
|
|
834
|
+
const h = e.target.closest("[data-halte]"); if (h) { openHalte(h.dataset.halte); return; }
|
|
835
|
+
const o = e.target.closest("[data-open]"); if (!o) return;
|
|
836
|
+
if (o.classList.contains("tab")) { if (drawer.classList.contains("open") && o.getAttribute("aria-selected") === "true") closeDrawer(); else openPane("duiding"); }
|
|
837
|
+
else openPane("duiding", o.dataset.open);
|
|
838
|
+
});
|
|
839
|
+
document.getElementById("closeBtn").onclick = closeDrawer;
|
|
840
|
+
addEventListener("keydown", e => { if (e.key === "Escape") { if (document.body.dataset.tour) endTour(); else closeDrawer(); } });
|
|
841
|
+
|
|
842
|
+
/* ---------- tour ---------- */
|
|
843
|
+
const KEY = f => (STOPS.find(f) || STOPS.find(s => s.now) || STOPS[0]).key;
|
|
844
|
+
const kNow = KEY(s => s.now), kIdee = KEY(s => stopDecisions(s).some(d => d.idee)), kSamen = KEY(s => stopDecisions(s).length), kLeren = KEY(s => s.lc && s.feature) ;
|
|
845
|
+
// The tour opens on every visit until the user turns that off; the choice applies to all projects.
|
|
846
|
+
const TOUR_OFF = "nimbo-dash-tour-off";
|
|
847
|
+
const tourOff = document.getElementById("tourOff");
|
|
848
|
+
try { tourOff.checked = localStorage.getItem(TOUR_OFF) === "1"; } catch (e) {}
|
|
849
|
+
tourOff.onchange = () => { try { tourOff.checked ? localStorage.setItem(TOUR_OFF, "1") : localStorage.removeItem(TOUR_OFF); } catch (e) {} };
|
|
850
|
+
const TOUR = (DATA.early ? [
|
|
851
|
+
["route", "Route", "Dit is je pad, van intake tot release. Lichte stippen zijn af, donkere komen nog. Na de roadmap verschijnen hier je features, elk als eigen halte.", kNow],
|
|
852
|
+
["idee", "Je idee", "Links staat je idee: waar het begon en hoe het veranderde. Verandert het onderweg, dan komt er een kaartje bij.", kIdee],
|
|
853
|
+
["samen", "Samen", "Rond de lijn lopen twee draden: oranje ben jij, blauw is de AI. Bij elke fase die je afrondt, groeit de vlecht een stuk verder.", kSamen],
|
|
854
|
+
["leren", "Leren", "Rechts staan je leerdoelen per fase. Bij elke feature komt daar de oefening bij die je deed.", KEY(s => s.lc)],
|
|
855
|
+
["duiding", "Duiding", "Aan de rand staat Duiding. Als er genoeg gebeurd is, kijk je hier terug: de AI zet de feiten op een rij, jij zegt wat je erin ziet.", kNow],
|
|
856
|
+
["roadmap", "Roadmap", "Rechtsboven staat Roadmap: waar je nu bent en wat nog komt. Na de roadmap-fase staan hier je features, op volgorde tot de release.", kNow]
|
|
857
|
+
] : [
|
|
858
|
+
["route", "Route", "Dit is je pad, van intake tot release. Lichte stippen zijn af, donkere komen nog. De dunne lijnen ernaast zijn vragen die meereizen tot ze beantwoord zijn. Klik op een halte om in te zoomen.", kNow],
|
|
859
|
+
["idee", "Je idee", "Links staan de kaartjes van je idee: waar het begon en hoe het veranderde, bij de halte waar het gebeurde.", kIdee],
|
|
860
|
+
["samen", "Samen", "Rond de lijn lopen twee draden: oranje ben jij, blauw is de AI. Een dikkere draad bracht in die fase meer in. Bij elke halte komen ze samen.", kSamen],
|
|
861
|
+
["leren", "Leren", "Rechts staan de kaartjes van je leerpad: je leerdoel per fase en wat je per feature oefende. Elk rondje is een uitlegvraag.", kLeren],
|
|
862
|
+
["duiding", "Duiding", "Aan de rand staat de tab Duiding: jouw terugblik. Per kaart zet de AI de feiten uit je log op een rij en staat eronder wat jij erover zei. Geen oordeel, een spiegel.", kNow],
|
|
863
|
+
["roadmap", "Roadmap", "Rechtsboven staat Roadmap: alleen wat af is, waar je nu bent en wat nog komt, tot de release. Zonder details, voor als je even overzicht wilt.", kNow]
|
|
864
|
+
]).map(([band, t, p, row], i, a) => ({ band, k: `${i + 1} / ${a.length} · ${t}`, p, row }));
|
|
865
|
+
|
|
866
|
+
/* ---------- duiding ---------- */
|
|
867
|
+
(function renderDuiding() {
|
|
868
|
+
const D = DATA.duiding, el = document.getElementById("duidPane");
|
|
869
|
+
const intro = `<div class="ph-intro">Jouw terugblik: per kaart de feiten uit je log en wat jij erover zegt. Geen oordeel van de AI.</div>`;
|
|
870
|
+
if (!D) { el.innerHTML = intro + `<div class="pc dcard duid-empty"><div class="lab"><span class="g">◌</span>${DATA.early ? "Straks" : "Nog niet gevraagd"}</div><h4>${DATA.early ? "Nog te vroeg voor een duiding" : "Nog geen duiding"}</h4>${DATA.early
|
|
871
|
+
? "<p>Na je eerste feature is er genoeg om op terug te kijken: hoe je idee groeide, hoe jij en de AI samenwerkten en wat je leerde.</p><p>Dan kun je om een duiding vragen.</p>"
|
|
872
|
+
: "<p>Vraag om een duiding van je project. De AI zet per kaart de feiten uit je log op een rij en vraagt wat jij erin ziet: route, idee, samen en leren.</p>"}</div>`; return; }
|
|
873
|
+
const G = { route: `<span class="g g-route"></span>`, idee: `<span class="g" style="color:var(--jij)">◆</span>`, samen: `<span class="g g-braid"></span>`, leren: `<span class="step"><i class="on"></i><i class="on"></i><i class="on"></i></span>` };
|
|
874
|
+
const L = { route: "Route", idee: "Je idee", samen: "Samen", leren: "Leren" };
|
|
875
|
+
el.innerHTML = intro + `<div class="ph-basis mono">${D.datum ? "Terugblik van " + D.datum : "Terugblik"}${D.stale ? ` · <span class="stale">je log is verder</span>` : ""}</div>` +
|
|
876
|
+
D.cards.map(c => `<div class="pc dcard" id="d-${c.key}"><div class="lab">${G[c.key] || ""}${L[c.key] || c.key}</div>${c.vraag ? `<h4>${c.vraag}</h4>` : ""}${c.paras.map(p => `<p>${p}</p>`).join("")}${c.mine ? `<div class="ask mine"><span class="mono">Jouw reflectie</span>${c.mine}</div>` : ""}${c.ask ? `<div class="ask"><span class="mono">Om over na te denken</span>${c.ask}</div>` : ""}</div>`).join("");
|
|
877
|
+
})();
|
|
878
|
+
let tourI = -1;
|
|
879
|
+
function showTour(i) {
|
|
880
|
+
tourI = i; const t = TOUR[i];
|
|
881
|
+
document.body.dataset.tour = t.band;
|
|
882
|
+
document.querySelectorAll("[data-band]").forEach(el => el.classList.toggle("lit", el.dataset.band === t.band));
|
|
883
|
+
document.getElementById("tourK").textContent = t.k;
|
|
884
|
+
document.getElementById("tourP").textContent = t.p;
|
|
885
|
+
document.getElementById("tourDots").innerHTML = TOUR.map((_, j) => `<i class="${j === i ? "on" : ""}"></i>`).join("");
|
|
886
|
+
document.getElementById("tourNext").textContent = i === TOUR.length - 1 ? "Klaar" : "Volgende";
|
|
887
|
+
scrollToRow(STOPS.findIndex(s => s.key === t.row), true);
|
|
888
|
+
if (t.band === "duiding") openPane("duiding"); else if (drawer.classList.contains("open")) closeDrawer();
|
|
889
|
+
if (t.band === "roadmap") openRoadmap(); else if (!rm.hidden) closeRoadmap();
|
|
890
|
+
}
|
|
891
|
+
function endTour() {
|
|
892
|
+
closeDrawer(); if (!rm.hidden) closeRoadmap();
|
|
893
|
+
delete document.body.dataset.tour; document.querySelectorAll(".lit").forEach(el => el.classList.remove("lit")); tourI = -1;
|
|
894
|
+
scrollToRow(STOPS.findIndex(s => s.now), true);
|
|
895
|
+
}
|
|
896
|
+
document.getElementById("tourNext").onclick = () => tourI < TOUR.length - 1 ? showTour(tourI + 1) : endTour();
|
|
897
|
+
document.getElementById("tourSkip").onclick = endTour;
|
|
898
|
+
document.getElementById("tourBtn").onclick = () => { closeDrawer(); showTour(0); };
|
|
899
|
+
document.getElementById("infoBtn").onclick = () => { closeDrawer(); showTour(0); };
|
|
900
|
+
|
|
901
|
+
/* ---------- roadmap ---------- */
|
|
902
|
+
const rm = document.getElementById("rm");
|
|
903
|
+
function buildRoadmap() {
|
|
904
|
+
const feats = STOPS.filter(s => s.feature || s.ghost || s.key === "release");
|
|
905
|
+
if (!feats.some(s => s.now)) { const c = STOPS.find(s => s.now); if (c) feats.unshift({ key: "prep", name: "Nu", title: c.title, wat: "Eerst plannen: ontwerp, stack en roadmap. Daarna volgen je features.", now: true }); }
|
|
906
|
+
document.querySelector(".rm-sub").textContent = feats[0].key === "prep" ? "Van nu naar release" : "Van eerste feature naar release";
|
|
907
|
+
const st = s => s.now ? "now" : s.future ? "future" : "done";
|
|
908
|
+
const zones = [["done", "Gedaan"], ["now", "Bezig"], ["future", "Nog te doen"]];
|
|
909
|
+
let idx = 0;
|
|
910
|
+
const item = s => { const k = st(s), i = idx++, rel = s.key === "release";
|
|
911
|
+
return `<div class="rs ${k}${i === 0 ? " first" : ""}${rel ? " rel" : ""}${s.ghost ? " gh" : ""}"><div class="rs-track"><span class="${rel ? "rs-ring" : s.ghost ? "rs-ghost" : "pdisc " + k}"></span></div><div class="rs-t"><span class="lab">${rel ? "Eindpunt" : s.ghost ? "Straks" : s.name}</span><span class="rm-name">${s.title}</span><span class="tx">${s.wat}</span>${k === "now" ? `<span class="rs-here mono">je bent hier</span>` : ""}</div></div>`; };
|
|
912
|
+
document.getElementById("rmCols").innerHTML = zones.map(([k, t]) => { const l = feats.filter(s => st(s) === k);
|
|
913
|
+
return l.length ? `<section class="rz ${k}" style="--n:${l.length}"><div class="rz-h mono">${t}</div><div class="rz-i">${l.map(item).join("")}</div></section>` : ""; }).join("");
|
|
914
|
+
}
|
|
915
|
+
let rmT; function openRoadmap() { clearTimeout(rmT); buildRoadmap(); rm.hidden = false; requestAnimationFrame(() => rm.classList.add("on")); if (!document.body.dataset.tour) document.getElementById("rmClose").focus(); }
|
|
916
|
+
function closeRoadmap() { rm.classList.remove("on"); clearTimeout(rmT); rmT = setTimeout(() => { rm.hidden = true; }, 300); }
|
|
917
|
+
document.getElementById("rmBtn").onclick = openRoadmap;
|
|
918
|
+
document.getElementById("rmClose").onclick = closeRoadmap;
|
|
919
|
+
rm.addEventListener("click", e => { if (e.target === rm) closeRoadmap(); });
|
|
920
|
+
addEventListener("keydown", e => { if (e.key === "Escape" && !rm.hidden && !document.body.dataset.tour) { e.stopImmediatePropagation(); closeRoadmap(); } }, true);
|
|
921
|
+
|
|
922
|
+
/* ---------- payoff: justify between icon and last letter ---------- */
|
|
923
|
+
function fitPayoff() {
|
|
924
|
+
const b = document.querySelector(".brand"), p = b.querySelector(".payoff"), w = b.querySelector(".bw");
|
|
925
|
+
p.style.letterSpacing = "0px";
|
|
926
|
+
const trail = parseFloat(getComputedStyle(b).letterSpacing) || 0;
|
|
927
|
+
const target = w.getBoundingClientRect().right - trail - b.getBoundingClientRect().left;
|
|
928
|
+
const n = p.textContent.length, nat = p.getBoundingClientRect().width;
|
|
929
|
+
p.style.letterSpacing = ((target - nat) / (n - 1)).toFixed(2) + "px";
|
|
930
|
+
}
|
|
931
|
+
fitPayoff(); if (document.fonts) document.fonts.ready.then(fitPayoff);
|
|
932
|
+
|
|
933
|
+
/* ---------- scroll lock ---------- */
|
|
934
|
+
const syncLock = () => document.documentElement.classList.toggle("lock", drawer.classList.contains("open") || !rm.hidden);
|
|
935
|
+
new MutationObserver(syncLock).observe(drawer, { attributes: true, attributeFilter: ["class"] });
|
|
936
|
+
new MutationObserver(syncLock).observe(rm, { attributes: true, attributeFilter: ["hidden"] });
|
|
937
|
+
|
|
938
|
+
/* ---------- theme ---------- */
|
|
939
|
+
const themeBtns = document.querySelectorAll(".theme button");
|
|
940
|
+
function setTheme(t, save) {
|
|
941
|
+
document.documentElement.setAttribute("data-theme", t);
|
|
942
|
+
themeBtns.forEach(b => b.setAttribute("aria-pressed", b.dataset.t === t));
|
|
943
|
+
if (save) { try { localStorage.setItem("nimbo-theme", t); } catch (e) {} }
|
|
944
|
+
}
|
|
945
|
+
setTheme(document.documentElement.getAttribute("data-theme"), false);
|
|
946
|
+
themeBtns.forEach(b => b.addEventListener("click", () => setTheme(b.dataset.t, true)));
|
|
947
|
+
|
|
948
|
+
/* ---------- init ---------- */
|
|
949
|
+
function layout() { draw(); lens(); }
|
|
950
|
+
addEventListener("resize", () => { clearTimeout(window.__rt); window.__rt = setTimeout(layout, 100); });
|
|
951
|
+
addEventListener("load", () => {
|
|
952
|
+
layout();
|
|
953
|
+
const q0 = new URLSearchParams(location.search);
|
|
954
|
+
if (!q0.has("top")) scrollToRow(STOPS.findIndex(s => s.now), false);
|
|
955
|
+
lens();
|
|
956
|
+
const q = new URLSearchParams(location.search);
|
|
957
|
+
if (q.has("pane")) openPane(q.get("pane"));
|
|
958
|
+
if (q.has("halte")) openHalte(q.get("halte"));
|
|
959
|
+
if (q.has("roadmap")) openRoadmap();
|
|
960
|
+
if (q.has("tour") || (!tourOff.checked && !q.has("notour") && !q.has("pane") && !q.has("halte") && !q.has("roadmap"))) setTimeout(() => showTour(+(q.get("tour") || 0)), 500);
|
|
961
|
+
});
|
|
962
|
+
</script>
|
|
963
|
+
</body>
|
|
964
|
+
</html>
|