Skip to content

Commit 93b37c0

Browse files
mbj36MylesBorins
authored andcommitted
chore: Add links to header. (nodejs#111)
1 parent f025413 commit 93b37c0

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

src/components/header.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ const Header = () => (
1818
<img src={logo} alt="Node.js" className="nav__logo" />
1919
</Link>
2020
</li>
21+
22+
<li className="nav__tabs">
23+
<a target="_blank" href="https://nodejs.org/en/docs/">
24+
API Docs
25+
</a>
26+
</li>
27+
28+
<li className="nav__tabs">
29+
<a target="_blank" href="https://github.com/nodejs/nodejs.dev">
30+
GitHub
31+
</a>
32+
</li>
33+
2134
</ul>
2235
</nav>
2336
)

src/components/layout.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,19 @@ main {
146146
margin: -6px 24px 0 0;
147147
}
148148

149+
.nav__tabs {
150+
text-decoration: none;
151+
margin-bottom: 10px;
152+
font-size: 14px;
153+
margin-left: 16px;
154+
}
155+
156+
.nav__tabs > a {
157+
text-decoration: none;
158+
color: black;
159+
}
160+
161+
149162
.hero {
150163
align-items: center;
151164
display: flex;

test/components/__snapshots__/header.test.tsx.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ exports[`Tests for Header component renders correctly 1`] = `
2626
/>
2727
</a>
2828
</li>
29+
<li
30+
className="nav__tabs"
31+
>
32+
<a
33+
href="https://nodejs.org/en/docs/"
34+
target="_blank"
35+
>
36+
API Docs
37+
</a>
38+
</li>
39+
<li
40+
className="nav__tabs"
41+
>
42+
<a
43+
href="https://github.com/nodejs/nodejs.dev"
44+
target="_blank"
45+
>
46+
GitHub
47+
</a>
48+
</li>
2949
</ul>
3050
</nav>
3151
`;

0 commit comments

Comments
 (0)