|
|
@ -1,9 +1,8 @@ |
|
|
|
import { FunctionComponent } from 'react'; |
|
|
|
|
|
|
|
import AppBar from '@material-ui/core/AppBar'; |
|
|
|
import AppBar from '@material-ui/core/AppBar'; |
|
|
|
import { makeStyles, createStyles } from '@material-ui/core/styles'; |
|
|
|
import { makeStyles, createStyles } from '@material-ui/core/styles'; |
|
|
|
|
|
|
|
import { Grid } from '@material-ui/core'; |
|
|
|
import Image from 'next/image'; |
|
|
|
import Image from 'next/image'; |
|
|
|
|
|
|
|
import { ICONS, ICON_SIZE } from '../../lib/consts/ICONS'; |
|
|
|
// import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const useStyles = makeStyles((theme) => |
|
|
|
const useStyles = makeStyles((theme) => |
|
|
|
createStyles({ |
|
|
|
createStyles({ |
|
|
@ -11,18 +10,40 @@ const useStyles = makeStyles((theme) => |
|
|
|
paddingTop: theme.spacing(0.5), |
|
|
|
paddingTop: theme.spacing(0.5), |
|
|
|
paddingBottom: theme.spacing(0.5), |
|
|
|
paddingBottom: theme.spacing(0.5), |
|
|
|
paddingLeft: theme.spacing(3), |
|
|
|
paddingLeft: theme.spacing(3), |
|
|
|
paddingRight: theme.spacing(0.5), |
|
|
|
paddingRight: theme.spacing(3), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
input: { |
|
|
|
|
|
|
|
height: '40px', |
|
|
|
|
|
|
|
width: '500px', |
|
|
|
|
|
|
|
backgroundColor: theme.palette.secondary.main, |
|
|
|
|
|
|
|
borderRadius: '3px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const Header: FunctionComponent = () => { |
|
|
|
const Header = (): JSX.Element => { |
|
|
|
const classes = useStyles(); |
|
|
|
const classes = useStyles(); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<AppBar position="static" className={classes.appBar}> |
|
|
|
<AppBar position="static" className={classes.appBar}> |
|
|
|
<div> |
|
|
|
<Grid container alignItems="center" justify="space-between"> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
<Image src="/pngs/logo.png" width="160" height="40" /> |
|
|
|
<Image src="/pngs/logo.png" width="160" height="40" /> |
|
|
|
</div> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
|
|
<input className={classes.input} list="search-suggestions" /> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
|
|
{ICONS.map( |
|
|
|
|
|
|
|
(icon): JSX.Element => ( |
|
|
|
|
|
|
|
<Image |
|
|
|
|
|
|
|
key="icon" |
|
|
|
|
|
|
|
src={icon} // eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
|
|
|
|
{...ICON_SIZE} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</AppBar> |
|
|
|
</AppBar> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|