Skip to content

Commit

Permalink
Merge pull request #14 from buildrs/oleg/tools_bar_refactor
Browse files Browse the repository at this point in the history
add styles for mobile + refactor toolbar
  • Loading branch information
pablo-mayrgundter committed Aug 3, 2021
2 parents 29afd2f + 708c0c0 commit 778f2ca
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 144 deletions.
15 changes: 9 additions & 6 deletions src/Components/menuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import IconButton from "@material-ui/core/IconButton";

const useStyles = makeStyles((theme) => ({
menuButton: {
marginLeft: 12,
marginRight: 22,
"@media (max-width: 1280px)": {
border: "2px solid lime",
},
},
}));

Expand All @@ -20,10 +21,12 @@ const MenuButton = ({ onClick }) => {
aria-label="menu"
onClick={onClick}
>
<MenuIcon style={{
width: 30,
height: 30
}} />
<MenuIcon
style={{
width: 30,
height: 30,
}}
/>
</IconButton>
);
};
Expand Down
97 changes: 97 additions & 0 deletions src/Components/toolBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
import React from "react";
import Toolbar from "@material-ui/core/Toolbar";
import AppBar from "@material-ui/core/AppBar";
import Typography from "@material-ui/core/Typography";
import IconButton from "@material-ui/core/IconButton";
import OpenInBrowserIcon from "@material-ui/icons/OpenInBrowser";
import CommentIcon from "@material-ui/icons/Comment";
import PrimaryButton from "../Components/primaryButton";
import LoginMenu from "./loginMenu";
import { makeStyles } from "@material-ui/core/styles";

const useStyles = makeStyles((theme) => ({
title: {
flexGrow: 1,
color: "WhiteSmoke",
fontSize: 20,
marginRight: "20px",
},
}));

const BuildrsToolBar = ({ fileOpen, onClickShare }) => {
const classes = useStyles();
return (
<AppBar elevation={0} position="static" color="primary">
<Toolbar
variant="regular"
style={{
borderBottom: "1px solid #585858",
backgroundColor: "#787878",
display: "flex",
justifyContent: "space-between",
}}
>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "flex-start",
alignItems: "center",
}}
>
<Typography variant="h6" className={classes.title}>
BUILDRS
</Typography>

<IconButton
edge="start"
color="secondary"
aria-label="menu"
style={{ position: "relative" }}
onClick={fileOpen}
>
<OpenInBrowserIcon
style={{
width: 30,
height: 30,
color: "whiteSmoke",
}}
/>
</IconButton>
</div>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "flex-start",
alignItems: "center",
}}
>
<IconButton
edge="start"
color="secondary"
aria-label="menu"
style={{
position: "relative",
right: 10,
width: 25,
height: 25,
}}
>
<CommentIcon
style={{
width: 20,
height: 20,
color: "whiteSmoke",
}}
/>
</IconButton>
<PrimaryButton name={"Share"} onClick={onClickShare} />
<LoginMenu />
</div>
</Toolbar>
</AppBar>
);
};

export default BuildrsToolBar;

0 comments on commit 778f2ca

Please sign in to comment.