feat: routes, clickable erika, kill sound
release-tag / release-image (push) Successful in 1m0s

This commit is contained in:
2024-05-12 12:03:33 +02:00
parent 4dc370de12
commit d59da50ed1
8 changed files with 115 additions and 58 deletions
+4 -16
View File
@@ -28,16 +28,9 @@ onMounted(async () => {
</script>
<template>
<div id="game_status">
<template v-if="goStore.self && !goStore.current_game?.started">
<input @change="setReady(($event.target as HTMLInputElement).checked)" type="checkbox" id="ready" />
<label for="ready">Ready</label>
</template>
<div class="root_dom_div">
<NuxtPage />
</div>
<LoginView v-if="goStore.context === 'login'"></LoginView>
<GameBoard v-if="goStore.context != 'lobby' && goStore.context != 'login'"></GameBoard>
<LobbyView v-if="goStore.context == 'lobby'"></LobbyView>
</template>
<style>
@@ -55,12 +48,7 @@ body {
user-select: none;
}
#game_status {
position: fixed;
z-index: 10;
top: 0;
left: 50%;
transform: translateX(-50%);
background-color: rgba(255, 255, 255, .75);
.root_dom_div {
height: 100%;
}
</style>