diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-08 18:09:57 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-08 18:09:57 +0100 |
commit | 8e2cd843a17ab77fe6f811d3aedfecb21d459f8c (patch) | |
tree | e995d74f999277eae0d78fe03b3b7ed1c659ee44 /pages | |
parent | 813e3dd1298776b0f0c178af44edf122d75d5a39 (diff) |
added really epic search bar
Diffstat (limited to 'pages')
-rw-r--r-- | pages/search.tsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pages/search.tsx b/pages/search.tsx new file mode 100644 index 0000000..8aef64b --- /dev/null +++ b/pages/search.tsx @@ -0,0 +1,38 @@ +import { Component } from 'react'; + +import { NavBar } from '../components/navbar'; +import { Vierkant, Button, Input } from '../components/ui'; +import { CenteredPage, PageTitle } from '../components/page'; + +import SearchOutlinedIcon from '@material-ui/icons/SearchOutlined'; + +function SearchBar() { + return <Vierkant style={{ padding: 8 }} fullwidth> + <Input label="Zoeken voor gebruikers..." dark style={{ + backgroundColor: "var(--background)", + color: "var(--text)", + padding: 14, + fontSize: 16, + width: "calc(100% - 48px - 14px * 2)" + }}/> + <Button style={{ + padding: 12, + float: "right", + display: "inline-block", + borderRadius: 4 + }}><SearchOutlinedIcon/></Button> + </Vierkant> +} + +export default class HomePage extends Component { + render () { + return <div> + <NavBar/> + <CenteredPage width={802}> + <PageTitle>Zoeken</PageTitle> + <SearchBar/> + </CenteredPage> + </div> + } +} + |