nomadweb/redmini/README.md
2026-09-27 13:14:28 -05:00

27 lines
998 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# redmini · nomadro 小红书离线包 = 官网 H5 镜像
**不再另起 UI。** 样式直接来自 `frontend/src/app/globals.css`(打包为 `nomadro.css`),DOM class 与 `localhost:3000` 首页一致:`navbar` / `hero` / `dest-card` / `visa-card` / `journey-strip` / `footer` …
数据为本机 mock 快照(无法联网)。完整登录/支付/RSVP 请用网页版。
## 构建
```bash
cd redmini
python scripts/build_data.py # 从 backend mock 导出 data.js
# nomadro.css 由仓库维护:从 frontend globals 同步时再跑 sanitize
python scripts/assemble.py
python scripts/static_scan.py
python scripts/pack.py # -> dist/nomadro-redmini.zip
```
本地预览:打开 `release/index.html`(或 `tool/index.html`,需有 `tool/data.js`)。
## 对照官网
| 官网 H5 | 离线包 |
|---------|--------|
| `frontend/src/app/globals.css` | `tool/nomadro.css` |
| Hero / Destinations / Visa / FAQ | 同名 class 渲染 |
| API JSON | `src/data.js` 内嵌 |