<html>
<head>
<title>
Imersão Dev
</title>
</head>
<body>
<h1>Classificação Alura</h1>
<table style="width:100%">
<thead>
<tr>
<th>Nome</th>
<th>Vitórias</th>
<th>Empates</th>
<th>Derrotas</th>
<th>Pontos</th>
<th colspan="3">Ações</th>
</tr>
</thead>
<tbody id="tabelaJogadores">
<tr>
<td>Paulo</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><button onClick="adicionarVitoria()">Vitória</button></td>
<td><button onClick="adicionarEmpate()">Empate</button></td>
<td><button onClick="adicionarDerrota()">Derrota</button></td>
</tr>
<tr>
<td>Rafa</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><button onClick="adicionarVitoria()">Vitória</button></td>
<td><button onClick="adicionarEmpate()">Empate</button></td>
<td><button onClick="adicionarDerrota()">Derrota</button></td>
</tr>
</tbody>
</table>
</body>
</html>
* {
text-align: center;
}
body {
font-family: "Roboto Mono", monospace;
min-height: 400px;
background-image: url("https://www.alura.com.br/assets/img/imersoes/dev-2021/tabela-classificacao-bg.png");
background-color: #111;
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
}
.container {
text-align: center;
padding: 20px;
height: 100vh;
}
.page-title {
color: #ffffff;
margin: 0 0 5px;
}
.page-subtitle {
color: #ffffff;
margin-top: 5px;
}
.page-logo {
width: 200px;
}
.alura-logo {
width: 40px;
position: absolute;
top: 10px;
right: 10px;
}
table {
border: 2px solid white;
border-collapse: collapse;
}
h1 {
color: white;
}
th,
tr,
td {
border: solid 1px white;
color: white;
}
button {
background-color: #002351;
color: #f6f6f6;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.