8145645252
- Generate PWA icons in multiple sizes (72-512px) - Create favicon.svg with app branding - Add offline.html fallback page - Update app.html with PWA meta tags - Add theme-color and apple-touch-icon - Configure viewport-fit for mobile notches - PWA manifest already configured in vite.config.js - Service worker caching already configured
77 lines
1.7 KiB
HTML
77 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Offline - Opal Task Manager</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background-color: #f9fafb;
|
|
color: #111827;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.container {
|
|
text-align: center;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
margin-bottom: 1.5rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
color: #111827;
|
|
}
|
|
|
|
p {
|
|
color: #6b7280;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.retry-btn {
|
|
margin-top: 1.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
background-color: #4f46e5;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.retry-btn:hover {
|
|
background-color: #4338ca;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
<h1>You're Offline</h1>
|
|
<p>It looks like you've lost your internet connection. Please check your connection and try again.</p>
|
|
<button class="retry-btn" onclick="window.location.reload()">Retry</button>
|
|
</div>
|
|
</body>
|
|
</html>
|