Put a full-width product banner at the top of the README.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Tommy
2026-08-15 22:54:09 +08:00
parent 27af857d4b
commit 079d5de378
5 changed files with 206 additions and 3 deletions

View File

@@ -21,9 +21,24 @@ capture() {
echo "wrote $OUT/$name.png"
}
capture_banner() {
"$CHROME" \
--headless=new \
--disable-gpu \
--no-sandbox \
--hide-scrollbars \
--force-device-scale-factor=2 \
--window-size=1920,960 \
--default-background-color=00000000 \
--screenshot="$OUT/banner.png" \
"file://$SRC/banner.html"
echo "wrote $OUT/banner.png"
}
mkdir -p "$OUT"
capture splash "$SRC/splash.html"
capture session "$SRC/session.html"
capture vision "$SRC/vision.html"
capture menu "$SRC/menu.html"
capture_banner
cp -f "$ROOT/ui/icon.png" "$OUT/icon.png"