Add PWA support (closes #25)
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 30m14s
mozhi pipeline / Build and publish artifacts (push) Successful in 1h32m44s

This commit is contained in:
Arya 2024-05-21 21:50:58 +05:30
parent 710d3d0d07
commit d3f8a0d2eb
Signed by: arya
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> <script src="/js/nice-select2.js"></script>
<link rel="stylesheet" href="/css/nice-select2.css"> <link rel="stylesheet" href="/css/nice-select2.css">
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="manifest" href="/manifest.json">
</head> </head>
<body> <body>