Add service worker and offline page (needed to install the webapp on mobile devices)

This commit is contained in:
Lorenzo Breda
2021-09-10 22:35:59 +02:00
parent e9f2f56634
commit 16d39ff9d0
14 changed files with 250 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<base href="{{ route('index') }}/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Firefly III | Offline</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
<link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="error-page">
<h2 class="headline text-danger"><span class="fas fa-unlink"></span></h2>
<div class="error-content">
<h3><span class="fas fa-exclamation-triangle text-danger"></span> Offline</h3>
<p>
{{ trans('errors.offline_header') }}
</p>
<p>
{{ trans('errors.offline_unreachable') }}
</p>
<p>
{{ trans('errors.offline_github')|raw }}
</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>