You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.6 KiB
67 lines
1.6 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--app-head-->
|
|
</head>
|
|
<body>
|
|
<div class="loading-container">
|
|
<div class="loading-spinner"></div>
|
|
<style>
|
|
body {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
.loading-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #fff;
|
|
z-index: 1000;
|
|
transition: opacity 0.3s ease-in-out;
|
|
}
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #3498db;
|
|
border-radius: 50%;
|
|
}
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
.loading-spinner {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
.loading-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.loading-spinner {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
</style>
|
|
<script>
|
|
window.addEventListener("load", () => {
|
|
const loadingContainer = document.querySelector(".loading-container");
|
|
loadingContainer.style.opacity = "0";
|
|
setTimeout(() => {
|
|
loadingContainer.remove();
|
|
}, 300);
|
|
});
|
|
</script>
|
|
</div>
|
|
<div id="app"><!--app-html--></div>
|
|
<script type="module" src="/src/entry-client.ts"></script>
|
|
</body>
|
|
</html>
|
|
|