From 5971b69a2990390529a6f8076331e3d7d10c9325 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 7 Jan 2021 15:40:11 +0100 Subject: soortvan zoekbalk --- src/components/gameSettings.tsx | 5 +++-- src/components/ui.tsx | 32 ++++++++++++++++++++++++++++++++ src/global.css | 5 +++++ src/pages/game.tsx | 7 ++++--- 4 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/components/gameSettings.tsx b/src/components/gameSettings.tsx index bd28221..13bb1cc 100644 --- a/src/components/gameSettings.tsx +++ b/src/components/gameSettings.tsx @@ -12,7 +12,7 @@ export function CurrentGameSettings(/*props: CurrentGameSettingsProps*/) { height: 80 }}>

Spelregels aanpassen ; diff --git a/src/components/ui.tsx b/src/components/ui.tsx index d869151..2a7e950 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -53,3 +53,35 @@ export function Button(props: ButtonProps) { ; } +interface SearchBarProps { + label?: string; +} + +export function SearchBar(props: SearchBarProps) { + return

+ +
+
+} + diff --git a/src/global.css b/src/global.css index 5787cee..bf7c090 100644 --- a/src/global.css +++ b/src/global.css @@ -49,3 +49,8 @@ td, th { font-size: 15px; } +input::placeholder { + font-style: italic; + opacity: .8; +} + diff --git a/src/pages/game.tsx b/src/pages/game.tsx index b17c12a..1725d09 100644 --- a/src/pages/game.tsx +++ b/src/pages/game.tsx @@ -5,13 +5,13 @@ import { CenteredPage } from '../components/page'; import { VoerBord } from '../components/voerBord'; import { DialogBox } from '../components/dialogBox'; import { CurrentGameSettings } from '../components/gameSettings'; -import { Button } from '../components/ui'; +import { Button, SearchBar } from '../components/ui'; import WifiTetheringRoundedIcon from '@material-ui/icons/WifiTetheringRounded'; import LinkRoundedIcon from '@material-ui/icons/LinkRounded'; var InviteButtonStyle: CSSProperties = { - backgroundColor: "var(--text)", + backgroundColor: "var(--page-background)", height: 160, padding: 12 } @@ -30,7 +30,7 @@ var InviteButtonLabelStyle: CSSProperties = { left: "50%", transform: "translateX(-50%)", textAlign: "center", - color: "var(--background)", + color: "var(--text-alt)", width: 136, fontSize: 20 } @@ -64,6 +64,7 @@ export default function GamePage() {

Uitnodigen via link

+ -- cgit v1.2.3