| 块 | 宽 | 放什么 |
|---|---|---|
| 8 左侧边栏 | 固定 264px(--w-sidebar),深梅紫 | 字标、品牌切换、新建活动、导航、活动列表、连接状态和额度、账号 |
| 9 AI 对话区 | 剩下的宽;消息列最宽 660px(--w-col)居中 | 顶栏、运行中条、消息流(消息里嵌 1–7 号卡片组件)、底部输入框 |
| 右侧文档面板 | 打开时固定 560px(--w-panel),对话区最窄 400px(--w-chat-min) | 一张文档卡(Brief、策略);点顶栏进度胶囊的「查看」打开 |
shell.css,引用顺序:tokens.css → components.css → cards.css → shell.css。components.css 已有的写法;shell.css 只补侧栏和对话区里规范原来没有的几样(顶栏的品牌名和发信邮箱、运行中条、日期分隔、后台在跑、底部输入框)。从上到下:字标 → 品牌切换 → 新建活动 → 本品牌导航 → 活动列表 → 底部连接状态和额度 → 账号。宽度固定,不随内容变。
| 是什么 |
|
| 什么时候用 |
|
| 不用于 |
|
| 组成 |
|
| 状态 |
|
| 文案规矩 |
|
| 支持的输入和操作 |
|
| 数据 | {
"brand": { "name": "示例品牌 Printly", "others_waiting": 2 },
"nav": [{ "key": "home", "label": "首页", "waiting": 3, "active": true },
{ "key": "creators", "label": "达人库" }, { "key": "settings", "label": "品牌设置" }],
"campaigns": [{ "name": "P1 · 美国 · 年末", "state": "wait", "waiting": 3 },
{ "name": "P1 · 英国 · 1 月", "state": "live", "waiting": 0 }], // state: live | wait
"wrapped": 1,
"mailbox": "connected", "credits": 102,
"user": { "name": "示例用户", "email": "you@example.com" }
} |
从上到下:顶栏 → 运行中条(有后台任务时才有)→ 消息流 → 底部输入框。消息里的卡片用 1–7 号组件。
| 是什么 |
|
| 什么时候用 |
|
| 不用于 |
|
| 组成 |
|
| 状态 |
|
| 文案规矩 |
|
| 支持的输入和操作 |
|
| 数据 | {
"title": "示例品牌 Printly",
"sender": "creators@printly.example",
"running": [{ "task": "找达人", "done": 124, "total": 200 },
{ "task": "写首封邮件", "done": 30, "total": 76 }],
"messages": [
{ "role": "day", "text": "今天 · 12 月 2 日 周二" },
{ "role": "ai", "text": "下午好。示例品牌 Printly 有 3 件事等你……", "cards": [{ "component": "pick-card", "title": "报价" }] },
{ "role": "user", "text": "新活动:P1,加拿大,做手工的达人,平均播放 5 万以上" },
{ "role": "bg", "text": "后台在跑:找达人、写首封邮件。" }
],
"panel": { "open": false, "doc": "brief" }
} |