aboutsummaryrefslogtreecommitdiff
path: root/components/recentGames.tsx
blob: a14194ff26173579a720bb0e2b65527ba9a80258 (plain)
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
import { CSSProperties, Component } from 'react';

var LeftAlignedTableColumn: CSSProperties = {
	textAlign: "left",
	paddingLeft: 16
}

var RightAlignedTableColumn: CSSProperties = {
	textAlign: "right",
	paddingRight: 16
}

export default class RecentGames extends Component {
	constructor(props: {
		user?: string;
	}) {
		super(props);
	}

	render () {
		return <div>
			<h2>Recente partijen</h2>
			<table width="100%" style={{ marginTop: "16px", textAlign: "center" }}>
				<tbody>
					<tr>
						<th style={{ width: "50%" }}>Tegenstander</th>
						<th style={{ width: "20%" }}>Uitkomst</th>
						<th style={{ width: "15%" }}>Zetten</th>
						<th style={{ width: "15%" }}>Datum</th>
					</tr>
					<tr>
						<td style={LeftAlignedTableColumn}>Naam hier</td>
						<td style={{ color: "var(--disk-b-text)" }}>Gewonnen</td>
						<td>7</td>
						<td style={RightAlignedTableColumn}>Vandaag</td>
					</tr>
					<tr>
						<td style={LeftAlignedTableColumn}>Nog meer namen</td>
						<td style={{ opacity: .6 }}>Gelijkspel</td>
						<td>42</td>
						<td style={RightAlignedTableColumn}>Gisteren</td>
					</tr>
				</tbody>
			</table>
		</div>
	}
}