feat: add PWA manifest.json

This commit is contained in:
ntimo 2023-11-30 20:09:55 +00:00
parent 89644d4e33
commit c9aeeb4eff
No known key found for this signature in database
GPG Key ID: EB14F526377FE8B2
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="manifest" href="%sveltekit.assets%/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<script>
// On page load or when changing themes, best to add inline in `head` to avoid FOUC

16
static/manifest.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "Ollama Web UI",
"short_name": "Ollama",
"start_url": "/",
"display": "standalone",
"background_color": "#343541",
"theme_color": "#343541",
"orientation": "portrait-primary",
"icons": [
{
"src": "/favicon.png",
"type": "image/png",
"sizes": "844x884"
}
]
}