1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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>