vben
2020-12-04 0c2e72d22acb087fffbf55f95c52407f4ff8d0b0
提交 | 用户 | age
2f6253 1 <!DOCTYPE html>
2 <html lang="en">
3   <head>
173d40 4     <%= viteHtmlPluginOptions.hmScript %>
2f6253 5     <meta charset="UTF-8" />
bb3b8f 6     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
N 7     <meta name="renderer" content="webkit" />
8     <meta
9       name="viewport"
10       content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
11     />
4f9897 12
bb3b8f 13     <title></title>
2f6253 14     <link rel="icon" href="/favicon.ico" />
173d40 15     <%= viteHtmlPluginOptions.injectConfig %>
2f6253 16   </head>
17   <body>
4811cc 18     <div id="app">
5db3ce 19       <style>
V 20         .app-loading {
21           display: flex;
22           width: 100%;
23           height: 100%;
24           justify-content: center;
25           align-items: center;
26           flex-direction: column;
6f8d75 27           background: #f0f2f5;
5db3ce 28         }
V 29
30         .app-loading .app-loading-wrap {
31           position: absolute;
32           top: 50%;
33           left: 50%;
34           display: flex;
35           -webkit-transform: translate3d(-50%, -50%, 0);
36           transform: translate3d(-50%, -50%, 0);
37           justify-content: center;
38           align-items: center;
39           flex-direction: column;
40         }
41
42         .app-loading .dots {
43           display: flex;
44           padding: 98px;
45           justify-content: center;
46           align-items: center;
47         }
48
49         .app-loading .app-loading-title {
50           display: flex;
51           margin-top: 30px;
52           font-size: 30px;
53           color: rgba(0, 0, 0, 0.85);
54           justify-content: center;
55           align-items: center;
56         }
57
58         .app-loading .app-loading-logo {
59           display: block;
60           width: 90px;
61           margin: 0 auto;
62           margin-bottom: 20px;
63         }
64
65         .dot {
66           position: relative;
67           display: inline-block;
68           width: 48px;
69           height: 48px;
70           margin-top: 30px;
71           font-size: 32px;
72           transform: rotate(45deg);
73           box-sizing: border-box;
74           animation: antRotate 1.2s infinite linear;
75         }
76
77         .dot i {
78           position: absolute;
79           display: block;
80           width: 20px;
81           height: 20px;
82           background-color: #0065cc;
83           border-radius: 100%;
84           opacity: 0.3;
85           transform: scale(0.75);
86           animation: antSpinMove 1s infinite linear alternate;
87           transform-origin: 50% 50%;
88         }
89
90         .dot i:nth-child(1) {
91           top: 0;
92           left: 0;
93         }
94
95         .dot i:nth-child(2) {
96           top: 0;
97           right: 0;
98           -webkit-animation-delay: 0.4s;
99           animation-delay: 0.4s;
100         }
101
102         .dot i:nth-child(3) {
103           right: 0;
104           bottom: 0;
105           -webkit-animation-delay: 0.8s;
106           animation-delay: 0.8s;
107         }
108
109         .dot i:nth-child(4) {
110           bottom: 0;
111           left: 0;
112           -webkit-animation-delay: 1.2s;
113           animation-delay: 1.2s;
114         }
115         @keyframes antRotate {
116           to {
117             -webkit-transform: rotate(405deg);
118             transform: rotate(405deg);
119           }
120         }
121         @-webkit-keyframes antRotate {
122           to {
123             -webkit-transform: rotate(405deg);
124             transform: rotate(405deg);
125           }
126         }
127         @keyframes antSpinMove {
128           to {
129             opacity: 1;
130           }
131         }
132         @-webkit-keyframes antSpinMove {
133           to {
134             opacity: 1;
135           }
136         }
137       </style>
138       <div class="app-loading">
139         <div class="app-loading-wrap">
140           <img src="./resource/img/logo.png" class="app-loading-logo" alt="Logo" />
141           <div class="app-loading-dots">
142             <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
143           </div>
144           <div class="app-loading-title"><%= viteHtmlPluginOptions.title %></div>
145         </div>
146       </div>
4811cc 147     </div>
2f6253 148     <script type="module" src="/src/main.ts"></script>
149   </body>
150 </html>