Skip to content

Commit

Permalink
feat: 优化白屏加载
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Dec 3, 2024
1 parent b47bd5c commit 2f87de4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<div id="app">
<!-- 白屏时的loading效果 -->
<div class="loading-container">
<img alt="logo" height="128" src="/loading/logo.png" />
<div class="loading-spin__container">
<div class="loading-spin-container">
<div class="loading-spin">
<div class="left-0 top-0 loading-spin-item"></div>
<div class="left-0 bottom-0 loading-spin-item loading-delay-500"></div>
Expand Down
7 changes: 3 additions & 4 deletions web/public/loading/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
height: 100%;
}

.loading-spin__container {
.loading-spin-container {
width: 56px;
height: 56px;
margin: 36px 0;
Expand Down Expand Up @@ -50,11 +50,9 @@

@keyframes loadingSpin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
Expand Down Expand Up @@ -85,7 +83,8 @@
}

.loading-title {
padding-top: 20px;
font-size: 28px;
font-weight: 500;
color: #6a6a6a;
color: #333;
}
Binary file removed web/public/loading/logo.png
Binary file not shown.

0 comments on commit 2f87de4

Please sign in to comment.