feat: add PWA support with manifest and service worker
This commit is contained in:
5
client/public/icons/icon-192.svg
Normal file
5
client/public/icons/icon-192.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
||||
<circle cx="32" cy="32" r="30" fill="#0b7285"/>
|
||||
<path d="M20 26c4-8 16-10 24 0s-8 20-8 20l-4-8-8 8" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="32" cy="24" r="4" fill="#fff"/>
|
||||
</svg>
|
After Width: | Height: | Size: 310 B |
5
client/public/icons/icon-512.svg
Normal file
5
client/public/icons/icon-512.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
||||
<circle cx="32" cy="32" r="30" fill="#0b7285"/>
|
||||
<path d="M20 26c4-8 16-10 24 0s-8 20-8 20l-4-8-8 8" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="32" cy="24" r="4" fill="#fff"/>
|
||||
</svg>
|
After Width: | Height: | Size: 310 B |
25
client/public/manifest.webmanifest
Normal file
25
client/public/manifest.webmanifest
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Traveling Around The World",
|
||||
"short_name": "Travel Map",
|
||||
"description": "記錄旅程、管理旅遊分類並在地圖上標記足跡的 PWA。",
|
||||
"lang": "zh-Hant",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#ffffff",
|
||||
"theme_color": "#0f172a",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/icon-192.svg",
|
||||
"sizes": "192x192",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-512.svg",
|
||||
"sizes": "512x512",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user