-
-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathlayout-footer.tsx
More file actions
40 lines (35 loc) · 1.27 KB
/
Copy pathlayout-footer.tsx
File metadata and controls
40 lines (35 loc) · 1.27 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
'use client'
import { useTranslations } from 'next-intl'
import { Link } from '@/components/ui/link'
import { FOOTER_GROUPS } from '@/constants/navigation'
import { GithubStarButton } from './github-star-button'
import { LocaleSwitcher } from './locale-switcher'
export function LayoutFooter() {
const t = useTranslations()
return (
<footer className='mx-auto mb-12 w-full max-w-5xl rounded-2xl bg-background/30 p-8 backdrop-blur-md'>
<div className='mb-30 grid grid-cols-2 gap-10 sm:grid-cols-3'>
{FOOTER_GROUPS.map((group, index) => (
<div key={index} className='flex flex-col items-start gap-4'>
{group.links.map((link) => (
<Link
key={link.href}
href={link.href}
className='text-muted-foreground transition-colors hover:text-foreground'
>
{t(link.labelKey)}
</Link>
))}
</div>
))}
</div>
<div className='mt-20 space-y-4'>
<LocaleSwitcher />
<div className='flex items-center justify-between text-sm'>
<div className='text-muted-foreground'>© {new Date().getFullYear()} Nelson Lai</div>
<GithubStarButton />
</div>
</div>
</footer>
)
}