ChessNut/frontend/public/index.html
2025-10-16 09:07:54 +02:00

50 lines
1.6 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>ChessNut — Lobby</title>
<link rel="stylesheet" href="src/styles.css">
</head>
<body>
<div id="app">
<header>
<h1>ChessNut — Lobby</h1>
</header>
<main>
<section id="lobby">
<div class="card">
<h2>Créer une partie</h2>
<label>Nom de la partie <input id="create-name" placeholder="Mon match"></label>
<label>Mot de passe (optionnel) <input id="create-pass" type="password" placeholder="motdepasse"></label>
<button id="create-btn">Créer</button>
</div>
<div class="card">
<h2>Rejoindre une partie</h2>
<button id="show-list-btn">Afficher les parties disponibles</button>
<div id="games-list" class="hidden">
<ul id="games-ul"></ul>
</div>
</div>
</section>
<section id="board-section" class="hidden">
<div class="card">
<h2>Partie <span id="game-id"></span></h2>
<div>Rôle: <span id="player-role"></span></div>
<div id="board-container" style="margin-top:12px;"></div>
<div style="margin-top:12px;">
<button id="flip-btn">Retourner</button>
<button id="back-to-lobby">Retour au lobby</button>
</div>
</div>
</section>
<!-- waiting room is a separate page: waiting.html -->
</main>
</div>
<script src="src/main.js?v=2"></script>
<script src="https://cdn.socket.io/4.5.4/socket.io.min.js"></script>
</body>
</html>