From b33439e75d4b22a0c68b5cb56851b518a5ea7db7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 17 Apr 2021 10:30:24 +0200 Subject: started moving to css files --- components/logo.tsx | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'components/logo.tsx') diff --git a/components/logo.tsx b/components/logo.tsx index e43aa88..9faf43f 100644 --- a/components/logo.tsx +++ b/components/logo.tsx @@ -1,27 +1,14 @@ -export function LogoDark() { +export default function Logo() { return (
- - - - - + + + + +
); } -export function LogoLight() { - return ( -
- - - - - - - -
- ); -} -- cgit v1.2.3 From 59459df904674bc3eaa95f4203113793c7c7fc9a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 17 Apr 2021 17:25:11 +0200 Subject: dprint fmt --- components/logo.tsx | 1 - components/navbar.tsx | 22 +++++++++---------- components/recentGames.tsx | 12 ++++++----- components/ui.tsx | 6 ++++-- pages/_app.tsx | 4 ++-- pages/index.tsx | 54 +++++++++++++++++++++++----------------------- 6 files changed, 51 insertions(+), 48 deletions(-) (limited to 'components/logo.tsx') diff --git a/components/logo.tsx b/components/logo.tsx index 9faf43f..df35370 100644 --- a/components/logo.tsx +++ b/components/logo.tsx @@ -11,4 +11,3 @@ export default function Logo() { ); } - diff --git a/components/navbar.tsx b/components/navbar.tsx index 932669d..7f6e694 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -55,7 +55,7 @@ export function NavBar() { }, []); return
-
+
- + - + - {false && + {false && } - + -
+
{loggedIn && diff --git a/components/recentGames.tsx b/components/recentGames.tsx index 65c819a..d619eeb 100644 --- a/components/recentGames.tsx +++ b/components/recentGames.tsx @@ -29,11 +29,13 @@ function GameOutcome(props: { game: gameInfo; }) { }[props.game.status](); })(); return - + {gameStatus} ; diff --git a/components/ui.tsx b/components/ui.tsx index db858a4..e2d19ad 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -17,7 +17,9 @@ export function Vierkant(props: { }) { return @@ -38,7 +40,7 @@ export function Button(props: { onClick={props.onclick} href={props.href} id={props.id} - className={"button pad-s round-t " + props.className} + className={'button pad-s round-t ' + props.className} > {props.text ? diff --git a/pages/_app.tsx b/pages/_app.tsx index 46aa8d0..290e687 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -7,9 +7,9 @@ import '../styles/dark.css'; import '../styles/disk.css'; import '../styles/footer.css'; import '../styles/global.css'; -import '../styles/utility.css'; -import '../styles/ui.css'; import '../styles/navbar.css'; +import '../styles/ui.css'; +import '../styles/utility.css'; import '../styles/index.css'; diff --git a/pages/index.tsx b/pages/index.tsx index c3fe955..3d9da21 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -17,13 +17,13 @@ import { mdiRobotExcited } from '@mdi/js'; import Icon from '@mdi/react'; function LoginOrRegisterBox() { - return
- + return
+ Log in of maak een account aan om toegang tot meer functies te krijgen -
-
; } @@ -32,19 +32,19 @@ function AccountBox(props: { info: userInfo; sumGameInfo: userGameTotals; }) { - return
-
+ return
+
-
-

{props.info?.username}

-

Score: {props.info?.rating}

-

- {props.sumGameInfo?.win} W - / - {props.sumGameInfo?.lose} V - / - {props.sumGameInfo?.draw} G +

+

{props.info?.username}

+

Score: {props.info?.rating}

+

+ {props.sumGameInfo?.win} W + / + {props.sumGameInfo?.lose} V + / + {props.sumGameInfo?.draw} G

; @@ -92,22 +92,22 @@ export default function HomePage() { 4 op een rij -
- - - Nieuw spel +
+ + + Nieuw spel {false - && - - Puzzels + && + + Puzzels } {false - && - - Tegen computer + && + + Tegen computer } - + {loggedIn ? : } -- cgit v1.2.3