mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
feat: 更换加载动画
This commit is contained in:
parent
9bb4f34707
commit
c260f88e38
145
index.html
145
index.html
@ -1,139 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="/iconfont.css" />
|
||||
<link rel="stylesheet" href="/animate.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/animate.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>后台管理系统</title>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/Sortable/1.13.0/Sortable.js"></script>
|
||||
<script>
|
||||
window.process = {}
|
||||
window.process = {};
|
||||
</script>
|
||||
</head>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
<div id="app">
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
section {
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background: #001d10;
|
||||
animation: animateBackgroundC0olor 10s linear infinite;
|
||||
background: #000;
|
||||
overflow: hidden;
|
||||
font-family: "Reggae One", cursive;
|
||||
}
|
||||
|
||||
@keyframes animateBackgroundC0olor {
|
||||
0% {
|
||||
filter: hue-rotate(0deg);
|
||||
p {
|
||||
font-size: 12vw;
|
||||
overflow: hidden;
|
||||
-webkit-text-stroke: 3px #7272a5;
|
||||
}
|
||||
|
||||
100% {
|
||||
filter: hue-rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.loading {
|
||||
position: relative;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
.loading .blocks {
|
||||
p::before {
|
||||
content: " ";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
width: 8px;
|
||||
height: 25px;
|
||||
background-color: #050c09;
|
||||
left: 50%;
|
||||
border-radius: 8px;
|
||||
transform: rotate(calc(18deg * var(--i)));
|
||||
transform-origin: 0 125px;
|
||||
animation: animate 1.9s ease-in-out infinite;
|
||||
animation-delay: calc(0.05s * var(--i));
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-image: linear-gradient(45deg, #ff269b, #2ab5f5, #ffbf00);
|
||||
mix-blend-mode: multiply;
|
||||
}
|
||||
|
||||
@keyframes animate {
|
||||
|
||||
0%,
|
||||
50% {
|
||||
background: #050c09;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
50.1%,
|
||||
100% {
|
||||
background: #0f0;
|
||||
box-shadow: 0 0 5px #0f0,
|
||||
0 0 15px #0f0,
|
||||
0 0 30px #0f0,
|
||||
0 0 60px #0f0,
|
||||
0 0 90px #0f0;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
p::after {
|
||||
content: "";
|
||||
background: radial-gradient(circle, #fff, #000 50%);
|
||||
background-size: 25% 25%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 2em;
|
||||
letter-spacing: 2px;
|
||||
animation: animateText 2s ease-in-out infinite;
|
||||
animation-delay: -1s;
|
||||
top: -100%;
|
||||
left: -100%;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
mix-blend-mode: color-dodge;
|
||||
animation: mix 2s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes animateText {
|
||||
|
||||
0%,
|
||||
50% {
|
||||
color: #050c09;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
50.1%,
|
||||
100% {
|
||||
color: #0f0;
|
||||
text-shadow: 0 0 5px #0f0,
|
||||
0 0 15px #0f0;
|
||||
@keyframes mix {
|
||||
to {
|
||||
transform: translate(50%, 50%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<section>
|
||||
<div class="loading">
|
||||
<div class="blocks" style="--i:1;"></div>
|
||||
<div class="blocks" style="--i:2;"></div>
|
||||
<div class="blocks" style="--i:3;"></div>
|
||||
<div class="blocks" style="--i:4;"></div>
|
||||
<div class="blocks" style="--i:5;"></div>
|
||||
<div class="blocks" style="--i:6;"></div>
|
||||
<div class="blocks" style="--i:7;"></div>
|
||||
<div class="blocks" style="--i:8;"></div>
|
||||
<div class="blocks" style="--i:9;"></div>
|
||||
<div class="blocks" style="--i:10;"></div>
|
||||
<div class="blocks" style="--i:11;"></div>
|
||||
<div class="blocks" style="--i:12;"></div>
|
||||
<div class="blocks" style="--i:13;"></div>
|
||||
<div class="blocks" style="--i:14;"></div>
|
||||
<div class="blocks" style="--i:15;"></div>
|
||||
<div class="blocks" style="--i:16;"></div>
|
||||
<div class="blocks" style="--i:17;"></div>
|
||||
<div class="blocks" style="--i:18;"></div>
|
||||
<div class="blocks" style="--i:19;"></div>
|
||||
<div class="blocks" style="--i:20;"></div>
|
||||
<h3>loading</h3>
|
||||
<div class="g-container">
|
||||
<p>Pure-Admin</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
18
package-lock.json
generated
18
package-lock.json
generated
@ -67,7 +67,7 @@
|
||||
"sass": "^1.32.8",
|
||||
"sass-loader": "^11.0.1",
|
||||
"typescript": "^4.2.4",
|
||||
"vite": "^2.3.8",
|
||||
"vite": "^2.4.3",
|
||||
"vite-plugin-mock": "^2.8.0",
|
||||
"vite-plugin-style-import": "^1.0.1",
|
||||
"vue-eslint-parser": "^7.7.2"
|
||||
@ -5226,13 +5226,13 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.3.8.tgz",
|
||||
"integrity": "sha512-QiEx+iqNnJntSgSF2fWRQvRey9pORIrtNJzNyBJXwc+BdzWs83FQolX84cTBo393cfhObrtWa6180dAa4NLDiQ==",
|
||||
"version": "2.4.3",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.4.3.tgz",
|
||||
"integrity": "sha512-iT6NPeiUUZ2FkzC3eazytOEMRaM4J+xgRQcNcpRcbmfYjakCFP4WKPJpeEz1U5JEKHAtwv3ZBQketQUFhFU3ng==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.12.8",
|
||||
"postcss": "^8.3.4",
|
||||
"postcss": "^8.3.5",
|
||||
"resolve": "^1.20.0",
|
||||
"rollup": "^2.38.5"
|
||||
},
|
||||
@ -9547,14 +9547,14 @@
|
||||
"dev": true
|
||||
},
|
||||
"vite": {
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.3.8.tgz",
|
||||
"integrity": "sha512-QiEx+iqNnJntSgSF2fWRQvRey9pORIrtNJzNyBJXwc+BdzWs83FQolX84cTBo393cfhObrtWa6180dAa4NLDiQ==",
|
||||
"version": "2.4.3",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-2.4.3.tgz",
|
||||
"integrity": "sha512-iT6NPeiUUZ2FkzC3eazytOEMRaM4J+xgRQcNcpRcbmfYjakCFP4WKPJpeEz1U5JEKHAtwv3ZBQketQUFhFU3ng==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esbuild": "^0.12.8",
|
||||
"fsevents": "~2.3.2",
|
||||
"postcss": "^8.3.4",
|
||||
"postcss": "^8.3.5",
|
||||
"resolve": "^1.20.0",
|
||||
"rollup": "^2.38.5"
|
||||
},
|
||||
|
@ -78,7 +78,7 @@
|
||||
"sass": "^1.32.8",
|
||||
"sass-loader": "^11.0.1",
|
||||
"typescript": "^4.2.4",
|
||||
"vite": "^2.3.8",
|
||||
"vite": "^2.4.3",
|
||||
"vite-plugin-mock": "^2.8.0",
|
||||
"vite-plugin-style-import": "^1.0.1",
|
||||
"vue-eslint-parser": "^7.7.2"
|
||||
|
@ -15,22 +15,14 @@ body {
|
||||
Microsoft YaHei, Arial, sans-serif;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
// background-color: #f0f2f5;
|
||||
label {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
*,
|
||||
@ -80,8 +72,8 @@ ul {
|
||||
|
||||
.login,
|
||||
.register {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
background: url("../assets/bg.png") no-repeat center;
|
||||
background-size: cover;
|
||||
|
@ -44,6 +44,7 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
|
||||
* @default 3000
|
||||
*/
|
||||
port: VITE_PORT,
|
||||
host: "0.0.0.0",
|
||||
// 本地跨域代理
|
||||
proxy: createProxy(VITE_PROXY)
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user