From cb3a0c38944c9eb61bc3e7dc02ca28fc6922993f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 7 Jan 2021 23:15:33 +0100 Subject: balk :tada: --- src/components/gameBar.tsx | 88 ++++++++++++++++++++++++++++++++++++++++++++++ src/components/page.tsx | 6 ++-- src/components/ui.tsx | 3 +- 3 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 src/components/gameBar.tsx (limited to 'src/components') diff --git a/src/components/gameBar.tsx b/src/components/gameBar.tsx new file mode 100644 index 0000000..53eda88 --- /dev/null +++ b/src/components/gameBar.tsx @@ -0,0 +1,88 @@ +import { CSSProperties, ReactNode } from 'react'; +import { Vierkant } from './ui'; + +import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded'; +import ExitToAppRoundedIcon from '@material-ui/icons/ExitToAppRounded'; +import NavigateNextRoundedIcon from '@material-ui/icons/NavigateNextRounded'; +import NavigateBeforeRoundedIcon from '@material-ui/icons/NavigateBeforeRounded'; + +interface GameBarModuleProps { + children?: ReactNode; +} + +function GameBarModule(props: GameBarModuleProps) { + return {props.children} +} + +var GameBarSpacer = () =>
; + +var GameBarAlignStyle: CSSProperties = { + display: "inline-block" +} + +export function GameBar() { + return +
+
+
+

Tegenstander

+
+
+ 0-0 +
+
+ + + + + + 00:00 + + + + + + + + + + + + + +
+
+ ; +} diff --git a/src/components/page.tsx b/src/components/page.tsx index 73981c2..37634a3 100644 --- a/src/components/page.tsx +++ b/src/components/page.tsx @@ -1,8 +1,9 @@ -import { Component, ReactNode } from 'react'; +import { Component, CSSProperties, ReactNode } from 'react'; interface CenteredPageProps { width?: number; children?: ReactNode; + style?: CSSProperties; } export function CenteredPage (props: CenteredPageProps) { @@ -12,7 +13,8 @@ export function CenteredPage (props: CenteredPageProps) { }}>
{props.children}
; } diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 27d98cd..4b4b489 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -8,6 +8,7 @@ interface VierkantProps { height?: string; style?: CSSProperties; children?: ReactNode; + className?: string; } export function Vierkant(props: VierkantProps) { @@ -23,7 +24,7 @@ export function Vierkant(props: VierkantProps) { width: props.width ? props.width : undefined, height: props.height ? props.height : undefined, ...props.style - }} href={props.href}>{props.children} + }} href={props.href} className={props.className}>{props.children} } interface ButtonProps { -- cgit v1.2.3