-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathFooter.tsx
86 lines (84 loc) · 2.52 KB
/
Footer.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import ExternalLink from '../ExternalLink';
import * as links from '../../constants/links';
import { VisuallyHidden, Flex } from '@aws-amplify/ui-react';
import {
IconDiscord,
IconXSocial,
IconGithub,
IconAWS
} from '@/components/Icons';
import { ColorModeSwitcher } from '@/components/ColorModeSwitcher';
interface FooterProps {
hasTOC?: boolean;
}
export const Footer = ({ hasTOC = false }: FooterProps) => {
return (
<Flex as="footer" className={`footer${hasTOC ? ' footer--toc' : ''}`}>
<Flex className="footer-wrapper">
<Flex className="footer__content">
<ColorModeSwitcher />
<p>
<IconAWS
fontSize="xl"
aria-hidden={false}
aria-label="AWS"
marginInlineEnd="xs"
/>
Amplify open source software, documentation and community are
supported by Amazon Web Services.
</p>
<p>
{' '}
© {new Date().getFullYear()}, Amazon Web Services, Inc. and its
affiliates.
</p>
<p>
All rights reserved. View the{' '}
<ExternalLink href={links.TERMS} className="footer-link">
site terms
</ExternalLink>{' '}
and{' '}
<ExternalLink href={links.PRIVACY} className="footer-link">
privacy policy
</ExternalLink>
.
</p>
<p>
Flutter and the related logo are trademarks of Google LLC. We are
not endorsed by or affiliated with Google LLC.
</p>
</Flex>
<Flex as="ul" className="footer__links">
<li>
<ExternalLink
href={links.X}
className="footer-link footer-link--social"
>
<IconXSocial />
<VisuallyHidden>X</VisuallyHidden>
</ExternalLink>
</li>
<li>
<ExternalLink
href={links.DISCORD}
className="footer-link footer-link--social"
rel={'noopener'}
>
<IconDiscord />
<VisuallyHidden>Discord</VisuallyHidden>
</ExternalLink>
</li>
<li>
<ExternalLink
href={links.GITHUB}
className="footer-link footer-link--social"
>
<IconGithub />
<VisuallyHidden>Github</VisuallyHidden>
</ExternalLink>
</li>
</Flex>
</Flex>
</Flex>
);
};