index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  8. <title><%= htmlWebpackPlugin.options.title %></title>
  9. </head>
  10. <body>
  11. <noscript>
  12. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  13. </noscript>
  14. <div id="app">
  15. <style>
  16. .app-loading {
  17. display: flex;
  18. width: 100%;
  19. height: 100%;
  20. justify-content: center;
  21. align-items: center;
  22. flex-direction: column;
  23. background: #f0f2f5;
  24. }
  25. .app-loading .app-loading-wrap {
  26. position: absolute;
  27. top: 50%;
  28. left: 50%;
  29. display: flex;
  30. -webkit-transform: translate3d(-50%, -50%, 0);
  31. transform: translate3d(-50%, -50%, 0);
  32. justify-content: center;
  33. align-items: center;
  34. flex-direction: column;
  35. }
  36. .app-loading .app-loading-title {
  37. font-size: 20px;
  38. font-weight: bold;
  39. text-align: center;
  40. margin-bottom: 30px;
  41. }
  42. .app-loading .app-loading-logo {
  43. width: 100px;
  44. margin-bottom: 15px;
  45. }
  46. .app-loading .app-loading-item {
  47. position: relative;
  48. width: 60px;
  49. height: 60px;
  50. border-radius: 50%;
  51. display: inline-block;
  52. vertical-align: middle;
  53. }
  54. .app-loading .app-loading-outter {
  55. position: absolute;
  56. border: 4px solid #2d8cf0;
  57. border-left-color: transparent;
  58. border-bottom: 0;
  59. width: 100%;
  60. height: 100%;
  61. border-radius: 50%;
  62. animation: loader-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
  63. }
  64. .app-loading .app-loading-inner {
  65. position: absolute;
  66. border: 4px solid #87bdff;
  67. border-radius: 50%;
  68. width: 40px;
  69. height: 40px;
  70. left: calc(50% - 20px);
  71. top: calc(50% - 20px);
  72. border-right: 0;
  73. border-top-color: transparent;
  74. animation: loader-inner 1s cubic-bezier(.42, .61, .58, .41) infinite;
  75. }
  76. @-webkit-keyframes loader-outter {
  77. 0% {
  78. -webkit-transform: rotate(0deg);
  79. transform: rotate(0deg);
  80. }
  81. 100% {
  82. -webkit-transform: rotate(360deg);
  83. transform: rotate(360deg);
  84. }
  85. }
  86. @keyframes loader-outter {
  87. 0% {
  88. -webkit-transform: rotate(0deg);
  89. transform: rotate(0deg);
  90. }
  91. 100% {
  92. -webkit-transform: rotate(360deg);
  93. transform: rotate(360deg);
  94. }
  95. }
  96. @-webkit-keyframes loader-inner {
  97. 0% {
  98. -webkit-transform: rotate(0deg);
  99. transform: rotate(0deg);
  100. }
  101. 100% {
  102. -webkit-transform: rotate(-360deg);
  103. transform: rotate(-360deg);
  104. }
  105. }
  106. @keyframes loader-inner {
  107. 0% {
  108. -webkit-transform: rotate(0deg);
  109. transform: rotate(0deg);
  110. }
  111. 100% {
  112. -webkit-transform: rotate(-360deg);
  113. transform: rotate(-360deg);
  114. }
  115. }
  116. </style>
  117. <div class="app-loading">
  118. <div class="app-loading-wrap">
  119. <div class="app-loading-title">
  120. <img src="./logo.png" class="app-loading-logo" alt="Logo" />
  121. <div class="app-loading-title"><%= htmlWebpackPlugin.options.title %></div>
  122. </div>
  123. <div class="app-loading-item">
  124. <div class="app-loading-outter"></div>
  125. <div class="app-loading-inner"></div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- built files will be auto injected -->
  131. </body>
  132. </html>