Files

103 lines
3.5 KiB
HTML

<!doctype html>
<html>
<head>
<title>Escape the Island</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="assets/shipwreck.png" />
<link rel="stylesheet" href="styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
</head>
<body class="page page-lobby">
<header>
<div class="header-container">
<h1>Escape the Island</h1>
<div class="boat-container">
<img src="assets/boat-small.png" alt="" class="boat" />
</div>
</div>
</header>
<div class="Content">
<div class="card-grid">
<section class="panel room-panel">
<p class="eyebrow">Teacher Console</p>
<h2>Room Code</h2>
<p id="room-code" class="room-code">----</p>
<p id="lobby-status" class="lobby-status" aria-live="polite">
Connecting...
</p>
<button type="button" id="host-btn" class="btn-primary" disabled>
Connecting...
</button>
<p class="panel-footnote">
Students open this same address, enter a name, and use the code
above.
</p>
</section>
<section class="panel" id="phase-panel" hidden>
<p class="eyebrow">Game Control</p>
<h2>Phase: <span id="phase-text">-</span></h2>
<p class="panel-subtitle">Day <span id="day-text">0</span></p>
<div class="phase-controls">
<button type="button" id="start-game-btn" class="btn-primary">
Start Game
</button>
<button type="button" id="end-day-btn" class="btn-primary">
End Day Early
</button>
<button type="button" id="next-day-btn" class="btn-primary">
Start Day N+1
</button>
</div>
<p id="phase-status" class="lobby-status" aria-live="polite"></p>
</section>
<section class="panel" id="roster-panel" hidden>
<div class="roster-heading">
<div>
<p class="eyebrow">Crew Manifest</p>
<h2>
Players <span id="player-count" class="count-badge">0</span>
</h2>
</div>
<p class="panel-subtitle">
This list updates live as students join and connect.
</p>
</div>
<div class="table-container">
<table class="roster-table">
<thead>
<tr>
<th>Name</th>
<th>Fish</th>
<th>Wood</th>
<th>Hours</th>
<th>Status</th>
</tr>
</thead>
<tbody id="roster-body">
<tr>
<td colspan="5" class="empty">
No students have joined yet.
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
<footer>
<h3 style="padding: 0px 0px 0px 10px">
Gamemaker: Mr. J. Walla ~=~ Developer: Andrew H. ~=~ Designer: Logan C.
</h3>
</footer>
<script type="module" src="client/lobby.js"></script>
</body>
</html>