pwa-drawing-tools/offline.html
ekke 5d81e00aeb files for /public
within /public there is a folder called /public/icons which holds all the icons mentioned in manfest.json
2026-01-27 09:53:37 +00:00

93 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#2d5016">
<title>Offline - LUPMIS</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
color: #333;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.offline-container {
text-align: center;
max-width: 400px;
}
.offline-icon {
font-size: 80px;
margin-bottom: 20px;
}
h1 {
color: #2d5016;
margin-bottom: 10px;
}
p {
color: #666;
line-height: 1.6;
}
button {
background: #2d5016;
color: white;
border: none;
padding: 12px 24px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
margin-top: 20px;
}
button:hover {
background: #1e3a0f;
}
.hint {
margin-top: 30px;
padding: 15px;
background: #e3f2fd;
border-radius: 8px;
font-size: 14px;
color: #1565c0;
}
</style>
</head>
<body>
<div class="offline-container">
<div class="offline-icon">📴</div>
<h1>You're Offline</h1>
<p>
This page isn't available offline. Please check your internet connection and try again.
</p>
<button onclick="window.location.reload()">Try Again</button>
<div class="hint">
💡 <strong>Tip:</strong> Visit the main app while online first.
Once cached, you can collect data offline!
</div>
</div>
<script>
// Auto-reload when back online
window.addEventListener('online', () => {
window.location.reload();
});
</script>
</body>
</html>