summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJomar Milan <jomarm@jomarm.com>2026-05-30 14:32:51 -0700
committerJomar Milan <jomarm@jomarm.com>2026-05-30 14:32:51 -0700
commit21be142ed526c5ec88c14c3ea6cad043a075a2b9 (patch)
treec51a223be5a439e1c8fa3dc4238cce04a14ed5ee /templates
parent453ba51e78024fed7d22f984959b050182badffd (diff)
Add unimplemented color selection box
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html4
-rw-r--r--templates/session.html22
2 files changed, 24 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 8b531d3..78d60e9 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -5,11 +5,11 @@
<title>Rusted Ambulator</title>
</head>
<body>
-<h2>Sessions</h2>
+<h1>Sessions</h1>
<ul>
{% for (id, session) in sessions %}
<li>
- <span>{{session.steam_name}}'s game</span>
+ <span>{{session.steam_name}}'s game ({{id}})</span>
<form action="/session/{{id}}">
<input name="passcode" placeholder="Passcode">
<input type="submit">
diff --git a/templates/session.html b/templates/session.html
new file mode 100644
index 0000000..6319d05
--- /dev/null
+++ b/templates/session.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>{{session.steam_name}}'s game</title>
+ <script src="/dist/session.js" defer></script>
+</head>
+<body>
+<h1>{{session.steam_name}}'s game</h1>
+<form id="player-selection">
+ <h2>Player Selection</h2>
+ <label for="color-select">Your color:</label>
+ <select id="color-select">
+ <option value="">None selected</option>
+ <hr>
+ {% for (color, _) in session.hands %}
+ <option value="{{color}}">{{color}}</option>
+ {% endfor %}
+ </select>
+</form>
+</body>
+</html> \ No newline at end of file