Skip to content

Commit d91ff81

Browse files
committed
美化初始化页面
1 parent 5016d5c commit d91ff81

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

src/wwwroot/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@
77
<title>透明锁屏</title>
88
<base href="/" />
99
<link href="app.css" rel="stylesheet" />
10+
<link href="initialize-screen.css" rel="stylesheet" />
1011
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
1112
<link href="SignDebugger.styles.css" rel="stylesheet" />
1213
</head>
1314

1415
<body style="overflow-x:hidden">
15-
<div id="app">资源加载中...</div>
16+
<div id="app">
17+
<div class="initialize-container">
18+
<div class="initialize-loading">
19+
<div class="initialize-loader"></div>
20+
<div class="initialize-icon"></div>
21+
</div>
22+
</div>
23+
</div>
1624

1725
<div id="blazor-error-ui">
1826
An unhandled error has occurred.

src/wwwroot/initialize-screen.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.initialize-container {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
height: 100vh;
6+
background-color: #FFFFFF;
7+
}
8+
9+
.initialize-loading {
10+
position: relative;
11+
width: 150px;
12+
height: 150px;
13+
}
14+
15+
.initialize-icon,
16+
.initialize-loader {
17+
position: absolute;
18+
top: 50%;
19+
left: 50%;
20+
transform: translate(-50%, -50%);
21+
}
22+
23+
.initialize-icon {
24+
width: 32px;
25+
height: 32px;
26+
background: url('icon.ico') no-repeat center center;
27+
background-size: contain;
28+
z-index: 2;
29+
}
30+
31+
.initialize-loader {
32+
width: 120px;
33+
height: 120px;
34+
animation: spin 3s linear infinite, border-gradient 3s linear infinite;
35+
z-index: 1;
36+
}
37+
38+
@keyframes spin {
39+
0% {
40+
transform: translate(-50%, -50%) rotate(0deg);
41+
}
42+
43+
100% {
44+
transform: translate(-50%, -50%) rotate(360deg);
45+
}
46+
}
47+
48+
@keyframes border-gradient {
49+
0% {
50+
box-shadow: 0 0 10px 0 #fb8c00, 0 0 20px 0 #fb8c00, 0 0 30px 0 #fb8c00;
51+
}
52+
53+
100% {
54+
box-shadow: 0 0 10px 20px transparent, 0 0 20px 30px transparent, 0 0 30px 40px transparent;
55+
}
56+
}

0 commit comments

Comments
 (0)