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

@ -8,11 +8,38 @@
"orientation": "any",
"background_color": "#57C4E5",
"theme_color": "#57C4E5",
"categories": ["games", "education", "simulation"],
"categories": [
"games",
"education",
"simulation"
],
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
{ "src": "/favicon.svg", "sizes": "any", "type": "image/svg+xml" }
]
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "/icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/favicon.svg",
"sizes": "any",
"type": "image/svg+xml"
}
],
"id": "/",
"display_override": [
"standalone",
"fullscreen"
],
"shortcuts": []
}