feat: added PWA support

This commit is contained in:
2026-03-07 15:48:27 +01:00
parent acfbe71baa
commit fc83bab9f7
8 changed files with 150 additions and 1 deletions

29
static/offline.html Normal file
View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Votify Web - Offline</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #121212; color: #fff; display: flex; align-items: center;
justify-content: center; min-height: 100vh; margin: 0; text-align: center;
}
h1 span { color: #1db954; }
p { color: #b3b3b3; margin-top: 16px; }
button {
margin-top: 24px; background: #1db954; color: #000; border: none;
padding: 12px 32px; border-radius: 20px; font-size: 1rem;
font-weight: 600; cursor: pointer;
}
</style>
</head>
<body>
<div>
<h1><span>Votify</span> Web</h1>
<p>You are currently offline.<br>Please check your connection and try again.</p>
<button onclick="window.location.reload()">Retry</button>
</div>
</body>
</html>