index.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <html lang="zh-cmn-Hans">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
  6. <meta content="yes" name="apple-mobile-web-app-capable" />
  7. <!-- <link rel="apple-touch-icon" type="image/svg+xml" href="/favicon.svg" /> -->
  8. <meta
  9. name="viewport"
  10. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
  11. />
  12. <title>走马AI助手</title>
  13. <script type="text/javascript" charset="utf-8" src="//g.alicdn.com/sd/nch5/index.js?t=2015052012"></script>
  14. <script type="text/javascript" charset="utf-8" src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  15. </head>
  16. <body class="dark:bg-black">
  17. <div id="app">
  18. <style>
  19. .loading-wrap {
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. height: 100vh;
  24. }
  25. .balls {
  26. width: 4em;
  27. display: flex;
  28. flex-flow: row nowrap;
  29. align-items: center;
  30. justify-content: space-between;
  31. }
  32. .balls div {
  33. width: 0.8em;
  34. height: 0.8em;
  35. border-radius: 50%;
  36. background-color: #4b9e5f;
  37. }
  38. .balls div:nth-of-type(1) {
  39. transform: translateX(-100%);
  40. animation: left-swing 0.5s ease-in alternate infinite;
  41. }
  42. .balls div:nth-of-type(3) {
  43. transform: translateX(-95%);
  44. animation: right-swing 0.5s ease-out alternate infinite;
  45. }
  46. @keyframes left-swing {
  47. 50%,
  48. 100% {
  49. transform: translateX(95%);
  50. }
  51. }
  52. @keyframes right-swing {
  53. 50% {
  54. transform: translateX(-95%);
  55. }
  56. 100% {
  57. transform: translateX(100%);
  58. }
  59. }
  60. @media (prefers-color-scheme: dark) {
  61. body {
  62. background: #121212;
  63. }
  64. }
  65. </style>
  66. <div class="loading-wrap">
  67. <div class="balls">
  68. <div></div>
  69. <div></div>
  70. <div></div>
  71. </div>
  72. </div>
  73. </div>
  74. <script type="module" src="/src/main.ts"></script>
  75. <!-- <div id="splash-screen">
  76. <img src="/img1.png" class="img1" alt="" />
  77. <img src="/img2.png" class="img2" alt="" />
  78. <div id="splash-robot"></div>
  79. <img src="/img-logo.png" class="img-logo" alt="" />
  80. </div> -->
  81. <style>
  82. #splash-screen {
  83. position: fixed;
  84. width: 100vw;
  85. height: 100vh;
  86. top: 0;
  87. left: 0;
  88. right: 0;
  89. bottom: 0;
  90. z-index: 9999;
  91. object-fit: cover;
  92. opacity: 1;
  93. transition: opacity 0.8s ease-in-out;
  94. background-color: #090a20;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. #splash-screen .img1 {
  100. width: 100%;
  101. height: auto;
  102. display: block;
  103. position: absolute;
  104. top: 0;
  105. left: 0;
  106. z-index: 999;
  107. }
  108. #splash-screen .img2 {
  109. width: 100%;
  110. height: auto;
  111. display: block;
  112. position: absolute;
  113. bottom: 0;
  114. left: 0;
  115. z-index: 999;
  116. }
  117. #splash-screen .img-logo {
  118. width: 110px;
  119. height: 20px;
  120. position: absolute;
  121. bottom: 40px;
  122. left: 50%;
  123. transform: translateX(-50%);
  124. z-index: 999;
  125. }
  126. #splash-robot {
  127. width: 100%;
  128. height: 100%;
  129. max-width: 500px;
  130. }
  131. </style>
  132. <script
  133. src="/bodymovin_5.11.0_lottie.min.js"
  134. type="text/javascript"
  135. ></script>
  136. <script>
  137. var animation = bodymovin.loadAnimation({
  138. container: document.getElementById('splash-robot'),
  139. renderer: 'svg',
  140. loop: true,
  141. autoplay: true,
  142. path: '<%- baseUrl %>splash.json'
  143. })
  144. </script>
  145. </body>
  146. </html>