Skip to content

Commit 751a13f

Browse files
authored
Add github repo link in the footer (#5204)
1 parent 4df7cce commit 751a13f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

beta/src/components/Icon/IconGitHub.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ export const IconGitHub = memo<JSX.IntrinsicElements['svg']>(
88
function IconGitHub(props) {
99
return (
1010
<svg
11-
width="1em"
11+
xmlns="http://www.w3.org/2000/svg"
12+
width="1.33em"
13+
height="1.33em"
14+
viewBox="0 -2 24 24"
1215
fill="currentColor"
13-
height="1em"
14-
viewBox="0 0 20 20"
1516
{...props}>
1617
<path d="M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0"></path>
1718
</svg>

beta/src/components/Layout/Footer.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ButtonLink from 'components/ButtonLink';
99
import {ExternalLink} from 'components/ExternalLink';
1010
import {IconFacebookCircle} from 'components/Icon/IconFacebookCircle';
1111
import {IconTwitter} from 'components/Icon/IconTwitter';
12+
import {IconGitHub} from 'components/Icon/IconGitHub';
1213
import {IconNavArrow} from 'components/Icon/IconNavArrow';
1314

1415
export function Footer() {
@@ -160,6 +161,12 @@ export function Footer() {
160161
className={socialLinkClasses}>
161162
<IconTwitter />
162163
</ExternalLink>
164+
<ExternalLink
165+
aria-label="React on Github"
166+
href="https://github.com/reactjs/reactjs.org"
167+
className={socialLinkClasses}>
168+
<IconGitHub />
169+
</ExternalLink>
163170
</div>
164171
</div>
165172
</div>

0 commit comments

Comments
 (0)