Blame view

index.html 3.68 KB
陈文彬 authored
1
<!DOCTYPE html>
Vben authored
2
<html lang="en" id="htmlRoot">
陈文彬 authored
3
4
  <head>
    <meta charset="UTF-8" />
5
6
7
8
9
10
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
    />
11
    <title><%= VITE_GLOB_APP_TITLE %></title>
陈文彬 authored
12
    <link rel="icon" href="/favicon.ico" />
13
14
15
16
  </head>
  <body>
    <div id="app">
      <style>
Vben authored
17
        html[data-theme='dark'] .app-loading {
18
          background-color: #2c344a;
Vben authored
19
20
21
        }

        html[data-theme='dark'] .app-loading .app-loading-title {
22
          color: rgb(255 255 255 / 85%);
Vben authored
23
24
        }
25
26
        .app-loading {
          display: flex;
vben authored
27
28
29
          flex-direction: column;
          align-items: center;
          justify-content: center;
30
31
          width: 100%;
          height: 100%;
32
          background-color: #f4f7f9;
33
        }
34
35
        .app-loading .app-loading-wrap {
vben authored
36
          display: flex;
37
38
39
40
          position: absolute;
          top: 50%;
          left: 50%;
          flex-direction: column;
vben authored
41
42
43
          align-items: center;
          justify-content: center;
          transform: translate3d(-50%, -50%, 0);
44
45
        }
46
47
48
        .app-loading .dots {
          display: flex;
          align-items: center;
vben authored
49
50
          justify-content: center;
          padding: 98px;
51
52
        }
53
54
        .app-loading .app-loading-title {
          display: flex;
vben authored
55
56
          align-items: center;
          justify-content: center;
57
          margin-top: 30px;
58
          color: rgb(0 0 0 / 85%);
vben authored
59
          font-size: 30px;
60
        }
61
62
63
64
65
66
67
        .app-loading .app-loading-logo {
          display: block;
          width: 90px;
          margin: 0 auto;
          margin-bottom: 20px;
        }
68
69
70
        .dot {
          display: inline-block;
vben authored
71
72
          position: relative;
          box-sizing: border-box;
73
74
75
76
          width: 48px;
          height: 48px;
          margin-top: 30px;
          transform: rotate(45deg);
vben authored
77
78
          animation: ant-rotate 1.2s infinite linear;
          font-size: 32px;
79
        }
vben authored
80
81
82
        .dot i {
          display: block;
vben authored
83
          position: absolute;
84
85
86
87
          width: 20px;
          height: 20px;
          transform: scale(0.75);
          transform-origin: 50% 50%;
vben authored
88
89
90
91
          animation: ant-spin-move 1s infinite linear alternate;
          border-radius: 100%;
          opacity: 0.3;
          background-color: #0065cc;
92
        }
vben authored
93
94
95
96
97
98
99
100
101
        .dot i:nth-child(1) {
          top: 0;
          left: 0;
        }

        .dot i:nth-child(2) {
          top: 0;
          right: 0;
102
          animation-delay: 0.4s;
103
104
105
106
107
        }

        .dot i:nth-child(3) {
          right: 0;
          bottom: 0;
108
          animation-delay: 0.8s;
109
110
111
112
113
        }

        .dot i:nth-child(4) {
          bottom: 0;
          left: 0;
114
          animation-delay: 1.2s;
115
        }
vben authored
116
117

        @keyframes ant-rotate {
118
          to {
119
            transform: rotate(405deg);
120
121
          }
        }
vben authored
122
123

        @keyframes ant-rotate {
124
          to {
125
            transform: rotate(405deg);
126
127
          }
        }
vben authored
128
129

        @keyframes ant-spin-move {
130
          to {
vben authored
131
            opacity: 1;
132
133
          }
        }
vben authored
134
135

        @keyframes ant-spin-move {
136
          to {
vben authored
137
            opacity: 1;
138
139
140
141
142
          }
        }
      </style>
      <div class="app-loading">
        <div class="app-loading-wrap">
143
          <img src="/logo.png" class="app-loading-logo" alt="Logo" />
144
145
146
          <div class="app-loading-dots">
            <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
          </div>
147
          <div class="app-loading-title"><%= VITE_GLOB_APP_TITLE %></div>
148
149
        </div>
      </div>
150
    </div>
陈文彬 authored
151
152
153
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>