From 18652c6ff5e10208298bea67ffce6b4ed327c97d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 18 Apr 2021 11:30:10 +0200 Subject: search page without inline css --- pages/search.tsx | 56 +++++++++++--------------------------------------------- 1 file changed, 11 insertions(+), 45 deletions(-) (limited to 'pages/search.tsx') diff --git a/pages/search.tsx b/pages/search.tsx index 2b8668a..90f1f67 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,32 +24,21 @@ function search(callback: (results: Array) => void) { } function SearchResults(props: { userList: Array; }) { - return
+ return
{props.userList?.map(user => )}
; } function SearchResult(props: { user: userInfo; }) { return -
+
-
- {props.user.username} -

{props.user.status}

+
+ {props.user.username} +

{props.user.status}

; @@ -58,40 +47,22 @@ function SearchResult(props: { user: userInfo; }) { function SearchBar(props: { searchFunction: (event?: FormEvent) => void; }) { - return + return
- +
; } @@ -112,12 +83,7 @@ export default function HomePage() { {searched && results.length == 0 &&

Geen zoekresultaten gevonden

} -- cgit v1.2.3 From 5d964348d6b7af2b17d9838b1fe8b78d76a68cbc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 18 Apr 2021 11:30:28 +0200 Subject: dprint fmt --- components/ui.tsx | 2 +- pages/index.tsx | 4 ++-- pages/search.tsx | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'pages/search.tsx') diff --git a/components/ui.tsx b/components/ui.tsx index 60b80f4..89e8ffe 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -105,7 +105,7 @@ export function Input(props: { placeholder={props.label} spellCheck={false} defaultValue={props.value ? String(props.value) : ''} - className={"input" + " " + (props.dark ? 'dark' : 'light') + " " + props.className} + className={'input' + ' ' + (props.dark ? 'dark' : 'light') + ' ' + props.className} autoComplete={props.autocomplete} autoFocus={props.autofocus} />; diff --git a/pages/index.tsx b/pages/index.tsx index b5f4b50..9f63229 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -114,10 +114,10 @@ export default function HomePage() {
{loggedIn - && + && } - +

Nieuws ofzo

Chess.com heeft heel veel troep waar niemand naar kijkt

diff --git a/pages/search.tsx b/pages/search.tsx index 90f1f67..6e52865 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,21 +24,21 @@ function search(callback: (results: Array) => void) { } function SearchResults(props: { userList: Array; }) { - return
+ return
{props.userList?.map(user => )}
; } function SearchResult(props: { user: userInfo; }) { return -
+
-
- {props.user.username} -

{props.user.status}

+
+ {props.user.username} +

{props.user.status}

; @@ -47,22 +47,22 @@ function SearchResult(props: { user: userInfo; }) { function SearchBar(props: { searchFunction: (event?: FormEvent) => void; }) { - return + return
- +
; } @@ -83,7 +83,7 @@ export default function HomePage() { {searched && results.length == 0 &&

Geen zoekresultaten gevonden

} -- cgit v1.2.3 From 08ba9024f532554fe2135d2596f1169828b01e5f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 19 Apr 2021 09:51:38 +0200 Subject: login/register pages done + fullwidth css class edited --- components/ui.tsx | 2 +- pages/_app.tsx | 1 + pages/index.tsx | 2 +- pages/login.tsx | 44 ++++++++++++++++---------------------------- pages/register.tsx | 38 +++++++++++++++++++------------------- pages/search.tsx | 4 ++-- pages/settings.tsx | 8 ++++---- styles/loginregister.css | 13 +++++++++++++ styles/ui.css | 2 -- styles/utility.css | 10 ++++++++++ 10 files changed, 67 insertions(+), 57 deletions(-) create mode 100644 styles/loginregister.css (limited to 'pages/search.tsx') diff --git a/components/ui.tsx b/components/ui.tsx index 6555813..9aa48cc 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -1,4 +1,4 @@ -import { Component, CSSProperties, ReactNode, useEffect, useState } from 'react'; +import { CSSProperties, ReactNode, useEffect, useState } from 'react'; import CheckBoxIcon from '@material-ui/icons/CheckBox'; import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank'; diff --git a/pages/_app.tsx b/pages/_app.tsx index 9521d58..7cdb8e3 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -13,6 +13,7 @@ import '../styles/utility.css'; import '../styles/gameSettings.css'; import '../styles/index.css'; +import '../styles/loginregister.css'; import '../styles/search.css'; import '../styles/settings.css'; diff --git a/pages/index.tsx b/pages/index.tsx index 31aee57..873cf8b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -117,7 +117,7 @@ export default function HomePage() { && } - +

Nieuws ofzo

Chess.com heeft heel veel troep waar niemand naar kijkt

diff --git a/pages/login.tsx b/pages/login.tsx index 1e14573..9e26b50 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -49,44 +49,32 @@ export default function LoginPage() {
-
- +
+
submitLogin(e, toast)}> - - - -
+ className='pad-m fullwidth bg-900 round-t' + /> + +
- + className='register bg-700 fg-100' + /> +
- +
diff --git a/pages/register.tsx b/pages/register.tsx index f78d092..90dab3e 100644 --- a/pages/register.tsx +++ b/pages/register.tsx @@ -89,34 +89,34 @@ export default function RegisterPage() {
-
- +
+
submitRegister(e, toast)}> - - - + className='pad-m fullwidth bg-900 round-t' + /> + + - + /> +
diff --git a/pages/search.tsx b/pages/search.tsx index 6e52865..e874775 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,7 +24,7 @@ function search(callback: (results: Array) => void) { } function SearchResults(props: { userList: Array; }) { - return
+ return
{props.userList?.map(user => )}
; } @@ -47,7 +47,7 @@ function SearchResult(props: { user: userInfo; }) { function SearchBar(props: { searchFunction: (event?: FormEvent) => void; }) { - return + return
Instellingen - +

Account

@@ -92,7 +92,7 @@ export default function SettingsPage() {
- +

Kleuren

@@ -117,13 +117,13 @@ export default function SettingsPage() {

Donkere modus

- +

Standaard spelregels

- +

Uitloggen

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 (limited to 'pages/search.tsx') 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