31126/502.html
2025-04-30 20:05:31 +00:00

150 lines
3.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Service Starting</title>
<style>
body {
font-family: sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.container {
text-align: center;
padding: 30px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
max-width: 600px;
width: 100%;
}
.app-logo {
height: 60px;
margin-bottom: 20px;
}
.app-title {
color: #2c3e50;
font-size: 2em;
margin-bottom: 10px;
font-weight: bold;
}
.app-description {
color: #7f8c8d;
font-size: 1.1em;
margin-bottom: 20px;
line-height: 1.5;
}
h2 {
color: #333;
margin-bottom: 15px;
}
p {
color: #666;
font-size: 1.1em;
margin-bottom: 10px;
}
.tip {
color: #999;
font-size: 0.9em;
margin-bottom: 20px;
}
.loader-container {
display: flex;
justify-content: center;
width: 100%;
margin-top: 20px;
}
.loader {
border: 4px solid #f3f3f3;
/* Light grey border */
border-top: 4px solid #3498db;
/* Blue border */
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 2s linear infinite;
}
.hidden {
display: none;
}
.flatlogic-id {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
color: #95a5a6;
font-size: 0.9em;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="container">
<img src="https://flatlogic.com/logo.svg" alt="App Logo" class="app-logo">
<div class="app-title">["Online School", nil]></div>
<div class="app-description">
</div>
<h2 id="status-heading">Application is Loading</h2>
<p id="status-message">Please wait while we prepare your environment...</p>
<p class="tip">The page will automatically refresh once the application is ready.</p>
<div class="loader-container">
<div class="loader"></div>
</div>
<div class="flatlogic-id">
Powered by <strong>Flatlogic</strong>
</div>
</div>
<script>
function checkAvailability() {
fetch('/')
.then(response => {
if (response.ok) {
window.location.reload();
} else {
setTimeout(checkAvailability, 5000);
}
})
.catch(() => {
setTimeout(checkAvailability, 5000);
});
}
document.addEventListener('DOMContentLoaded', checkAvailability);
</script>
</body>
</html>