feat: add PWA support with manifest, icons, and theme color management

This commit is contained in:
hamster1963
2025-02-13 11:21:53 +08:00
parent b298d91aa1
commit d4f6db436a
8 changed files with 119 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

17
public/manifest.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "Nezha Monitoring",
"short_name": "Nezha Monitoring",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
}
],
"theme_color": "hsl(0 0% 98%)",
"background_color": "hsl(0 0% 98%)",
"start_url": "/",
"display": "standalone",
"orientation": "portrait"
}