<!DOCTYPE html>
|
<html lang="zh">
|
<head>
|
<meta charset="UTF-8" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="theme-color" content="#000000" />
|
<style>
|
* {
|
margin: 0;
|
padding: 0;
|
box-sizing: border-box;
|
}
|
|
body, html {
|
height: 100%;
|
width: 100%;
|
overflow: hidden;
|
background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
|
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
color: #ffffff;
|
}
|
|
.container {
|
height: 100%;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
flex-direction: column;
|
}
|
|
.logo {
|
width: 120px;
|
height: 120px;
|
margin-bottom: 2rem;
|
position: relative;
|
}
|
|
/* .logo::after {
|
content: '';
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
border: 3px solid #ffffff;
|
border-radius: 50%;
|
border-top-color: transparent;
|
animation: spin 1s linear infinite;
|
} */
|
|
@keyframes spin {
|
to { transform: rotate(360deg); }
|
}
|
|
.title {
|
font-size: 2rem;
|
font-weight: 300;
|
letter-spacing: 2px;
|
margin-bottom: 1rem;
|
opacity: 0;
|
animation: fadeIn 0.8s ease-out forwards;
|
}
|
|
.loading-text {
|
font-size: 1rem;
|
color: #888;
|
letter-spacing: 1px;
|
opacity: 0;
|
animation: fadeIn 0.8s ease-out 0.3s forwards;
|
}
|
|
@keyframes fadeIn {
|
to { opacity: 1; }
|
}
|
|
.progress {
|
width: 200px;
|
height: 2px;
|
background: rgba(255, 255, 255, 0.1);
|
margin-top: 2rem;
|
position: relative;
|
overflow: hidden;
|
}
|
|
.progress::after {
|
content: '';
|
position: absolute;
|
left: -50%;
|
width: 50%;
|
height: 100%;
|
background: linear-gradient(90deg, transparent, #fff, transparent);
|
animation: loading 1.5s ease infinite;
|
}
|
|
@keyframes loading {
|
to { left: 100%; }
|
}
|
</style>
|
</head>
|
<body>
|
<div class="container">
|
<div class="logo"><img src="./src/assets/logo.png" alt="App Logo" style="width: 100%; height: 100%; object-fit: contain;"></div>
|
<h1 class="title">六维力传感器测试软件</h1>
|
<p class="loading-text">系统初始化中...</p>
|
<div class="progress"></div>
|
</div>
|
<script type="module">
|
// function checkLoading() {
|
// if (localStorage.getItem("loaded") === "true") {
|
// window.location.href = "index.html";
|
// } else {
|
// setTimeout(checkLoading, 100);
|
// }
|
// }
|
//checkLoading();
|
</script>
|
</body>
|
</html>
|