forked from lioensky/VCPChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplash.html
More file actions
112 lines (101 loc) · 3.27 KB
/
splash.html
File metadata and controls
112 lines (101 loc) · 3.27 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VCP Chat 正在载入...</title>
<style>
:root {
--splash-bg-color-dark: #2a2a2a;
--splash-text-color-dark: #e0e0e0;
--splash-border-color-dark: #424242;
--progress-bar-color-dark: #40a9ff;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
user-select: none;
}
body {
opacity: 0;
animation: fadeInBody 0.5s ease-in-out forwards;
-webkit-app-region: drag; /* Make the whole window draggable */
background-color: var(--splash-bg-color-dark);
color: var(--splash-text-color-dark);
}
.splash-banner {
display: flex;
align-items: center;
width: 100%;
height: 100%;
padding: 0 20px;
box-sizing: border-box;
border: 1px solid;
border-radius: 8px;
border-color: var(--splash-border-color-dark);
}
.logo {
width: 64px;
height: 64px;
margin-right: 20px;
animation: float 3s ease-in-out infinite;
-webkit-app-region: no-drag;
}
.content-area {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.loading-text {
font-size: 1.1em;
margin: 0 0 10px 0;
}
.progress-bar-container {
width: 100%;
height: 4px;
border-radius: 2px;
overflow: hidden;
background-color: #4f4f4f;
}
.progress-bar {
width: 100%;
height: 100%;
transform-origin: left;
animation: pseudo-load 20s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
background-color: var(--progress-bar-color-dark);
}
@keyframes fadeInBody {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
100% { transform: translateY(0px); }
}
@keyframes pseudo-load {
0% { transform: scaleX(0); }
10% { transform: scaleX(0.3); }
30% { transform: scaleX(0.6); }
70% { transform: scaleX(0.8); }
100% { transform: scaleX(1); }
}
</style>
</head>
<body>
<div class="splash-banner">
<img src="./assets/icon.png" alt="应用图标" class="logo">
<div class="content-area">
<p class="loading-text">正在初始化, 请稍候...</p>
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
</div>
</div>
</body>
</html>