feat(ui): HTML skeleton + 3-column grid CSS

This commit is contained in:
ai-chess
2026-05-14 23:25:50 +03:00
parent c53c666739
commit 67e077ae49
2 changed files with 149 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>ai-chess</title>
<link rel="stylesheet" href="/static/vendor/chessground.base.css" />
<link rel="stylesheet" href="/static/vendor/chessground.brown.css" />
<link rel="stylesheet" href="/static/vendor/chessground.cburnett.css" />
<link rel="stylesheet" href="/static/vendor/xterm.css" />
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>
<main id="layout">
<section id="agent-codex" class="agent-panel">
<header class="agent-header">
<span class="agent-name">codex</span>
<span class="agent-side" data-bind="codex-side">?</span>
</header>
<div class="terminal" id="term-codex"></div>
</section>
<section id="board-col">
<div id="board-wrap">
<div id="eval-bar"><div id="eval-fill"></div><div id="eval-text">0.0</div></div>
<div id="board"></div>
<aside id="history">
<ol id="history-list"></ol>
</aside>
</div>
<div id="board-footer">
<div id="status-line">…</div>
<button id="new-game">New Game</button>
<button id="settings-btn">⚙</button>
</div>
<div id="sf-lines"></div>
</section>
<section id="agent-claude" class="agent-panel">
<header class="agent-header">
<span class="agent-name">claude</span>
<span class="agent-side" data-bind="claude-side">?</span>
</header>
<div class="terminal" id="term-claude"></div>
</section>
<footer id="log-strip"><pre id="log-text"></pre></footer>
</main>
<dialog id="settings-dialog">
<form method="dialog" id="settings-form">
<h3>Settings</h3>
<label><input type="checkbox" name="allow_draw_resign" /> allow draw / resign</label>
<label><input type="checkbox" name="allow_illegal_moves" /> allow illegal moves (cheats)</label>
<label>theme_mode:
<select name="theme_mode">
<option value="by_side">by side (white→light, black→dark)</option>
<option value="both_dark">both dark</option>
<option value="both_light">both light</option>
</select>
</label>
<label>stockfish depth: <input type="number" name="stockfish_depth" min="6" max="30" /></label>
<menu>
<button value="cancel">cancel</button>
<button value="save" id="settings-save">save</button>
</menu>
</form>
</dialog>
<script src="/static/vendor/chess.min.js"></script>
<script src="/static/vendor/chessground.min.js"></script>
<script src="/static/vendor/xterm.js"></script>
<script src="/static/vendor/xterm-addon-fit.js"></script>
<script src="/static/app.js" type="module"></script>
</body>
</html>