Skip to content

Commit

Permalink
Add "End game" button to leaderboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed Mar 16, 2024
1 parent 5ac5cd5 commit 07e68c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/game/[gameId=id]/leaderboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
}
</script>

{#if data.isHost}<a id="end" class="button" href="../end">End game</a>{/if}
<div id="page-container">
<div id="leaderboard-container">
<Leaderboard {orderedPlayers} />
Expand All @@ -50,6 +51,11 @@
</div>

<style>
#end {
position: fixed;
right: 0;
}
#page-container {
height: 100vh;
display: flex;
Expand Down

0 comments on commit 07e68c0

Please sign in to comment.