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
...@@ -37,45 +37,40 @@ export default function MenuBarMobile (props) { ...@@ -37,45 +37,40 @@ export default function MenuBarMobile (props) {
}; };
return ( return (
<>
<MobileDrawerMenu anchor={'left'} open={drawerOpen}
onClose={toggleDrawer(false)}
openSignUp={props.openSignUp} openLogin={props.openLogin}
/>
<OuterDiv> <OuterDiv>
<Grid container> <DrawerButtonDiv style={{justifySelf : "flex-start", position : "absolute", left : 0}}>
<Grid item xs={3} style={{display : "flex"}}>
<Button style={{ color: "#00bcd4" }} onClick={toggleDrawer(true)}> <Button style={{ color: "#00bcd4" }} onClick={toggleDrawer(true)}>
<MenuIcon className="icon" /> <MenuIcon className="icon" />
</Button> </Button>
</Grid> </DrawerButtonDiv>
<Grid item xs={9} justify={'center'}>
<div className="logo"> <div className="logo">
<Link to="/"> <Link to="/">
<img src={logo} alt={"Plataforma Integrada"} /> <img src={logo} alt={"Plataforma Integrada"} />
</Link> </Link>
</div> </div>
</Grid>
</Grid>
<MobileDrawerMenu anchor={'left'} open={drawerOpen}
onClose={toggleDrawer(false)}
openSignUp = {props.openSignUp} openLogin = {props.openLogin}
/>
</OuterDiv> </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.
Please register or to comment