Flechazo f4017387b0 feat: split the glass into scene, page and bar containers; press, stretch and menu morph animations
The bar and its menu render on a small fixed canvas above the page glass, so neither trails the other while scrolling. Small glass skips blur and dispersion, and idle frames redraw at a low rate. Corners are superellipses; glare lifts chroma; pills swell when pressed and stretch along their motion; the language menu's glass grows out of its button with a sliding highlight.
2026-10-25 09:54:35 +08:00

bd2-site

BD2 离线版的客户端与服务端下载站,部署在 https://bd2.flechazo.xin。纯静态页面,无构建步骤。

  • site/:站点根目录。背景 assets/bg.webp 裁自 SpecialIllust291(2048×1100);app.js 用 WebGL 着色器绘制背景光影和所有液态玻璃(按元素实时矩形计算折射、色散、高光,跟随鼠标形变),不支持 WebGL 时退回 CSS backdrop-filter 玻璃。data/latest.json 记录当前下载文件的版本、大小与 SHA-256;更新日志在浏览器中读取 /releases/CHANGELOG.md。
  • /releases/ 由 Caddy 只读反代到 BD2 服务端的签名发布目录(DATA_DIR/releases),与启动器、服务端自动更新使用同一套文件。
  • scripts/sync.py:BD2 仓库 bd2w release publish、签名并上传发布材料后,运行它重新生成 site/data/latest.json,再提交、推送并部署。
  • scripts/serve.py:本地预览,/releases/ 从发布主机获取。
python -I scripts/sync.py --release F:/code/go/bd2/.build/release-site
python -I scripts/serve.py --upstream https://bd2.flechazo.xin

部署:服务器 /opt/bd2-site 是本仓库的检出,Caddy 站点块位于 server-infra/bd2-site/Caddyfile。

cd /opt/bd2-site && git fetch origin && git checkout --detach <commit>
S
Description
No description provided
Readme
637 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 65.5%
CSS 23.5%
HTML 6.5%
Python 4.5%