index.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1">
  6. <meta name="theme-color" content="#121a2b">
  7. <title>世界树 · 逃离空洞</title>
  8. <link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
  9. <link rel="stylesheet" href="css/style.css">
  10. </head>
  11. <body>
  12. <div id="app">
  13. <header class="topbar">
  14. <div class="brand">
  15. <svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
  16. <path d="M12 21V9" stroke="#5FD68A" stroke-width="1.6" stroke-linecap="round"/>
  17. <path d="M12 14 7 9M12 12l5-5M12 17l-4-3M12 16l4-3" stroke="#5FD68A" stroke-width="1.4" stroke-linecap="round"/>
  18. <circle cx="7" cy="9" r="1.6" fill="#5FD68A"/><circle cx="17" cy="7" r="1.6" fill="#B7E4C7"/><circle cx="8" cy="14" r="1.3" fill="#B7E4C7"/><circle cx="16" cy="13" r="1.3" fill="#5FD68A"/>
  19. <path d="M4 21h16" stroke="#8e9bb0" stroke-width="1.2" stroke-linecap="round"/>
  20. </svg>
  21. 世界树 <small>· 逃离空洞</small>
  22. </div>
  23. <div class="topstats" id="topstats"></div>
  24. <button class="top-save" aria-label="存档">存档</button>
  25. <div class="viewport-toggle" aria-label="视口测试">
  26. <button class="vp-btn on" data-vp="auto">自适应</button>
  27. <button class="vp-btn" data-vp="phone">手机</button>
  28. </div>
  29. </header>
  30. <main class="main" id="main">
  31. <!-- 左栏:资源 / 主线 / 升级 -->
  32. <section class="col left active" id="col-left">
  33. <div class="panel flat" id="resources"></div>
  34. <div class="panel" id="mainline"></div>
  35. <div class="panel life" id="upgrades"></div>
  36. </section>
  37. <!-- 中栏:连续行军 + 操作 + 兵种 -->
  38. <section class="col center active" id="col-center">
  39. <div class="canvas-wrap" id="canvas-wrap">
  40. <canvas id="march"></canvas>
  41. <div class="frozen-veil"></div>
  42. <div class="hud" id="hud"></div>
  43. <div class="hud-r" id="hud-r"></div>
  44. <div id="float-layer"></div>
  45. <div class="badge-magic" id="magic-badge" hidden></div>
  46. <div class="env-strip" id="env-strip"></div>
  47. </div>
  48. <div class="rift-slot" id="rift-slot" hidden></div>
  49. <div class="actions" id="actions"></div>
  50. <div class="panel life" id="lives"></div>
  51. </section>
  52. <!-- 右栏:转生 / 永久 / 位面 / 日志 -->
  53. <section class="col right" id="col-right">
  54. <div class="panel gold" id="rebirth"></div>
  55. <div class="panel gold" id="perm"></div>
  56. <div class="panel brand" id="planes"></div>
  57. <div class="panel" id="feed-panel"><div class="panel-title">行旅记录 <span class="tag">事件流</span></div><div class="feed" id="feed"></div></div>
  58. </section>
  59. </main>
  60. <nav class="tabbar" id="tabbar">
  61. <button data-tab="left" class="on">
  62. <svg viewBox="0 0 24 24" fill="none"><path d="M4 6h16M4 12h16M4 18h10" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>成长
  63. </button>
  64. <button data-tab="center">
  65. <svg viewBox="0 0 24 24" fill="none"><path d="M3 17c3-8 6-10 9-6s6 2 9-5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><circle cx="12" cy="11" r="2" fill="currentColor"/></svg>行军
  66. </button>
  67. <button data-tab="right">
  68. <svg viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1.8"/><path d="M12 8v4l3 2" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>回溯
  69. </button>
  70. <button data-tab="rift">
  71. <svg viewBox="0 0 24 24" fill="none"><path d="M12 3 4 8v5c0 5 4 7.5 8 8 4-.5 8-3 8-8V8l-8-5Z" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><path d="m9 12 2 2 4-4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>里世界
  72. </button>
  73. </nav>
  74. </div>
  75. <div class="modal-mask" id="modal-mask" hidden>
  76. <div class="modal" id="modal" role="dialog" aria-modal="true">
  77. <header>
  78. <div class="mt"><span class="mtag" id="modal-tag"></span><h3 id="modal-title"></h3></div>
  79. <button class="icon-btn" id="modal-x" title="关闭" style="border:0;background:transparent;font-size:20px;color:var(--muted)">×</button>
  80. </header>
  81. <div class="body" id="modal-body"></div>
  82. <div class="foot" id="modal-foot"></div>
  83. </div>
  84. </div>
  85. <div id="toasts" aria-live="polite"></div>
  86. <script type="module" src="js/main.js"></script>
  87. </body>
  88. </html>