feat: added PWA support
This commit is contained in:
29
static/offline.html
Normal file
29
static/offline.html
Normal 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>
|
||||
Reference in New Issue
Block a user