Waiting.vue 1.37 KB
<template>
  <div class="body">
    <Navbar/>
    <div class="container d-flex justify-content-center">
      <div class="card shadow mb-4">
        <h5 class="card-header text-primary">En attente de joueurs</h5>
        <div class="card-body" style="width : 500px;">
          <table class="table table-striped table-primary">
            <thead>
              <tr>
                <th scope="col">#</th>
                <th scope="col">Login</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <th scope="row">1</th>
                <td>{{ login }}</td>
              </tr>
              <tr>
                <th scope="row">2</th>
                <td></td>
              </tr>
              <tr>
                <th scope="row">3</th>
                <td></td>
              </tr>
              <tr>
                <th scope="row">4</th>
                <td></td>
              </tr>
            </tbody>
          </table>
          <router-link to="/game">
            <button type="button" class="btn btn-primary btn-block">Jouer</button>
          </router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import Navbar from '@/components/Navbar'

  export default {
    name: 'GameChoice',
    components: {
      Navbar
    },
    data() {
      return {
        login: localStorage.login
      }
    }
  }
</script>