From fb1f80d5af7e3808a3506ee5d2b609394f452cec Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 Feb 2021 15:35:49 +0100 Subject: account page done --- components/recentGames.tsx | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pages/account.tsx | 10 +++++++--- pages/index.tsx | 23 ++--------------------- 3 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 components/recentGames.tsx diff --git a/components/recentGames.tsx b/components/recentGames.tsx new file mode 100644 index 0000000..6bd766b --- /dev/null +++ b/components/recentGames.tsx @@ -0,0 +1,46 @@ +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
+

Recente partijen

+ + + + + + + + + + + + + + + + + + + +
TegenstanderUitkomstZettenDatum
Naam hierGewonnen7Vandaag
Nog meer namenGelijkspel42Gisteren
+
+ } +} + diff --git a/pages/account.tsx b/pages/account.tsx index 4d1ecd2..82e21fa 100644 --- a/pages/account.tsx +++ b/pages/account.tsx @@ -5,6 +5,7 @@ import { NavBar } from '../components/navbar'; import { CenteredPage, PageTitle } from '../components/page'; import { Vierkant, IconLabelButton } from '../components/ui'; import { AccountAvatar } from '../components/account'; +import RecentGames from '../components/recentGames'; import PersonAddOutlinedIcon from '@material-ui/icons/PersonAddOutlined'; import AssignmentIndOutlinedIcon from '@material-ui/icons/AssignmentIndOutlined'; @@ -90,18 +91,21 @@ export default function AccountPage() { - } label="Online"/> + } label="Online"/> } label="Lid sinds 14 december 2020"/> } label="2 vrienden"/> } label="Nederland"/> - } label="4 keer gewonnen"/> + } label="4 keer gewonnen"/> } label="2 keer gelijkspel"/> - } label="2 keer verloren"/> + } label="2 keer verloren"/> } label="Score: 400"/> } label="6 potjes"/> + + + } diff --git a/pages/index.tsx b/pages/index.tsx index 7d128ef..665ef6a 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,6 +6,7 @@ import { NavBar } from '../components/navbar'; import { CenteredPage, PageTitle } from '../components/page'; import { Vierkant, Button } from '../components/ui'; import { AccountAvatar } from '../components/account'; +import RecentGames from '../components/recentGames'; import VideogameAssetIcon from '@material-ui/icons/VideogameAsset'; import ExtensionIcon from '@material-ui/icons/Extension'; @@ -160,27 +161,7 @@ export default class HomePage extends Component { -

Recente partijen

- - - - - - - - - - - - - - - - - - - -
TegenstanderUitkomstZettenDatum
Naam hierGewonnen7Vandaag
Nog meer namenGelijkspel42Gisteren
+

Nieuws ofzo

-- cgit v1.2.3