-
Notifications
You must be signed in to change notification settings - Fork 66.8k
Expand file tree
/
Copy pathAppRouterFooter.tsx
More file actions
83 lines (70 loc) · 2.54 KB
/
AppRouterFooter.tsx
File metadata and controls
83 lines (70 loc) · 2.54 KB
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
'use client'
import { useAppRouterMainContext } from '@/app/components/AppRouterMainContext'
import { createTranslationFunctions } from '@/languages/lib/translation-utils'
import { LinkExternalIcon } from '@primer/octicons-react'
export function AppRouterFooter() {
const context = useAppRouterMainContext()
const { t } = createTranslationFunctions(context.site.data.ui, 'footer')
return (
<section className="container-xl px-3 mt-6 pb-8 px-md-6 color-fg-muted">
{context.currentLanguage !== 'en' && <h2 className="f4 mb-2 col-12">{t('legal_heading')}</h2>}
{/* Machine translation notice for non-English languages */}
{context.currentLanguage !== 'en' && <p>{t('machine')}</p>}
<ul className="d-flex flex-wrap list-style-none">
<li className="mr-3">© {new Date().getFullYear()} GitHub, Inc.</li>
{/* German-specific Impressum link (legally required) */}
{context.currentLanguage === 'de' && (
<li className="mr-3">
<a
className="text-underline"
href="https://aka.ms/impressum_de"
target="_blank"
rel="noopener"
>
{t('imprint')}
</a>
<LinkExternalIcon aria-label="(external site)" size={12} />
</li>
)}
<li className="mr-3">
<a
className="text-underline"
href={`/${context.currentLanguage}/site-policy/github-terms/github-terms-of-service`}
>
{t('terms')}
</a>
</li>
<li className="mr-3">
<a
className={`text-underline ${
context.currentLanguage === 'ko' ? 'color-fg-attention text-bold' : ''
}`}
href={`/${context.currentLanguage}/site-policy/privacy-policies/github-privacy-statement`}
>
{t('privacy')}
</a>
</li>
<li className="mr-3">
<a className="text-underline" href="https://www.githubstatus.com/">
{t('status')}
</a>
</li>
<li className="mr-3">
<a className="text-underline" href="https://github.com/pricing">
{t('pricing')}
</a>
</li>
<li className="mr-3">
<a className="text-underline" href="https://services.github.com">
{t('expert_services')}
</a>
</li>
<li className="mr-3">
<a className="text-underline" href="https://github.blog">
{t('blog')}
</a>
</li>
</ul>
</section>
)
}