aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/SearchBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Header/SearchBar.tsx')
-rw-r--r--src/components/Header/SearchBar.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/components/Header/SearchBar.tsx b/src/components/Header/SearchBar.tsx
new file mode 100644
index 0000000..182a1a4
--- /dev/null
+++ b/src/components/Header/SearchBar.tsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import SearchIcon from '@material-ui/icons/Search';
+import { InputBase } from '@material-ui/core';
+import { makeStyles } from '@material-ui/core/styles';
+
+const useStyles = makeStyles(theme => ({
+ root: {
+ background: 'rgba(255, 255, 255, 0.5)',
+ borderRadius: '2px',
+ padding: theme.spacing(0.5),
+ display: 'flex',
+ alignItems: 'center'
+ }
+}));
+
+const SearchBar: React.FC = () => {
+ const classes = useStyles();
+
+ return (
+ <div className={classes.root}>
+ <SearchIcon />
+ <InputBase
+ placeholder="Search..."
+ />
+ </div>
+ );
+};
+
+
+export default SearchBar;
+