index.html 2.1 KB
Newer Older
陈文彬 已提交
1 2 3
<!DOCTYPE html>
<html lang="en">
  <head>
4
    <%= viteHtmlPluginOptions.hmScript %>
陈文彬 已提交
5
    <meta charset="UTF-8" />
6 7 8 9 10 11
    <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"
    />
V
vben 已提交
12

13
    <title></title>
陈文彬 已提交
14
    <link rel="icon" href="/favicon.ico" />
15
    <%= viteHtmlPluginOptions.injectConfig %>
16

V
vben 已提交
17 18 19 20 21
    <style>
      @keyframes load {
        0% {
          -webkit-transform: rotate(-360deg);
          transform: rotate(-360deg);
22 23
        }

V
vben 已提交
24 25 26
        100% {
          -webkit-transform: rotate(0);
          transform: rotate(0);
27
        }
V
vben 已提交
28
      }
29

V
vben 已提交
30 31 32
      .app-loading {
        width: 100%;
        height: 100%;
V
vben 已提交
33
        background: #f0f2f5;
V
vben 已提交
34
      }
35

V
vben 已提交
36 37 38 39 40 41 42
      .app-loading .app-loading-wrap {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
      }
43

V
vben 已提交
44 45
      .app-loading .g-loading {
        display: block;
46
        width: 48px;
V
vben 已提交
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
        margin: 30px auto;
        -webkit-animation: load 1.2s linear infinite;
        animation: load 1.2s linear infinite;
        -webkit-transform-origin: center center;
        transform-origin: center center;
      }

      .app-loading .app-loading-wrap img.logo {
        display: block;
        width: 90px;
        margin: 0 auto;
        margin-bottom: 20px;
      }

      .app-loading .app-loading-wrap .app-loading__tip {
        display: block;
        margin: 20px auto 0 0;
        font-size: 30px;
V
vben 已提交
65
        color: rgba(0, 0, 0, 0.85);
V
vben 已提交
66 67 68 69 70
      }
    </style>
  </head>
  <body>
    <div id="app">
71 72 73 74
      <section class="app-loading">
        <section class="app-loading-wrap">
          <img src="./resource/img/logo.png" class="logo" alt="Logo" />
          <img src="./resource/img/loading.svg" alt="" class="g-loading" />
V
vben 已提交
75
          <h1 class="app-loading__tip"><%= viteHtmlPluginOptions.title %></h1>
76 77 78
        </section>
      </section>
    </div>
陈文彬 已提交
79 80 81
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>