index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,viewport-fit=cover">
  8. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9. <title>
  10. <%= htmlWebpackPlugin.options.title %>
  11. </title>
  12. <style>
  13. @keyframes app-load {
  14. 0% {
  15. opacity: 1;
  16. }
  17. 100% {
  18. opacity: 0;
  19. }
  20. }
  21. .app-load {
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. gap: 5px;
  26. height: 100vh;
  27. }
  28. .app-load span {
  29. display: inline-block;
  30. width: 8px;
  31. height: 8px;
  32. border-radius: 50%;
  33. background: #ccc;
  34. opacity: 0;
  35. animation: app-load 600ms ease infinite;
  36. }
  37. .app-load span:nth-child(1) {
  38. animation-delay: 100ms;
  39. }
  40. .app-load span:nth-child(2) {
  41. animation-delay: 200ms;
  42. }
  43. .app-load span:nth-child(3) {
  44. animation-delay: 300ms;
  45. }
  46. </style>
  47. </head>
  48. <body>
  49. <noscript>
  50. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
  51. Please enable it to continue.</strong>
  52. </noscript>
  53. <div id="app" class="app">
  54. <div class="app-load">
  55. <span></span>
  56. <span></span>
  57. <span></span>
  58. </div>
  59. </div>
  60. <!-- built files will be auto injected -->
  61. </body>
  62. </html>