diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-07 17:06:37 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-07 17:06:37 +0100 |
commit | d336768c15fa5a1cbe5a4a051e749d00aa31be60 (patch) | |
tree | 085c51a7342c84a83abe1f6f19385734bbbfc40e /src/components | |
parent | 5971b69a2990390529a6f8076331e3d7d10c9325 (diff) |
zoekbalk + navbar icoon grootte
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/navbar.tsx | 2 | ||||
-rw-r--r-- | src/components/ui.tsx | 20 |
2 files changed, 16 insertions, 6 deletions
diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 2d38509..1ad6fe4 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -30,7 +30,7 @@ export function NavBar() { left: 0, overflow: "hidden", - whiteSpace: "nowrap", + whiteSpace: "nowrap" }}> <div style={NavBarItemStyle}><LogoDark/></div> <a href="/" style={NavBarItemStyle}><Home/></a> diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 2a7e950..27d98cd 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -1,5 +1,7 @@ import { CSSProperties, ReactNode } from "react"; +import SearchIcon from '@material-ui/icons/Search'; + interface VierkantProps { href?: string; width?: string; @@ -67,21 +69,29 @@ export function SearchBar(props: SearchBarProps) { <input type="text" placeholder={props.label} spellCheck={false} style={{ padding: 12, border: 0, - width: "calc(100% - 24px - 40px)", + width: "calc(100% - 24px - 41px)", fontSize: 14, backgroundColor: "var(--page-background)", color: "var(--text-alt)", borderBottomLeftRadius: 8, - borderTopLeftRadius: 8 + borderTopLeftRadius: 8, + fontFamily: "Inter" }}/> <div style={{ - width: 40, - height: 40, + width: 41, + height: 41, backgroundColor: "var(--disk-a)", display: "inline-block", verticalAlign: "top", position: "relative" - }}></div> + }}> + <SearchIcon style={{ + fontSize: 24, + position: "absolute", + top: "50%", left: "50%", + transform: "translate(-50%, -50%)" + }}/> + </div> </div> } |