<template>
  <div id="app">
    <Game v-if="isSocketConnected"/>
    <div v-else>
      <h1>Game loadin mate</h1>
    </div>
  </div>
</template>

<script>
import Game from './components/Game'
export default {
  name: 'App',
  components: {
    Game
  },
  computed: {
    isSocketConnected () {
      return this.$store.state.game.socketConnected
    }
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: #475b6e;
}

</style>
