File tree Expand file tree Collapse file tree
test/components/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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` ;
You can’t perform that action at this time.
0 commit comments