Skip to content

Commit 0f473f9

Browse files
authored
update website footer links and tweak appearance (#5144)
1 parent ec0ec3a commit 0f473f9

4 files changed

Lines changed: 50 additions & 33 deletions

File tree

website/docusaurus.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const isProductionDeployment =
2323
(!!process.env.VERCEL && process.env.VERCEL_ENV === 'production');
2424

2525
const lastVersion = versions[0];
26-
const copyright = `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc.`;
26+
const copyright = `Copyright © Meta Platforms, Inc.`;
2727

2828
export type EditUrlButton = {
2929
label: string;
@@ -545,12 +545,8 @@ const config: Config = {
545545
to: 'community/overview',
546546
},
547547
{
548-
label: 'Directory',
549-
href: 'https://reactnative.directory/',
550-
},
551-
{
552-
label: 'Stack Overflow',
553-
href: 'https://stackoverflow.com/questions/tagged/react-native',
548+
label: 'Code of Conduct',
549+
href: 'https://github.com/react/react-native/blob/main/CODE_OF_CONDUCT.md',
554550
},
555551
],
556552
},
@@ -579,9 +575,13 @@ const config: Config = {
579575
title: 'Explore More',
580576
items: [
581577
{
582-
label: 'ReactJS',
578+
label: 'React',
583579
href: 'https://react.dev/',
584580
},
581+
{
582+
label: 'Packages Directory',
583+
href: 'https://reactnative.directory/',
584+
},
585585
{
586586
label: 'Privacy Policy',
587587
href: 'https://opensource.fb.com/legal/privacy/',

website/src/css/customTheme.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,10 @@ button[class*="tocCollapsibleButton"] {
16751675

16761676
.footer__title {
16771677
color: #858a96;
1678-
font-size: 14px;
1678+
font-size: 13px;
16791679
font-weight: 500;
16801680
margin: 0 0 8px;
1681+
letter-spacing: 0.05rem;
16811682
text-transform: uppercase;
16821683
}
16831684

@@ -1696,14 +1697,20 @@ button[class*="tocCollapsibleButton"] {
16961697
}
16971698

16981699
.footer__logo {
1699-
height: 54px;
1700+
height: 50px;
17001701
max-width: 100%;
1702+
margin-bottom: -12px;
1703+
}
1704+
1705+
.footer__copyright {
1706+
font-size: 11px;
17011707
}
17021708

17031709
svg[class^="iconExternalLink"] {
17041710
color: var(--subtle);
1705-
right: -1px;
1706-
width: 9px;
1711+
bottom: -1px;
1712+
position: relative;
1713+
margin-left: 0.2rem;
17071714
}
17081715
}
17091716

website/src/theme/Icon/ExternalLink/index.tsx

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
1-
/**
2-
* Copyright (c) Meta Platforms, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
1+
import React, {type ReactNode} from 'react';
2+
import {translate} from '@docusaurus/Translate';
3+
import type {Props} from '@theme/Icon/ExternalLink';
74

8-
import React from 'react';
95
import styles from './styles.module.css';
106

11-
export default function IconExternalLink({width = 13.5, height = 13.5, style}) {
7+
export default function IconExternalLink({
8+
width = 13.5,
9+
height = 13.5,
10+
}: Props): ReactNode {
1211
return (
1312
<svg
1413
width={width}
1514
height={height}
16-
style={style}
17-
aria-hidden="true"
18-
viewBox="0 0 24 24"
15+
viewBox="0 0 256 256"
16+
aria-label={translate({
17+
id: 'theme.IconExternalLink.ariaLabel',
18+
message: '(opens in new tab)',
19+
description: 'The ARIA label for the external link icon',
20+
})}
1921
className={styles.iconExternalLink}>
20-
<path
21-
fill="currentColor"
22-
d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"
22+
<line
23+
x1="64"
24+
y1="192"
25+
x2="192"
26+
y2="64"
27+
fill="none"
28+
stroke="currentColor"
29+
stroke-linecap="round"
30+
stroke-linejoin="round"
31+
stroke-width="16"
32+
/>
33+
<polyline
34+
points="88 64 192 64 192 168"
35+
fill="none"
36+
stroke="currentColor"
37+
stroke-linecap="round"
38+
stroke-linejoin="round"
39+
stroke-width="16"
2340
/>
2441
</svg>
2542
);
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Copyright (c) Meta Platforms, Inc. and affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
81
.iconExternalLink {
92
margin-left: 0.3rem;
103
}

0 commit comments

Comments
 (0)