120 lines
2.8 KiB
HTML
120 lines
2.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Kiosk Startup</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
font-family: sans-serif;
|
|
background-color: #222;
|
|
color: #fff;
|
|
font-family: Roboto, sans-serif;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.loader-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 16px 0;
|
|
gap: 12px;
|
|
}
|
|
.loader {
|
|
width: 60px;
|
|
aspect-ratio: 1;
|
|
display: grid;
|
|
color: #c92f31;
|
|
background: radial-gradient(
|
|
farthest-side,
|
|
currentColor calc(100% - 6px),
|
|
#0000 calc(100% - 5px) 0
|
|
);
|
|
-webkit-mask: radial-gradient(
|
|
farthest-side,
|
|
#0000 calc(100% - 13px),
|
|
#000 calc(100% - 12px)
|
|
);
|
|
border-radius: 50%;
|
|
animation: spin 3s infinite ease-in-out;
|
|
}
|
|
.loader::before,
|
|
.loader::after {
|
|
content: "";
|
|
grid-area: 1/1;
|
|
background:
|
|
linear-gradient(currentColor 0 0) center,
|
|
linear-gradient(currentColor 0 0) center;
|
|
background-size:
|
|
100% 12px,
|
|
12px 100%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.loader::after {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
@keyframes spin {
|
|
100% {
|
|
transform: rotate(1turn);
|
|
}
|
|
}
|
|
|
|
.loader-text {
|
|
width: fit-content;
|
|
font-weight: bold;
|
|
font-family: monospace;
|
|
font-size: 30px;
|
|
color: #0000;
|
|
background: linear-gradient(90deg, #c92f31 calc(50% + 0.5ch), #000 0)
|
|
right/calc(200% + 1ch) 100%;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
animation: l7 3s infinite steps(100);
|
|
}
|
|
.loader-text:before {
|
|
content: "Loading...";
|
|
}
|
|
@keyframes l7 {
|
|
to {
|
|
background-position: left;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<h1>Welcome to DTS Torque Vault</h1>
|
|
<div class="loader-container">
|
|
<div class="loader"></div>
|
|
<div class="loader-text"></div>
|
|
</div>
|
|
<p style="text-align: center">Loading system resources, please wait</p>
|
|
</main>
|
|
|
|
<script>
|
|
async function checkBackend() {
|
|
try {
|
|
const res = await fetch(
|
|
"http://localhost:3000/api/v1/health-check/",
|
|
{ mode: "no-cors" },
|
|
);
|
|
window.location.href = "http://localhost:3000/";
|
|
} catch (e) {
|
|
setTimeout(checkBackend, 3000);
|
|
}
|
|
}
|
|
setTimeout(checkBackend, 1000);
|
|
</script>
|
|
</body>
|
|
</html>
|