blob: f27fc2094dd006842f3d1d5b24e5bd11f64f4d30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wheel of Names Clone</title>
<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=Alegreya+Sans:wght@400;500;700;800&family=Fraunces:opsz,[email protected],600;9..144,700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="background-shape shape-one"></div>
<div class="background-shape shape-two"></div>
<main class="app-shell">
<header class="hero">
<p class="label">Show Mode Wheel</p>
<h1>Pick the winner from your terminal</h1>
<p class="subtitle">
This wheel is controlled by API calls. The spin animation is visual-only,
while you choose the winner in advance.
</p>
</header>
<section class="wheel-area">
<canvas id="wheel" width="640" height="640" aria-label="Wheel"></canvas>
<div class="pointer" aria-hidden="true"></div>
<div class="winner-chip" id="winnerChip">Waiting for spin...</div>
</section>
<section class="controls">
<h2>How to control it</h2>
<ol>
<li>Set names via <code>POST /api/entries</code></li>
<li>Trigger winner via <code>POST /api/spin</code></li>
</ol>
<pre><code id="exampleCommands"></code></pre>
</section>
</main>
<script src="/socket.io/socket.io.js"></script>
<script src="app.js"></script>
</body>
</html>
|