<template>
  <div class="play">
    <div class="play__layout">
      <div class="play__layout-playground">
        <Quote :text="quote" />
        <Sources :sources="sources" />
        <ConfirmButton />
      </div>
      <div class="play__layout-right-column">
        <PlayerList :players="players" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  computed: {
    gamePhase() {
      return this.$store.state.game.phase
    },
    quote() {
      return this.$store.state.round.quote
    },
    sources() {
      return this.$store.state.round.sources
    },
    players() {
      return this.$store.state.players.players
    },
  },
}
</script>

<style lang="scss">
html,
body,
#__nuxt,
#__layout,
.layout-default,
.page-play {
  height: 100%;
}

.play {
  position: relative;
  width: 100%;
  height: 100%;

  &__layout {
    display: flex;
    width: 100%;
    height: 100%;

    &-playground {
      position: relative;
      flex-grow: 1;
    }

    &-right-column {
      width: 200px;
      margin: 16px 16px 0 0;
    }
  }
}
</style>
