front: centr align for Leaderboard
This commit is contained in:
parent
03b983aafd
commit
6c885bfa68
@ -2,10 +2,6 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.Container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
@ -20,4 +16,3 @@
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
|
6
webapp/src/Leaderboard.css
Normal file
6
webapp/src/Leaderboard.css
Normal file
@ -0,0 +1,6 @@
|
||||
.Leaderboard {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 25px
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import './Leaderboard.css';
|
||||
//const Leaderboard = ({hashmap}) => {
|
||||
|
||||
// var listItems = Object.keys(hashmap).map(playerName => {
|
||||
@ -43,19 +44,21 @@ const Leaderboard = () => {
|
||||
});
|
||||
|
||||
return (
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Played</th>
|
||||
<th>Won</th>
|
||||
<th>Draw</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{ tableRows }
|
||||
</tbody>
|
||||
</table>
|
||||
<div className="Leaderboard">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Played</th>
|
||||
<th>Won</th>
|
||||
<th>Draw</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{ tableRows }
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user