Add PWA support (closes #25)

This commit is contained in:
Arya Kiran 2024-05-21 21:50:58 +05:30
parent 710d3d0d07
commit d3f8a0d2eb
No known key found for this signature in database
GPG key ID: 842D12BDA50DF120
2 changed files with 24 additions and 0 deletions

23
public/manifest.json Normal file
View file

@ -0,0 +1,23 @@
{
"name": "Mozhi",
"short_name": "Mozhi",
"description": "An alternative-frontend for many translation engines!",
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#FFEDD5",
"theme_color": "#FFEDD5",
"icons": [
{
"src": "/assets/mozhi.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "/assets/mozhi.svg",
"sizes": "512x512",
"type": "image/svg",
"purpose": "maskable"
}
]
}

View file

@ -17,6 +17,7 @@
<script src="/js/nice-select2.js"></script>
<link rel="stylesheet" href="/css/nice-select2.css">
<link rel="stylesheet" href="/css/style.css" />
<link rel="manifest" href="/manifest.json">
</head>
<body>