-
-
Save amandeepmittal/2da7c359c8c0c41e285ce1b90d12f272 to your computer and use it in GitHub Desktop.
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
const Header = () => ( | |
<div | |
style={{ | |
background: "rebeccapurple", | |
marginBottom: "1.45rem" | |
}} | |
> | |
<div | |
style={{ | |
margin: "0 auto", | |
maxWidth: 960, | |
padding: "1.45rem 1.0875rem" | |
}} | |
> | |
<h1 style={{ margin: 0 }}> | |
<Link | |
to="/" | |
style={{ | |
color: "white", | |
textDecoration: "none" | |
}} | |
> | |
Gatsby | |
</Link> | |
<ul style={{ listStyle: "none", float: "right" }}> | |
<li style={{ display: "inline-block", marginRight: "1rem" }}> | |
<Link | |
style={{ | |
color: "white", | |
textDecoration: "none", | |
fontSize: "x-large" | |
}} | |
to="/" | |
> | |
Home | |
</Link> | |
</li> | |
<li style={{ display: "inline-block", marginRight: "1rem" }}> | |
<Link | |
style={{ | |
color: "white", | |
textDecoration: "none", | |
fontSize: "x-large" | |
}} | |
to="/page-2" | |
> | |
Page 2 | |
</Link> | |
</li> | |
<li style={{ display: "inline-block", marginRight: "1rem" }}> | |
<Link | |
style={{ | |
color: "white", | |
textDecoration: "none", | |
fontSize: "x-large" | |
}} | |
to="/page-3" | |
> | |
Page 3 | |
</Link> | |
</li> | |
</ul> | |
</h1> | |
</div> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment