From 8cdbd98c8ab9646a96bc22724f38038b4e273a0e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 5 Jan 2021 12:18:38 +0100 Subject: de tegeltjes liggen --- src/components/vierkant.tsx | 3 ++- src/pages/home.jsx | 27 --------------------- src/pages/home.tsx | 59 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 28 deletions(-) delete mode 100644 src/pages/home.jsx create mode 100644 src/pages/home.tsx diff --git a/src/components/vierkant.tsx b/src/components/vierkant.tsx index cfb843e..6140e7a 100644 --- a/src/components/vierkant.tsx +++ b/src/components/vierkant.tsx @@ -6,7 +6,8 @@ var VierkantStyle: CSSProperties = { borderRadius: 8, color: "var(--text)", margin: 6, // geen margin collapse = 12px marge - display: "inline-block" + display: "inline-block", + position: "relative" } export class Vierkant extends Component { diff --git a/src/pages/home.jsx b/src/pages/home.jsx deleted file mode 100644 index 11a72d6..0000000 --- a/src/pages/home.jsx +++ /dev/null @@ -1,27 +0,0 @@ -import { NavBar } from '../components/navbar'; -import { CenteredPage, PageTitle } from '../components/page'; -import { Vierkant, VierkantWrapper } from '../components/vierkant'; - -function HomePage() { - return ( -
- - - 4 op een rij - Gert - Gert2 - Gert3 - Gert4 - Gert5 - Gert6 - Gert7 - Gert8 - Gert9 - Gert10 - Gert11 - -
- ); -} - -export default HomePage; 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 ( +
+ + + 4 op een rij + + + Nieuw spel +
+
+ + + Puzzels +
+
+ + + Tegen computer +
+
+
+
+ ); +} + +export default HomePage; -- cgit v1.2.3