summaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/public/index.html b/public/index.html
new file mode 100644
index 0000000..f27fc20
--- /dev/null
+++ b/public/index.html
@@ -0,0 +1,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>