From 319938d57b8cd225de1dd3f63433f6561f92311e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 20 Apr 2021 15:00:46 +0200 Subject: new game dialog not broken anyore --- components/page.tsx | 9 +++-- components/ui.tsx | 37 +++---------------- pages/_app.tsx | 1 + pages/game.tsx | 101 ++++++++++++---------------------------------------- pages/search.tsx | 14 ++++---- styles/game.css | 34 ++++++++++++++++++ styles/search.css | 3 +- styles/ui.css | 14 ++++++++ styles/utility.css | 16 ++++++++- 9 files changed, 103 insertions(+), 126 deletions(-) create mode 100644 styles/game.css diff --git a/components/page.tsx b/components/page.tsx index 506e2db..b8e3dac 100644 --- a/components/page.tsx +++ b/components/page.tsx @@ -1,12 +1,11 @@ import { Component, CSSProperties, ReactNode } from 'react'; -interface CenteredPageProps { +export function CenteredPage(props: { width?: number; children?: ReactNode; style?: CSSProperties; -} - -export function CenteredPage(props: CenteredPageProps) { + className?: string; +}) { return
+ return
-
- -
+
; } diff --git a/pages/_app.tsx b/pages/_app.tsx index db62fa8..31bc0e7 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -11,6 +11,7 @@ import '../styles/navbar.css'; import '../styles/ui.css'; import '../styles/utility.css'; +import '../styles/game.css'; import '../styles/gameSettings.css'; import '../styles/index.css'; import '../styles/loginregister.css'; diff --git a/pages/game.tsx b/pages/game.tsx index b5200a7..d6d7fb0 100644 --- a/pages/game.tsx +++ b/pages/game.tsx @@ -66,10 +66,8 @@ function VoerGame(props: { }, []); return