feat: add proposed group solution

This commit is contained in:
Patrick Charrier
2026-03-29 21:24:42 +02:00
parent 4275cbd795
commit 2462872e24
7 changed files with 1988 additions and 1 deletions

47
index.html Normal file
View File

@@ -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>P2P Poll</title>
<link rel="stylesheet" href="/src/style.css">
</head>
<body>
<div id="app">
<header>
<h1>P2P Poll</h1>
<div id="status">
<span id="connection-status" class="connecting">Connecting...</span>
<span id="peer-count">1 peer</span>
</div>
</header>
<div id="poll-title-section">
<input type="text" id="poll-title" placeholder="Click to name this poll..." maxlength="120">
</div>
<main>
<div id="add-option">
<input type="text" id="option-input" placeholder="Add a poll option..." maxlength="100">
<button id="add-btn">Add</button>
</div>
<div id="total-votes">Total votes: <span id="total-count">0</span></div>
<div id="poll-options"></div>
<p id="empty-state">No options yet. Add one above!</p>
</main>
<footer id="share-section">
<p>Share this poll:</p>
<div id="share-url-container">
<code id="share-url"></code>
<button id="copy-btn">Copy</button>
</div>
</footer>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>