tailcat-webui 0.1.0 → 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/NOTICE CHANGED
@@ -4,14 +4,20 @@ Copyright (c) 2026 ds-hu
4
4
  Third-party attributions
5
5
  ========================
6
6
 
7
- Cat icon
8
- icon.svg is adapted from Twemoji (https://github.com/jdecked/twemoji),
9
- U+1F431 "cat face". Twemoji graphics are licensed under the Creative
10
- Commons Attribution 4.0 International license (CC-BY 4.0):
7
+ Artwork
8
+ icon.png, docs/assets/character.jpg and docs/assets/portrait.jpg were
9
+ created with gpt-image-2.6 for this project. The console keeps those
10
+ images as local assets; it does not fetch artwork at runtime.
11
+
12
+ Tunnel cat glyph
13
+ The small cat that rides the tunnel line in web/room-overview.js is adapted
14
+ from Twemoji (https://github.com/jdecked/twemoji), U+1F431 "cat face".
15
+ Twemoji graphics are licensed under the Creative Commons Attribution 4.0
16
+ International license (CC-BY 4.0):
11
17
  https://creativecommons.org/licenses/by/4.0/
12
18
  Copyright 2020 Twitter, Inc and other contributors.
13
- Changes: recolored to the project palette, simplified for a 48 px tile,
14
- and placed on a dark rounded tile.
19
+ Changes: recolored to the console's current text color, trimmed for the
20
+ tunnel line, and combined with a tail.
15
21
 
16
22
  tailcat
17
23
  This package manages the tailcat CLI but does not redistribute it.
package/README.en.md CHANGED
@@ -1,3 +1,9 @@
1
+ <p align="center">
2
+ <img src="docs/assets/character.jpg" width="560" alt="A cat-eared girl holding a pixel-cat plush, with a screen reading tailscale up behind her">
3
+ </p>
4
+
5
+ <p align="center"><sub>Character and icon artwork created with gpt-image-2.6.</sub></p>
6
+
1
7
  English · [简体中文](README.md)
2
8
 
3
9
  # tailcat-webui
@@ -77,6 +83,8 @@ The Screenshots workflow captures the interface against a real server and stores
77
83
 
78
84
  ![Overview, light](docs/screenshots/01-overview-light.png)
79
85
 
86
+ ![The keeper card](docs/screenshots/09-keeper.png)
87
+
80
88
  | Ticket | QR code |
81
89
  | --- | --- |
82
90
  | ![Ticket](docs/screenshots/03-ticket-light.png) | ![QR code](docs/screenshots/04-ticket-qr-light.png) |
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ <p align="center">
2
+ <img src="docs/assets/character.jpg" width="560" alt="猫耳少女抱着像素猫玩偶,身后的屏幕上显示 tailscale up">
3
+ </p>
4
+
5
+ <p align="center"><sub>形象图与图标由 gpt-image-2.6 创作。</sub></p>
6
+
1
7
  [English](README.en.md) · 简体中文
2
8
 
3
9
  # tailcat-webui
@@ -67,6 +73,8 @@ tailcat-webui [--port <n>] [--binary <path>] [--state-dir <dir>] [--no-open] [--
67
73
 
68
74
  ![总览(浅色)](docs/screenshots/01-overview-light.png)
69
75
 
76
+ ![猫猫看家装饰卡](docs/screenshots/09-keeper.png)
77
+
70
78
  | 票根 | 二维码 |
71
79
  | --- | --- |
72
80
  | ![票根](docs/screenshots/03-ticket-light.png) | ![二维码](docs/screenshots/04-ticket-qr-light.png) |
@@ -87,7 +95,7 @@ tailcat-webui [--port <n>] [--binary <path>] [--state-dir <dir>] [--no-open] [--
87
95
 
88
96
  - 核心 API 契约与安全模型:[docs/CORE-API.md](docs/CORE-API.md)
89
97
  - 视觉与交互规范:[docs/DESIGN.md](docs/DESIGN.md)
90
- - 内置二维码编码器的版权说明:[NOTICE](NOTICE)
98
+ - 形象图、图标与二维码编码器的版权说明:[NOTICE](NOTICE)
91
99
 
92
100
  ## 许可证
93
101
 
package/docs/CORE-API.md CHANGED
@@ -302,7 +302,7 @@ app.manager // 供测试/嵌入
302
302
  - `GET /api/state` → `{ ok: true, ...manager.snapshot(), server: { url, host, port } }`。
303
303
  - `POST /api/action` → JSON `{ action, ... }`,返回 `{ ok: true, ...snapshot, server }`;
304
304
  失败 `{ ok: false, error: { code, message } }` + 对应状态码。
305
- - 静态:`/` → `web/index.html`;`/assets/*` → `web/*`;`/icon.svg`;正确 content-type;
305
+ - 静态:`/` → `web/index.html`;`/assets/*` → `web/*`;`/icon.png`(`/icon.svg` 兼容旧路径);正确 content-type;
306
306
  `cache-control: no-store`。禁止目录穿越(解析后必须落在 `web/` 内)。
307
307
  - 安全(必须实现):
308
308
  - `Host` 必须是回环 host(`127.0.0.1`、`localhost`、`[::1]`)且端口匹配,否则 421。
package/docs/DESIGN.md CHANGED
@@ -13,7 +13,7 @@
13
13
  - 对象:一台跑着 tailcat 的机器,以及它要迎接的客户端设备。
14
14
  - 使用者:自己跑服务、常在外网或手机上打开这台机器的开发者。中文为主,英文并存。
15
15
  - 主任务:把客户端接进来(看地址、复制、扫码、执行 forward),并安全地管理隧道(起停、换地址、授权、诊断)。
16
- - 情绪:**夜里值守的安静与确定感**。不炫技、不卖萌;可爱只出现在猫的笔触里。
16
+ - 情绪:**夜里值守的安静与确定感**。不炫技;可爱来自同一位猫耳值守者——图标、票根印章与页脚那张小小的形象卡。
17
17
 
18
18
  ## 2. 三个母题
19
19
 
@@ -21,8 +21,10 @@
21
21
  线的状态就是隧道的状态:实线=在线,虚线=停止,流动虚线=启动中,断线=异常。
22
22
  2. **票根(Ticket)**——配对地址不是输入框,而是一张深墨色的车票:票面是地址与复制/显示,
23
23
  票根(右侧存根)盖着猫印章,二维码是存根背后的副券。地址是一份凭据,所以它配得上一张实体票。
24
- 3. **猫印章(CatSeal)**——圆形印章里的猫脸,轻微旋转 -6°。只出现在票根与空状态,
25
- 用来给"这趟线是你的"这件事盖章确认。
24
+ 3. **猫印章(CatSeal)**——圆形印章里的形象图头像,角上别一枚粉色蝴蝶结,整组轻微旋转 -6°。
25
+ 只出现在票根存根,用来给"这趟线是你的"这件事盖章确认。
26
+ 4. **看家卡(Keeper)**——页脚一张安静的纸卡:圆头像 + 蝴蝶结 + 像素猫,向第一次打开的人
27
+ 解释"猫在替你看家",并标注形象来源。它不是操作区,永远不阻挡主任务。
26
28
 
27
29
  三个母题之外的一切都保持安静:中性表面、细线、克制的字重。**大胆只花在票根上。**
28
30
 
@@ -54,6 +56,9 @@
54
56
  --tw-accent: #A9641A;
55
57
  --tw-accent-fill: #E8A23D;
56
58
  --tw-accent-wash: rgba(232, 162, 61, 0.14);
59
+ --tw-ribbon: #C9788F;
60
+ --tw-ribbon-deep: #8D4256;
61
+ --tw-ribbon-soft: #E7B2C0;
57
62
  --tw-pq: #5B3FA8;
58
63
  --tw-pq-wash: rgba(106, 75, 196, 0.10);
59
64
  --tw-ok: #17864A;
@@ -84,6 +89,9 @@
84
89
  --tw-accent: #F0B45C;
85
90
  --tw-accent-fill: #F2B45C;
86
91
  --tw-accent-wash: rgba(242, 180, 92, 0.16);
92
+ --tw-ribbon: #E3A5B4;
93
+ --tw-ribbon-deep: #B76F82;
94
+ --tw-ribbon-soft: #F2C7D1;
87
95
  --tw-pq: #B7A0FF;
88
96
  --tw-pq-wash: rgba(183, 160, 255, 0.14);
89
97
  --tw-ok: #4ED07E;
@@ -155,15 +163,15 @@
155
163
  所有交互控件:`cursor: pointer`,键盘可达,`:focus-visible` 用 2px 琥珀 outline、offset 2;
156
164
  hover 只改变底色/描边;禁用 opacity .45 且不可点。触控目标:桌面 32px 高,窄屏 40px。
157
165
 
158
- ### 7.1 CatMark(品牌标记)
159
- - 28px(页面标题旁)/ 20px(房间标题与设置节 icon,单色)。
160
- - 彩色版:深墨圆角方块(48 网格,圆角 12)+ 暖琥珀猫脸(来自 Twemoji 1f431 的改色重绘)
161
- + 一条极细的下巴阴影。没有文字。
162
- - 单色版:同样的猫头几何用 `currentColor`,眼睛挖空;20px 下必须仍能读出"猫"。
166
+ ### 7.1 BrandMark(品牌标记)
167
+ - 28px(页面标题旁)。`icon.png` 的 256px 源图直接显示:圆角方块保留原图的柔和外缘,
168
+ 外加 1px 发丝线;hover 时发丝线过渡到琥珀 48%。
169
+ - 20px 单色猫头(`currentColor`,眼睛挖空)继续用于房间标题与设置节 icon;20px 下必须仍能读出"猫"。
163
170
 
164
171
  ### 7.2 CatSeal(印章)
165
- - 52–64px 圆形,1.5px 琥珀描边,内部单色猫脸,整组 `rotate(-6deg)`,颜色 `--tw-accent`。
166
- - 只出现在票根存根与空状态;不用于按钮或列表。
172
+ - 52–64px 圆形,1.5px 琥珀描边,内部是 `portrait.jpg` 的圆形裁切(头像),右上角别一枚
173
+ 玫瑰色蝴蝶结,整组 `rotate(-6deg)`。
174
+ - 只出现在票根存根;不用于按钮或列表。盖章动效保留(120ms)。
167
175
 
168
176
  ### 7.3 TunnelLine(尾巴线)
169
177
  - `<svg viewBox="0 0 720 64" preserveAspectRatio="none">`,桌面高 64,窄屏 44。
@@ -195,7 +203,7 @@ hover 只改变底色/描边;禁用 opacity .45 且不可点。触控目标:
195
203
  可横向滚动,末端复制按钮)。
196
204
  - 再一条虚线:`本机地址` + `http://127.0.0.1:18080/` + 复制 + "在客户端浏览器打开"。
197
205
  - 存根(窄屏变成主票面下方的横向条):
198
- - 猫印章 56px + `TAILCAT` 字标(展示字 11px,字距 .18em,暖白 45%)。
206
+ - 猫印章 56px(形象图头像 + 蝴蝶结)+ `TAILCAT` 字标(展示字 11px,字距 .18em,暖白 45%)。
199
207
  - `显示二维码/隐藏二维码` 按钮;展开时二维码放在 12px 内边距的纯白圆角 10px 板上,
200
208
  最大 156px,带 2 模块静区;下方 11px 说明"扫码把地址带到客户端"。
201
209
  - 自定义 DERP map 时,票根底部加一行 11px 暖白 62% 提示:"客户端还需要同一个 DERP map"。
@@ -222,7 +230,19 @@ hover 只改变底色/描边;禁用 opacity .45 且不可点。触控目标:
222
230
  - ③ 打开客户端本机地址:`http://127.0.0.1:18080/`(可复制)。
223
231
  - 步骤之间不加"→"或竖线装饰;编号已表达顺序。
224
232
 
225
- ### 7.8 Drawer(设置抽屉)
233
+ ### 7.8 Keeper(看家卡)
234
+ - 位置:总览最末尾,steps 之后;宽屏横向 flex,窄屏换行,永不进入首屏前两屏。
235
+ - 结构:88px 圆头像(`portrait.jpg`,`object-position: 50% 25%`,2px 表面色描边 + 1px 发丝环)
236
+ + 右上角玫瑰蝴蝶结;右侧标题(展示字 19px,前接 18px 像素猫贴纸)+ 12.5px 说明
237
+ + 10.5px 来源行;最右 56px 像素猫线稿(窄屏隐藏)。
238
+ - 底色:`--tw-accent-wash` 的左上角径向光晕 + `--tw-surface`;1px `--tw-line`,16 圆角。
239
+ - 文案:标题"猫猫看家";说明"隧道、密钥和这张票根交给 tailcat 看管;这只猫只负责把地址安全地交到你手上。"
240
+ 来源"形象图 · gpt-image-2.6"。
241
+ - 像素猫:16×16 网格、`shape-rendering: crispEdges`;头用 `currentColor`,耳朵/鼻子用 `--tw-ribbon`,
242
+ 眼睛与胸前的白肚用 `--tw-surface`,因此深浅色都成立。`aria-hidden`。
243
+ - 卡内不出现按钮、链接或状态,纯装饰与品牌说明。
244
+
245
+ ### 7.9 Drawer(设置抽屉)
226
246
  - 标题行(button,整行可点):`aria-expanded`、`aria-controls`。
227
247
  - 左:标题 14px 600 + 琥珀覆盖点(仅当该抽屉存在面板覆盖字段)。
228
248
  - 右:摘要 12px `--tw-muted`(用当前值拼一句人话)+ 8px 发丝线 + chevron(1.5px,旋转 180°)。
@@ -348,14 +368,14 @@ hover 只改变底色/描边;禁用 opacity .45 且不可点。触控目标:
348
368
 
349
369
  ## 13. 图标与插画
350
370
 
351
- - **猫图标来源**:Twemoji `1f431`(cat face),CC-BY 4.0;本项目改色、简化、置于深墨圆角砖上,
352
- NOTICE 中标注 "Cat icon adapted from Twemoji, © Twitter, Inc and other contributors, CC-BY 4.0"。
353
- - `icon.svg`(包图标/README):48×48 深墨圆角砖 + 暖琥珀猫脸,透明外缘。
354
- - 房间标题/设置节 icon:20px 单色猫头(`currentColor`),眼睛挖空,20px 可辨。
355
- - favicon:复用 `icon.svg`。
356
- - 空状态插画:同一猫头的 96px 单色版(`--tw-line` 填充),闭眼,尾巴卷成一个小圈;
357
- 不做彩色插画,避免抢票根。
358
- - **禁止**:第三方图库水印图、来路不明的网图、带文字的图标、渐变拟物图标。
371
+ - **形象与图标**:由用户提供、`gpt-image-2.6` 创作;`icon.png`(256×256,透明圆角)、
372
+ `docs/assets/character.jpg`(README 头图)、`web/assets/portrait.jpg`(印章与看家卡)。
373
+ NOTICE 中标注 "created with gpt-image-2.6 for this project"。
374
+ - **单色猫头**:房间标题/设置节 icon 仍用 20px 单色猫头(`currentColor`,眼睛挖空);
375
+ 隧道线上的猫来自 Twemoji `1f431` 的改色剪影,NOTICE 保留 CC-BY 4.0 署名。
376
+ - favicon:`web/icon.png`(服务端 `/icon.png`;`/icon.svg` 保留旧路径回退)。
377
+ - **禁止**:第三方图库水印图、来路不明的网图、带文字的图标、渐变拟物图标;
378
+ 形象卡是唯一的彩色插画,不要扩散到每个房间。
359
379
 
360
380
  ## 14. 反模式(看到就改)
361
381
 
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailcat-webui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A quiet visual console for tailcat: serve local ports through an encrypted tunnel, pair devices with a ticket, and watch the line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/server.js CHANGED
@@ -360,7 +360,12 @@ export function createTailcatWebui(options = {}) {
360
360
  */
361
361
  async function resolveStaticFile(pathname) {
362
362
  if (pathname === '/' || pathname === '/index.html') return firstFile([['index.html']]);
363
- if (pathname === '/icon.svg') return firstFile([['icon.svg'], ['assets', 'icon.svg']]);
363
+ if (pathname === '/icon.png') {
364
+ return firstFile([['icon.png'], ['assets', 'icon.png'], ['icon.svg'], ['assets', 'icon.svg']]);
365
+ }
366
+ if (pathname === '/icon.svg') {
367
+ return firstFile([['icon.svg'], ['assets', 'icon.svg'], ['icon.png'], ['assets', 'icon.png']]);
368
+ }
364
369
  if (pathname.startsWith('/assets/')) {
365
370
  const segments = safeSegments(pathname.slice('/assets/'.length));
366
371
  if (segments === null) return null;
Binary file
package/web/components.js CHANGED
@@ -103,19 +103,73 @@ export function icon(name) {
103
103
 
104
104
 
105
105
  /**
106
- * The round amber stamp with the cat face. Decorative: the ticket text around
107
- * it already says everything it stands for.
106
+ * A small bow, echoing the ribbon in the artwork. Decoration only.
107
+ * @param {number} [size] - rendered width in pixels.
108
+ * @returns {Element} bow.
109
+ */
110
+ export function ribbonBow(size = 26) {
111
+ return fromMarkup(`<svg class="ribbon-bow" width="${size}" height="${Math.round(size * 0.72)}" viewBox="0 0 32 23" aria-hidden="true" focusable="false">
112
+ <g fill="var(--tw-ribbon)" stroke="var(--tw-ribbon-deep)" stroke-width="1.1" stroke-linejoin="round">
113
+ <path d="M15 11C10.2 3.6 2.2 4.4 3.3 11c-1.1 6.6 6.9 7.4 11.7 0Z"/>
114
+ <path d="M17 11c4.8-7.4 12.8-6.6 11.7 0 1.1 6.6-6.9 7.4-11.7 0Z"/>
115
+ <path d="M15.1 13.2 12.7 20l3.3-1.7 1.2 2.8 1.2-2.8 3.3 1.7-2.4-6.8Z"/>
116
+ <circle cx="16" cy="11" r="2.2" fill="var(--tw-ribbon-soft)" stroke-width="1"/>
117
+ </g>
118
+ </svg>`);
119
+ }
120
+
121
+ /**
122
+ * The pixel-cat plush from the artwork, drawn as a sticker. `currentColor`
123
+ * carries the head so the cat inverts with the theme; the ears and nose keep
124
+ * the rose accent.
125
+ * @param {number} [size] - rendered size in pixels.
126
+ * @returns {Element} pixel cat.
127
+ */
128
+ export function pixelCat(size = 28) {
129
+ return fromMarkup(`<svg class="pixel-cat" width="${size}" height="${size}" viewBox="0 0 16 16" shape-rendering="crispEdges" aria-hidden="true" focusable="false">
130
+ <g fill="currentColor">
131
+ <rect x="2" y="1" width="3" height="4"/>
132
+ <rect x="11" y="1" width="3" height="4"/>
133
+ <rect x="4" y="3" width="8" height="2"/>
134
+ <rect x="3" y="4" width="10" height="7"/>
135
+ </g>
136
+ <g fill="var(--tw-ribbon)">
137
+ <rect x="2" y="2" width="1" height="2"/>
138
+ <rect x="13" y="2" width="1" height="2"/>
139
+ <rect x="7" y="8" width="2" height="1"/>
140
+ </g>
141
+ <g fill="var(--tw-surface)">
142
+ <rect x="5" y="6" width="2" height="2"/>
143
+ <rect x="9" y="6" width="2" height="2"/>
144
+ <rect x="4" y="11" width="8" height="3"/>
145
+ </g>
146
+ <g fill="currentColor">
147
+ <rect x="5" y="6" width="1" height="1"/>
148
+ <rect x="9" y="6" width="1" height="1"/>
149
+ <rect x="6" y="12" width="1" height="1"/>
150
+ <rect x="8" y="12" width="1" height="1"/>
151
+ <rect x="7" y="13" width="1" height="1"/>
152
+ </g>
153
+ </svg>`);
154
+ }
155
+
156
+ /**
157
+ * The ticket's round stamp: the artwork portrait inside the amber ring, with a
158
+ * ribbon pinned to its corner. Decorative; the ticket text carries the facts.
108
159
  * @param {number} [size] - pixel size.
109
160
  * @returns {HTMLElement} seal.
110
161
  */
111
162
  export function catSeal(size = 56) {
112
- const markup = `<svg viewBox="0 0 64 64" width="${size}" height="${size}" aria-hidden="true" focusable="false">
113
- <circle cx="32" cy="32" r="30.25" fill="none" stroke="currentColor" stroke-width="1.5"/>
114
- <g transform="translate(15.5 16) scale(0.92)">
115
- <path fill="currentColor" fill-rule="evenodd" d="${CAT_FACE_PATH} ${CAT_EYES_PATH}"/>
116
- </g>
117
- </svg>`;
118
- return h('span', { class: 'cat-seal', 'aria-hidden': 'true' }, fromMarkup(markup));
163
+ return h('span', { class: 'cat-seal', 'aria-hidden': 'true', style: { width: `${size}px`, height: `${size}px` } },
164
+ h('img', {
165
+ class: 'cat-seal-img',
166
+ src: '/assets/portrait.jpg',
167
+ alt: '',
168
+ width: size,
169
+ height: size,
170
+ decoding: 'async',
171
+ }),
172
+ ribbonBow(Math.max(18, Math.round(size * 0.42))));
119
173
  }
120
174
 
121
175
  /** Field hint ids only need to be unique inside this document. */
package/web/dict.js CHANGED
@@ -108,6 +108,10 @@ const zh = {
108
108
  step3Title: '打开客户端本机地址',
109
109
  step3Body: '在客户端设备上打开这个地址。',
110
110
 
111
+ keeperTitle: '猫猫看家',
112
+ keeperBody: '隧道、密钥和这张票根交给 tailcat 看管;这只猫只负责把地址安全地交到你手上。',
113
+ keeperCredit: '形象图 · gpt-image-2.6',
114
+
111
115
  settingsTitle: '设置',
112
116
  settingsSubtitle: '带琥珀点的字段已由这里覆盖,其余跟随默认配置。',
113
117
  save: '保存',
@@ -415,6 +419,10 @@ const en = {
415
419
  step3Title: 'Open the client address',
416
420
  step3Body: 'Open this address in the client device’s browser.',
417
421
 
422
+ keeperTitle: 'Cat on watch',
423
+ keeperBody: 'tailcat keeps the tunnel, the keys and this ticket; this cat only makes sure the address reaches you safely.',
424
+ keeperCredit: 'Artwork · gpt-image-2.6',
425
+
418
426
  settingsTitle: 'Settings',
419
427
  settingsSubtitle: 'Fields with an amber dot are overridden here; the rest follow the built-in defaults.',
420
428
  save: 'Save',
package/web/icon.png ADDED
Binary file
package/web/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>tailcat webui</title>
7
7
  <meta name="description" content="A quiet console for tailcat: map local ports through an encrypted tunnel and pair devices with a ticket.">
8
8
  <meta name="color-scheme" content="light dark">
9
- <link rel="icon" href="/icon.svg" type="image/svg+xml">
9
+ <link rel="icon" href="/icon.png" type="image/png">
10
10
  <script src="/assets/boot.js"></script>
11
11
  <link rel="stylesheet" href="/assets/styles.css">
12
12
  </head>
@@ -14,7 +14,7 @@
14
14
  <div class="app">
15
15
  <header class="topbar" role="banner">
16
16
  <a class="brand" href="#overview">
17
- <img class="brand-mark" src="/icon.svg" alt="" width="28" height="28" decoding="async">
17
+ <img class="brand-mark" src="/icon.png" alt="" width="28" height="28" decoding="async">
18
18
  <h1 class="brand-name">tailcat webui</h1>
19
19
  </a>
20
20
  <div class="topbar-actions" id="topbar-actions"></div>
@@ -20,6 +20,8 @@ import {
20
20
  setDisabled,
21
21
  setClass,
22
22
  syncSignature,
23
+ pixelCat,
24
+ ribbonBow,
23
25
  CAT_FACE_PATH,
24
26
  CAT_EYES_PATH,
25
27
  } from './components.js';
@@ -254,13 +256,33 @@ export function createOverviewRoom(ctx) {
254
256
  h('p', { class: 'step-text' }, t('step3Body')),
255
257
  stepLocalSlot))));
256
258
 
259
+ /* Keeper card ------------------------------------------------------------- */
260
+ const keeperArt = h('div', { class: 'keeper-art' },
261
+ h('img', {
262
+ class: 'keeper-portrait',
263
+ src: '/assets/portrait.jpg',
264
+ alt: '',
265
+ width: 176,
266
+ height: 176,
267
+ loading: 'lazy',
268
+ decoding: 'async',
269
+ }),
270
+ ribbonBow(30));
271
+ const keeper = h('section', { class: 'keeper', 'data-testid': 'keeper', 'aria-labelledby': 'keeper-title' },
272
+ keeperArt,
273
+ h('div', { class: 'keeper-copy' },
274
+ h('h2', { class: 'keeper-title', id: 'keeper-title' }, pixelCat(18), t('keeperTitle')),
275
+ h('p', { class: 'keeper-text' }, t('keeperBody')),
276
+ h('p', { class: 'keeper-credit' }, t('keeperCredit'))),
277
+ h('div', { class: 'keeper-plush', 'aria-hidden': 'true' }, pixelCat(56)));
278
+
257
279
  const el = h('section', {
258
280
  class: 'room',
259
281
  'data-testid': 'room-panel-overview',
260
282
  id: 'room-overview',
261
283
  role: 'tabpanel',
262
284
  'aria-labelledby': 'tab-overview',
263
- }, programBanner, errorAlert, hero, tunnel.el, ticket.el, pqCallout, steps);
285
+ }, programBanner, errorAlert, hero, tunnel.el, ticket.el, pqCallout, steps, keeper);
264
286
 
265
287
  function disarmRotate() {
266
288
  ui.rotateArmed = false;
package/web/styles.css CHANGED
@@ -19,6 +19,9 @@
19
19
  --tw-accent: #A9641A;
20
20
  --tw-accent-fill: #E8A23D;
21
21
  --tw-accent-wash: rgba(232, 162, 61, 0.14);
22
+ --tw-ribbon: #C9788F;
23
+ --tw-ribbon-deep: #8D4256;
24
+ --tw-ribbon-soft: #E7B2C0;
22
25
  --tw-pq: #5B3FA8;
23
26
  --tw-pq-wash: rgba(106, 75, 196, 0.10);
24
27
  --tw-ok: #17864A;
@@ -50,6 +53,9 @@
50
53
  --tw-accent: #F0B45C;
51
54
  --tw-accent-fill: #F2B45C;
52
55
  --tw-accent-wash: rgba(242, 180, 92, 0.16);
56
+ --tw-ribbon: #E3A5B4;
57
+ --tw-ribbon-deep: #B76F82;
58
+ --tw-ribbon-soft: #F2C7D1;
53
59
  --tw-pq: #B7A0FF;
54
60
  --tw-pq-wash: rgba(183, 160, 255, 0.14);
55
61
  --tw-ok: #4ED07E;
@@ -188,7 +194,13 @@ button {
188
194
  width: 28px;
189
195
  height: 28px;
190
196
  flex: none;
197
+ border: 1px solid var(--tw-line-soft);
191
198
  border-radius: 8px;
199
+ object-fit: cover;
200
+ }
201
+
202
+ .brand:hover .brand-mark {
203
+ border-color: color-mix(in srgb, var(--tw-accent) 48%, transparent);
192
204
  }
193
205
 
194
206
  .brand-name {
@@ -954,11 +966,29 @@ button {
954
966
  }
955
967
 
956
968
  .cat-seal {
969
+ position: relative;
957
970
  display: inline-flex;
958
- color: var(--tw-accent);
971
+ flex: none;
959
972
  transform: rotate(-6deg);
960
973
  }
961
974
 
975
+ .cat-seal-img {
976
+ width: 100%;
977
+ height: 100%;
978
+ border: 1.5px solid var(--tw-accent-fill);
979
+ border-radius: 50%;
980
+ object-fit: cover;
981
+ object-position: 50% 45%;
982
+ background: var(--tw-surface);
983
+ }
984
+
985
+ .cat-seal .ribbon-bow {
986
+ position: absolute;
987
+ top: -7px;
988
+ right: -8px;
989
+ transform: rotate(9deg);
990
+ }
991
+
962
992
  .ticket.is-stamped .cat-seal {
963
993
  animation: tw-stamp 120ms ease-out;
964
994
  }
@@ -1191,6 +1221,90 @@ button {
1191
1221
  min-width: 0;
1192
1222
  }
1193
1223
 
1224
+ /* 12b. Keeper ------------------------------------------------------------- */
1225
+
1226
+ .keeper {
1227
+ display: flex;
1228
+ flex-wrap: wrap;
1229
+ align-items: center;
1230
+ gap: 16px 18px;
1231
+ margin-top: 24px;
1232
+ padding: 18px 20px;
1233
+ border: 1px solid var(--tw-line);
1234
+ border-radius: 16px;
1235
+ background:
1236
+ radial-gradient(140% 180% at 0% 0%, var(--tw-accent-wash), transparent 46%),
1237
+ var(--tw-surface);
1238
+ }
1239
+
1240
+ .keeper-art {
1241
+ position: relative;
1242
+ flex: none;
1243
+ }
1244
+
1245
+ .keeper-portrait {
1246
+ width: 88px;
1247
+ height: 88px;
1248
+ border: 2px solid var(--tw-surface);
1249
+ border-radius: 50%;
1250
+ box-shadow: 0 0 0 1px var(--tw-line);
1251
+ object-fit: cover;
1252
+ object-position: 50% 25%;
1253
+ }
1254
+
1255
+ .keeper-art .ribbon-bow {
1256
+ position: absolute;
1257
+ top: -7px;
1258
+ right: -9px;
1259
+ transform: rotate(9deg);
1260
+ }
1261
+
1262
+ .keeper-copy {
1263
+ flex: 1 1 260px;
1264
+ min-width: 0;
1265
+ }
1266
+
1267
+ .keeper-title {
1268
+ display: flex;
1269
+ align-items: center;
1270
+ gap: 8px;
1271
+ color: var(--tw-ink);
1272
+ font-family: var(--tw-display);
1273
+ font-size: 19px;
1274
+ font-weight: 600;
1275
+ line-height: 1.25;
1276
+ }
1277
+
1278
+ .keeper-title .pixel-cat {
1279
+ flex: none;
1280
+ padding: 2px;
1281
+ border-radius: 7px;
1282
+ background: var(--tw-surface-soft);
1283
+ box-shadow: 0 0 0 1px var(--tw-line-soft);
1284
+ }
1285
+
1286
+ .keeper-text {
1287
+ margin-top: 5px;
1288
+ max-width: 44em;
1289
+ color: var(--tw-muted);
1290
+ font-size: 12.5px;
1291
+ line-height: 1.65;
1292
+ }
1293
+
1294
+ .keeper-credit {
1295
+ margin-top: 7px;
1296
+ color: var(--tw-faint);
1297
+ font-size: 10.5px;
1298
+ letter-spacing: 0.02em;
1299
+ }
1300
+
1301
+ .keeper-plush {
1302
+ flex: none;
1303
+ margin-left: auto;
1304
+ color: var(--tw-ink);
1305
+ opacity: 0.82;
1306
+ }
1307
+
1194
1308
  /* 13. Code, switches, fields --------------------------------------------- */
1195
1309
 
1196
1310
  .code-block {
@@ -2172,6 +2286,24 @@ button {
2172
2286
  font-size: 18px;
2173
2287
  }
2174
2288
 
2289
+ .keeper {
2290
+ gap: 12px 14px;
2291
+ padding: 16px;
2292
+ }
2293
+
2294
+ .keeper-portrait {
2295
+ width: 68px;
2296
+ height: 68px;
2297
+ }
2298
+
2299
+ .keeper-title {
2300
+ font-size: 17px;
2301
+ }
2302
+
2303
+ .keeper-plush {
2304
+ display: none;
2305
+ }
2306
+
2175
2307
  .facts {
2176
2308
  grid-template-columns: minmax(0, 1fr);
2177
2309
  }
@@ -2725,8 +2857,8 @@ button {
2725
2857
  border-color: ButtonBorder;
2726
2858
  }
2727
2859
 
2728
- .cat-seal {
2729
- color: CanvasText;
2860
+ .cat-seal-img {
2861
+ border-color: CanvasText;
2730
2862
  }
2731
2863
 
2732
2864
  .room-dot,
package/web/icon.svg DELETED
@@ -1,11 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" role="img" aria-label="tailcat">
2
- <defs>
3
- <linearGradient id="tile" x1="0" y1="0" x2="0" y2="1">
4
- <stop offset="0" stop-color="#1B2028"/>
5
- <stop offset="1" stop-color="#101319"/>
6
- </linearGradient>
7
- </defs>
8
- <rect width="48" height="48" rx="12" fill="url(#tile)"/>
9
- <rect x="0.75" y="0.75" width="46.5" height="46.5" rx="11.25" fill="none" stroke="#F2B45C" stroke-opacity=".26"/>
10
- <g transform="translate(7.14 7.62) scale(0.938)"><path fill="#F2B45C" d="M32.348 13.999s3.445-8.812 1.651-11.998c-.604-1.073-8 1.998-10.723 5.442 0 0-2.586-.86-5.276-.86s-5.276.86-5.276.86C10.001 3.999 2.605.928 2.001 2.001.207 5.187 3.652 13.999 3.652 13.999c-.897 1.722-1.233 4.345-1.555 7.16-.354 3.086.35 5.546.658 6.089.35.617 2.123 2.605 4.484 4.306 3.587 2.583 8.967 3.445 10.761 3.445s7.174-.861 10.761-3.445c2.361-1.701 4.134-3.689 4.484-4.306.308-.543 1.012-3.003.659-6.089-.324-2.814-.659-5.438-1.556-7.16z"/><path fill="#D98A2B" d="M2.359 2.971c.2-.599 5.348 2.173 6.518 5.404 0 0-3.808 2.624-4.528 4.624 0 0-2.99-7.028-1.99-10.028z"/><path fill="#F2B45C" d="M5.98 7.261c0-1.414 5.457 2.733 4.457 3.733s-1.255.72-2.255 1.72S5.98 8.261 5.98 7.261z"/><path fill="#D98A2B" d="M33.641 2.971c-.2-.599-5.348 2.173-6.518 5.404 0 0 3.808 2.624 4.528 4.624 0 0 2.99-7.028 1.99-10.028z"/><path fill="#F2B45C" d="M30.02 7.261c0-1.414-5.457 2.733-4.457 3.733s1.255.72 2.255 1.72 2.202-4.453 2.202-5.453z"/><path fill="#1A1D24" d="M14.001 20.001c0 1.105-.896 1.999-2 1.999s-2-.894-2-1.999c0-1.104.896-1.999 2-1.999s2 .896 2 1.999zm11.998 0c0 1.105-.896 1.999-2 1.999-1.105 0-2-.894-2-1.999 0-1.104.895-1.999 2-1.999s2 .896 2 1.999z"/><path fill="#FBE7C6" d="M2.201 30.458c-.148 0-.294-.065-.393-.19-.171-.217-.134-.531.083-.702.162-.127 4.02-3.12 10.648-2.605.275.021.481.261.46.536-.021.275-.257.501-.537.46-6.233-.474-9.915 2.366-9.951 2.395-.093.07-.202.106-.31.106zm8.868-4.663c-.049 0-.1-.007-.149-.022-4.79-1.497-8.737-.347-8.777-.336-.265.081-.543-.07-.623-.335-.079-.265.071-.543.335-.622.173-.052 4.286-1.247 9.362.338.264.083.411.363.328.627-.066.213-.263.35-.476.35zm22.73 4.663c.148 0 .294-.065.393-.19.171-.217.134-.531-.083-.702-.162-.127-4.02-3.12-10.648-2.605-.275.021-.481.261-.46.536.022.275.257.501.537.46 6.233-.474 9.915 2.366 9.951 2.395.093.07.202.106.31.106zm-8.868-4.663c.049 0 .1-.007.149-.022 4.79-1.497 8.737-.347 8.777-.336.265.081.543-.07.623-.335.079-.265-.071-.543-.335-.622-.173-.052-4.286-1.247-9.362.338-.264.083-.411.363-.328.627.066.213.263.35.476.35z"/><path fill="#2F3540" d="M24.736 30.898c-.097-.258-.384-.392-.643-.294-.552.206-1.076.311-1.559.311-1.152 0-1.561-.306-2.033-.659-.451-.338-.956-.715-1.99-.803v-2.339c0-.276-.224-.5-.5-.5s-.5.224-.5.5v2.373c-.81.115-1.346.439-1.816.743-.568.367-1.059.685-2.083.685-.482 0-1.006-.104-1.558-.311-.258-.095-.547.035-.643.294-.097.259.035.547.293.644.664.247 1.306.373 1.907.373 1.319 0 2.014-.449 2.627-.845.524-.339.98-.631 1.848-.635.992.008 1.358.278 1.815.621.538.403 1.147.859 2.633.859.601 0 1.244-.126 1.908-.373.259-.097.391-.385.294-.644z"/><path fill="#D9556B" d="M19.4 24.807h-2.8c-.64 0-1.163.523-1.163 1.163 0 .639.523 1.163 1.163 1.163h.237v.345c0 .639.523 1.163 1.163 1.163s1.163-.523 1.163-1.163v-.345h.237c.639 0 1.163-.523 1.163-1.163s-.524-1.163-1.163-1.163z"/><path fill="#D98A2B" d="M18.022 17.154c-.276 0-.5-.224-.5-.5V8.37c0-.276.224-.5.5-.5s.5.224.5.5v8.284c0 .277-.223.5-.5.5zM21 15.572c-.276 0-.5-.224-.5-.5 0-2.882 1.232-5.21 1.285-5.308.13-.244.435-.334.677-.204.243.13.334.433.204.677-.012.021-1.166 2.213-1.166 4.835 0 .276-.224.5-.5.5zm-6 0c-.276 0-.5-.224-.5-.5 0-2.623-1.155-4.814-1.167-4.835-.13-.244-.038-.546.205-.677.242-.131.545-.039.676.204.053.098 1.285 2.426 1.285 5.308.001.276-.223.5-.499.5z"/></g>
11
- </svg>