index.html 2.6 KB

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