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>
|
||||
import {generateRoomID} from './estimation/estimation.js';
|
||||
import { generateRoomId } from './estimation/estimation.js';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
let roomID = generateRoomID();
|
||||
console.log(roomID);
|
||||
function startARoom() {
|
||||
const roomId = generateRoomId();
|
||||
goto(`/estimation/${roomId}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>Estimation Poker</h1>
|
||||
|
||||
<button on:click={startARoom}>Start a room</button>
|
||||
|
||||
Reference in New Issue
Block a user