Rework the phone layout and make the game installable

Phones get a one-row status strip, a bottom tab bar (play, speed, goals,
deals, NOC, networks) and draggable bottom sheets; in landscape the sheets
slide in from the side. Toasts can be tapped away, dialogs become bottom
sheets and the title screen keeps its start button in reach.

Adds a service worker for offline play and an install button (the
browser prompt on Android, instructions on iOS).
This commit is contained in:
Frederic Jung 2026-10-24 22:52:55 +02:00
parent cc28dfeb74
commit 5786f76ed9
No known key found for this signature in database
5 changed files with 188 additions and 12 deletions

View file

@ -16,7 +16,7 @@ fi
rm -rf "$OUT"
cp -R site "$OUT"
for f in "$OUT/index.html" "$OUT/sitemap.xml" "$OUT/llms.txt"; do
for f in "$OUT/index.html" "$OUT/sitemap.xml" "$OUT/llms.txt" "$OUT/sw.js"; do
sed -i.bak -e "s/__VERSION__/${VERSION}/g" -e "s/__BUILD_DATE__/${BUILD_DATE}/g" "$f"
rm -f "$f.bak"
done