0
0
Fork 0
Phantom-Ink-Online/web/src/App.vue
2020-12-10 15:18:54 -07:00

47 lines
No EOL
938 B
Vue

<template>
<div id="app" class="maximize">
<CreateJoin v-if="gameState == `login`" />
<GameLobby v-else-if="gameState == `lobby`" />
<InGame v-else-if="gameState == `in-game`" />
<Attributions />
</div>
</template>
<script>
import AttributionsBar from "./components/Attributions";
import CreateJoinGame from "./views/CreateJoin";
import GameLobby from "./views/Lobby";
import InGame from "./views/InGame";
export default {
name: `App`,
components: {
"Attributions": AttributionsBar,
"CreateJoin": CreateJoinGame,
"GameLobby": GameLobby,
"InGame": InGame,
},
computed: {
gameState() {
return this.$store.state.view;
},
},
methods: {},
}
</script>
<style>
@import "css/theme.css";
@import "css/style.css";
html, body {
background-color: var(--background1);
color: var(--light-font-colour);
font-family: var(--fonts);
overflow: hidden;
height: 100vh;
width: 100vw;
padding: 0;
margin: 0;
}
</style>