index.html 4.4 KB

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