nomadweb/redmini
2026-09-27 13:14:28 -05:00
..
release Rebuild redmini as offline mirror of the existing H5 (same globals.css classes). 2026-09-27 13:14:28 -05:00
scripts Rebuild redmini as offline mirror of the existing H5 (same globals.css classes). 2026-09-27 13:14:28 -05:00
src Rebuild redmini as offline mirror of the existing H5 (same globals.css classes). 2026-09-27 13:14:28 -05:00
tool Rebuild redmini as offline mirror of the existing H5 (same globals.css classes). 2026-09-27 13:14:28 -05:00
README.md Rebuild redmini as offline mirror of the existing H5 (same globals.css classes). 2026-09-27 13:14:28 -05:00

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 请用网页版。

构建

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 内嵌