mirror of
https://github.com/myronblair/tomsjavajive-app
synced 2026-06-30 17:50:56 -05:00
120 lines
3.5 KiB
HTML
120 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Offline - Tom's Java Jive</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: #FFF8F0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.offline-container {
|
|
text-align: center;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.offline-icon {
|
|
width: 120px;
|
|
height: 120px;
|
|
margin: 0 auto 24px;
|
|
background: linear-gradient(135deg, #FF5E1A, #c4420f);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.offline-icon svg {
|
|
width: 60px;
|
|
height: 60px;
|
|
fill: white;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
50% { transform: scale(1.05); opacity: 0.9; }
|
|
}
|
|
|
|
h1 {
|
|
color: #1a1a1a;
|
|
font-size: 24px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
p {
|
|
color: #666;
|
|
line-height: 1.6;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.retry-btn {
|
|
display: inline-block;
|
|
padding: 12px 32px;
|
|
background: #FF5E1A;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.retry-btn:hover {
|
|
background: #c4420f;
|
|
}
|
|
|
|
.cached-hint {
|
|
margin-top: 32px;
|
|
padding-top: 24px;
|
|
border-top: 1px solid #e5e7eb;
|
|
color: #888;
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="offline-container">
|
|
<div class="offline-icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
<path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4 .14 0 .21.01c.56-2.34 2.64-4.01 5.29-4.01 2.23 0 4.19 1.38 4.98 3.43.88-.32 1.91-.19 2.72.35A3.003 3.003 0 0 1 19 18z"/>
|
|
<line x1="4" y1="4" x2="20" y2="20" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
</svg>
|
|
</div>
|
|
|
|
<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()">
|
|
Try Again
|
|
</button>
|
|
|
|
<div class="cached-hint">
|
|
<p>Some pages you've visited before may still be available offline.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Automatically retry when connection is restored
|
|
window.addEventListener('online', () => {
|
|
window.location.reload();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|