-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from buildrs/oleg/tools_bar_refactor
add styles for mobile + refactor toolbar
- Loading branch information
Showing
3 changed files
with
166 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.