mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-13 02:53:46 +00:00
feat(*): Add room generation to homepage
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import {generateRoomID} from './estimation/estimation.js';
|
import { generateRoomId } from './estimation/estimation.js';
|
||||||
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
let roomID = generateRoomID();
|
function startARoom() {
|
||||||
console.log(roomID);
|
const roomId = generateRoomId();
|
||||||
|
goto(`/estimation/${roomId}`);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>Estimation Poker</h1>
|
<h1>Estimation Poker</h1>
|
||||||
|
|
||||||
|
<button on:click={startARoom}>Start a room</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user