31134/502.html
2025-04-30 21:41:02 +00:00

200 lines
5.9 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);
}
}
.accordion {
display: none;
}
.accordion:hover {
background-color: #ddd;
}
.panel {
padding: 0 18px;
display: none;
background-color: white;
overflow: hidden;
margin-top: 10px;
}
.panel.show {
display: block;
}
</style>
</head>
<body>
<div class="container">
<img src="https://flatlogic.com/logo.svg" alt="App Logo" class="app-logo">
<div class="app-title">
test
</div>
<div class="app-description">
A toolkit for managing an online coffee business with inventory, orders, and customer management.
</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>
<button class="accordion">Watch Video</button>
<div class="panel">
<video width="560" height="315" controls loop>
<source
src="https://flatlogic.com/blog/wp-content/uploads/2025/04/20250430_1336_professional_dynamo_spinner_simple_compose_01jt349yvtenxt7xhg8hhr85j8.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</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);
document.addEventListener('DOMContentLoaded', function () {
const appTitle = document.querySelector('.app-title');
const panel = document.querySelector('.panel');
const video = panel.querySelector('video');
let clickCount = 0;
appTitle.addEventListener('click', function () {
clickCount++;
if (clickCount === 5) {
panel.classList.toggle('show');
if (panel.classList.contains('show')) {
video.play();
} else {
video.pause();
}
clickCount = 0;
}
});
});
</script>
</body>
</html>