baoshiwei
5 天以前 2ad852ee08e21ee681950f1d6058499248baf88e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!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>