Skip to content
Snippets Groups Projects
Commit 6f8dbea7 authored by lfr20's avatar lfr20
Browse files

Centered the logo

parent 72094a07
No related branches found
No related tags found
6 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa,!31Fix console error,!29Training materials into fix console error
...@@ -19,13 +19,13 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/> ...@@ -19,13 +19,13 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>
import React from 'react' import React from 'react'
import MenuIcon from '@material-ui/icons/Menu'; import MenuIcon from '@material-ui/icons/Menu';
import styled from 'styled-components' import styled from 'styled-components'
import {Button} from '@material-ui/core' import { Button } from '@material-ui/core'
import logo from '../img/logo_small.svg' import logo from '../img/logo_small.svg'
import {Link} from 'react-router-dom' import { Link } from 'react-router-dom'
import Grid from '@material-ui/core/Grid'; import Grid from '@material-ui/core/Grid';
import MobileDrawerMenu from './MobileDrawerMenu'; import MobileDrawerMenu from './MobileDrawerMenu';
export default function MenuBarMobile (props) { export default function MenuBarMobile(props) {
const [drawerOpen, setDrawerStatus] = React.useState(false); const [drawerOpen, setDrawerStatus] = React.useState(false);
...@@ -37,45 +37,40 @@ export default function MenuBarMobile (props) { ...@@ -37,45 +37,40 @@ export default function MenuBarMobile (props) {
}; };
return ( return (
<OuterDiv> <>
<Grid container>
<Grid item xs={3} style={{display : "flex"}}>
<Button style={{color : "#00bcd4"}} onClick={toggleDrawer(true)}>
<MenuIcon className="icon"/>
</Button>
</Grid>
<Grid item xs={9} justify={'center'}>
<div className="logo">
<Link to="/">
<img src={logo} alt={"Plataforma Integrada"}/>
</Link>
</div>
</Grid>
</Grid>
<MobileDrawerMenu anchor={'left'} open={drawerOpen} <MobileDrawerMenu anchor={'left'} open={drawerOpen}
onClose={toggleDrawer(false)} onClose={toggleDrawer(false)}
openSignUp = {props.openSignUp} openLogin = {props.openLogin} openSignUp={props.openSignUp} openLogin={props.openLogin}
/> />
</OuterDiv> <OuterDiv>
<DrawerButtonDiv style={{justifySelf : "flex-start", position : "absolute", left : 0}}>
<Button style={{ color: "#00bcd4" }} onClick={toggleDrawer(true)}>
<MenuIcon className="icon" />
</Button>
</DrawerButtonDiv>
<div className="logo">
<Link to="/">
<img src={logo} alt={"Plataforma Integrada"} />
</Link>
</div>
</OuterDiv>
</>
) )
} }
const OuterDiv = styled.div ` const OuterDiv = styled.div`
height : 48px; height : 48px;
margin : 5px 2px; width : 100%;
display : flex; display : flex;
flex-direction : column; flex-direction : row;
align-content : stretch; align-items : center;
justify-content : center; justify-content : center;
position : relative;
.logo { .logo {
height : 50px; align-content : center;
width : 150px; justify-self : center;
padding : 5px;
padding-top : 15px;
text-align : center; text-align : center;
img { img {
height : 38px; height : 38px;
overflow : hidden; overflow : hidden;
...@@ -98,3 +93,8 @@ const OuterDiv = styled.div ` ...@@ -98,3 +93,8 @@ const OuterDiv = styled.div `
color : inherit !important; color : inherit !important;
} }
` `
const DrawerButtonDiv = styled.div`
justify-self : center;
position : absolute;
left : 0;
`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment