70 lines
2.1 KiB
HTML
70 lines
2.1 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 - Classroom Copilot</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
text-align: center;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
padding: 40px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
h1 {
|
|
color: #1a73e8;
|
|
margin-bottom: 20px;
|
|
}
|
|
p {
|
|
line-height: 1.6;
|
|
margin-bottom: 20px;
|
|
}
|
|
.retry-button {
|
|
background-color: #1a73e8;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
.retry-button:hover {
|
|
background-color: #1557b0;
|
|
}
|
|
.icon {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="icon">📡</div>
|
|
<h1>You're Offline</h1>
|
|
<p>It looks like you've lost your internet connection. Don't worry - any work you've done has been saved locally.</p>
|
|
<p>Please check your connection and try again.</p>
|
|
<button class="retry-button" onclick="window.location.reload()">Try Again</button>
|
|
</div>
|
|
<script>
|
|
// Check if we're back online
|
|
window.addEventListener('online', () => {
|
|
window.location.reload();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |