feat: add PWA support - manifest, service worker, offline page, icons

This commit is contained in:
2026-06-14 10:15:20 -04:00
parent 01f1215cef
commit 639af6371e
8 changed files with 135 additions and 0 deletions

21
views/errors/offline.php Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Offline ServerManager</title>
<link rel="stylesheet" href="/assets/css/style.css?v=<?= asset_version() ?>">
</head>
<body class="error-page">
<div class="error-card">
<div class="error-code" style="font-size:4rem">📡</div>
<h1 class="error-message">You're Offline</h1>
<p class="error-description">ServerManager needs an internet connection to manage your servers.<br>Check your connection and try again.</p>
<div class="error-actions">
<a href="/dashboard" class="btn btn-primary">
<i class="fas fa-sync"></i> Retry
</a>
</div>
</div>
</body>
</html>