139 lines
3.8 KiB
HTML
139 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Atlas CMMS - Offline</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
}
|
|
|
|
.offline-container {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
max-width: 500px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 1rem;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.offline-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 1.5rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 1rem;
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 2rem;
|
|
opacity: 0.9;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.retry-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
color: white;
|
|
padding: 0.75rem 2rem;
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
|
|
.retry-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.features {
|
|
margin-top: 2rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.feature-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
.feature-list li {
|
|
padding: 0.5rem 0;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.feature-list li:before {
|
|
content: "✓ ";
|
|
margin-right: 0.5rem;
|
|
color: #4ade80;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="offline-container">
|
|
<div class="offline-icon">
|
|
📡
|
|
</div>
|
|
|
|
<h1>You're Offline</h1>
|
|
|
|
<p>
|
|
Don't worry! Atlas CMMS works offline too. You can still view cached data
|
|
and create work orders that will sync when you're back online.
|
|
</p>
|
|
|
|
<a href="/" class="retry-btn" onclick="window.location.reload()">
|
|
Try Again
|
|
</a>
|
|
|
|
<div class="features">
|
|
<p style="margin-bottom: 0.5rem; font-weight: 600;">Available Offline:</p>
|
|
<ul class="feature-list">
|
|
<li>View cached work orders and assets</li>
|
|
<li>Create new work orders</li>
|
|
<li>Take photos and notes</li>
|
|
<li>Access location data</li>
|
|
<li>Review maintenance schedules</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Auto-retry when connection is restored
|
|
window.addEventListener('online', () => {
|
|
window.location.href = '/'
|
|
})
|
|
|
|
// Check connection status
|
|
if (navigator.onLine) {
|
|
window.location.href = '/'
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |