|
|
@ -1,6 +1,6 @@ |
|
|
|
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 { Box } from '@material-ui/core'; |
|
|
|
import Image from 'next/image'; |
|
|
|
import Image from 'next/image'; |
|
|
|
import { ICONS, ICON_SIZE } from '../lib/consts/ICONS'; |
|
|
|
import { ICONS, ICON_SIZE } from '../lib/consts/ICONS'; |
|
|
|
|
|
|
|
|
|
|
@ -18,6 +18,9 @@ const useStyles = makeStyles((theme) => |
|
|
|
backgroundColor: theme.palette.secondary.main, |
|
|
|
backgroundColor: theme.palette.secondary.main, |
|
|
|
borderRadius: '3px', |
|
|
|
borderRadius: '3px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
barElement: { |
|
|
|
|
|
|
|
padding: '0', |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -25,14 +28,20 @@ const Header = (): JSX.Element => { |
|
|
|
const classes = useStyles(); |
|
|
|
const classes = useStyles(); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<AppBar position="static" className={classes.appBar}> |
|
|
|
<AppBar position="static" className={classes.appBar}> |
|
|
|
<Grid container alignItems="center" justify="space-between"> |
|
|
|
<Box |
|
|
|
<Grid item> |
|
|
|
display="flex" |
|
|
|
|
|
|
|
flexDirection="row" |
|
|
|
|
|
|
|
width="100%" |
|
|
|
|
|
|
|
justifyContent="space-between" |
|
|
|
|
|
|
|
alignContent="flex-start" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Box p={1} className={classes.barElement}> |
|
|
|
<Image src="/pngs/logo.png" width="160" height="40" /> |
|
|
|
<Image src="/pngs/logo.png" width="160" height="40" /> |
|
|
|
</Grid> |
|
|
|
</Box> |
|
|
|
<Grid item> |
|
|
|
<Box p={1} className={classes.barElement}> |
|
|
|
<input className={classes.input} list="search-suggestions" /> |
|
|
|
<input className={classes.input} list="search-suggestions" /> |
|
|
|
</Grid> |
|
|
|
</Box> |
|
|
|
<Grid item> |
|
|
|
<Box p={1} className={classes.barElement}> |
|
|
|
{ICONS.map( |
|
|
|
{ICONS.map( |
|
|
|
(icon): JSX.Element => ( |
|
|
|
(icon): JSX.Element => ( |
|
|
|
<Image |
|
|
|
<Image |
|
|
@ -42,8 +51,8 @@ const Header = (): JSX.Element => { |
|
|
|
/> |
|
|
|
/> |
|
|
|
), |
|
|
|
), |
|
|
|
)} |
|
|
|
)} |
|
|
|
</Grid> |
|
|
|
</Box> |
|
|
|
</Grid> |
|
|
|
</Box> |
|
|
|
</AppBar> |
|
|
|
</AppBar> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|