diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-05 12:18:38 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-05 12:18:38 +0100 |
commit | 8cdbd98c8ab9646a96bc22724f38038b4e273a0e (patch) | |
tree | 066d31f73f2dd0abb616092ac282d826df392494 /src/pages/home.tsx | |
parent | b6abf82e0c8946353f973042bb58c30f3853496a (diff) |
de tegeltjes liggen
Diffstat (limited to 'src/pages/home.tsx')
-rw-r--r-- | src/pages/home.tsx | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/pages/home.tsx b/src/pages/home.tsx new file mode 100644 index 0000000..735ef10 --- /dev/null +++ b/src/pages/home.tsx @@ -0,0 +1,59 @@ +import {CSSProperties} from 'react'; + +import { NavBar } from '../components/navbar'; +import { CenteredPage, PageTitle } from '../components/page'; +import { Vierkant } from '../components/vierkant'; + +import VideogameAssetIcon from '@material-ui/icons/VideogameAsset'; +import ExtensionIcon from '@material-ui/icons/Extension'; + +var GameModeIconStyle: CSSProperties = { + fontSize: 64, + display: "inline-block", + position: "absolute", + top: 24, + left: "50%", + transform: "translateX(-50%)" +} + +var GameModeTextStyle: CSSProperties = { + whiteSpace: "nowrap", + display: "inline-block", + position: "absolute", + bottom: 24, + left: "50%", + transform: "translateX(-50%)" +} + +var SquareSize: CSSProperties = { + width: 100, + height: 100 +} + +function HomePage() { + return ( + <div> + <NavBar /> + <CenteredPage> + <PageTitle>4 op een rij</PageTitle> + <Vierkant> + <VideogameAssetIcon style={GameModeIconStyle}/> + <span style={GameModeTextStyle}>Nieuw spel</span> + <div style={SquareSize}></div> + </Vierkant> + <Vierkant> + <ExtensionIcon style={GameModeIconStyle}/> + <span style={GameModeTextStyle}>Puzzels</span> + <div style={SquareSize}></div> + </Vierkant> + <Vierkant> + <VideogameAssetIcon style={GameModeIconStyle}/> + <span style={GameModeTextStyle}>Tegen computer</span> + <div style={SquareSize}></div> + </Vierkant> + </CenteredPage> + </div> + ); +} + +export default HomePage; |