Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Last active March 26, 2019 02:56
Show Gist options
  • Select an option

  • Save ryanjyost/70c6fc7f512d305a17d7f35f9472fdbe to your computer and use it in GitHub Desktop.

Select an option

Save ryanjyost/70c6fc7f512d305a17d7f35f9472fdbe to your computer and use it in GitHub Desktop.
import React from "react";
const TopBar = ({ styles }) => {
const topBarStyle = {
position: "fixed",
top: 0,
display: "flex",
justifyContent: "space-between",
alignItems: "center",
width: "100%",
height: styles.topBarHeight,
backgroundColor: styles.white(),
borderBottom: `1px solid ${styles.black(0.1)}`,
fontWeight: "bold",
padding: "0px 20px",
boxSizing: "border-box"
};
return (
<div style={topBarStyle}>
<span>{`😺️`}</span>
App
<span>{`⚙️`}</span>
</div>
);
};
export default TopBar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment