index.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title><%= title %></title>
  8. </head>
  9. <body>
  10. <div id="app">
  11. <style>
  12. .first-loading-wrap {
  13. display: flex;
  14. width: 100%;
  15. height: 100vh;
  16. justify-content: center;
  17. align-items: center;
  18. flex-direction: column;
  19. }
  20. .first-loading-wrap>h1 {
  21. font-size: 128px
  22. }
  23. .first-loading-wrap .loading-wrap {
  24. padding: 98px;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center
  28. }
  29. .dot {
  30. animation: antRotate 1.2s infinite linear;
  31. transform: rotate(45deg);
  32. position: relative;
  33. display: inline-block;
  34. font-size: 32px;
  35. width: 32px;
  36. height: 32px;
  37. box-sizing: border-box
  38. }
  39. .dot i {
  40. width: 14px;
  41. height: 14px;
  42. position: absolute;
  43. display: block;
  44. background-color: #1890ff;
  45. border-radius: 100%;
  46. transform: scale(.75);
  47. transform-origin: 50% 50%;
  48. opacity: .3;
  49. animation: antSpinMove 1s infinite linear alternate
  50. }
  51. .dot i:nth-child(1) {
  52. top: 0;
  53. left: 0
  54. }
  55. .dot i:nth-child(2) {
  56. top: 0;
  57. right: 0;
  58. -webkit-animation-delay: .4s;
  59. animation-delay: .4s
  60. }
  61. .dot i:nth-child(3) {
  62. right: 0;
  63. bottom: 0;
  64. -webkit-animation-delay: .8s;
  65. animation-delay: .8s
  66. }
  67. .dot i:nth-child(4) {
  68. bottom: 0;
  69. left: 0;
  70. -webkit-animation-delay: 1.2s;
  71. animation-delay: 1.2s
  72. }
  73. @keyframes antRotate {
  74. to {
  75. -webkit-transform: rotate(405deg);
  76. transform: rotate(405deg)
  77. }
  78. }
  79. @-webkit-keyframes antRotate {
  80. to {
  81. -webkit-transform: rotate(405deg);
  82. transform: rotate(405deg)
  83. }
  84. }
  85. @keyframes antSpinMove {
  86. to {
  87. opacity: 1
  88. }
  89. }
  90. @-webkit-keyframes antSpinMove {
  91. to {
  92. opacity: 1
  93. }
  94. }
  95. </style>
  96. <div class="first-loading-wrap">
  97. <div class="loading-wrap">
  98. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  99. </div>
  100. </div>
  101. </div>
  102. <script type="module" src="/src/main.js"></script>
  103. </body>
  104. </html>