Skip to content

Commit 2577f09

Browse files
committed
Add GitHub icon link to header
1 parent 7b7c471 commit 2577f09

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/components/layout.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import EmailSignup from "./EmailSignup";
77
export const Layout = ({ children }) => {
88
return (
99
<App>
10+
<GitHubLink />
1011
<div className="hero is-bold is-primary has-text-centered">
1112
<div className="hero-body">
1213
<h1 className="title is-size-2-mobile is-1 is-spaced has-text-weight-bold">
@@ -99,6 +100,27 @@ export const Layout = ({ children }) => {
99100

100101
export default Layout;
101102

103+
const GitHubLink = () => {
104+
return (
105+
<a
106+
className="is-hidden-mobile"
107+
target="blank"
108+
href="https://github.com/gragland/usehooks"
109+
>
110+
<i
111+
class="fab fa-github"
112+
style={{
113+
position: "absolute",
114+
fontSize: "1.5rem",
115+
top: "1rem",
116+
right: "1rem",
117+
color: "white"
118+
}}
119+
/>
120+
</a>
121+
);
122+
};
123+
102124
const Logo = styled(Link)`
103125
text-decoration: none;
104126
span {

0 commit comments

Comments
 (0)