-
Notifications
You must be signed in to change notification settings - Fork 0
/
site-footer.tsx
37 lines (34 loc) · 1.06 KB
/
site-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
'use client'
import Link from 'next/link'
import { siteConfig } from '../config/site'
import { usePathname } from 'next/navigation'
export function SiteFooter() {
const pathname = usePathname()
return (
<footer className="border-t">
<div className="mx-auto max-w-7xl overflow-hidden px-6 py-12 sm:py-20 lg:px-8">
{pathname !== '/' && (
<nav
className="-mb-6 columns-2 sm:flex sm:justify-center sm:space-x-12"
aria-label="Footer"
>
{siteConfig.footer.map((item) => (
<div key={item.name} className="pb-6">
<Link href={item.href} className="text-sm leading-6">
{item.name}
</Link>
</div>
))}
</nav>
)}
<Link
href="https://www.github.com/thilourenco"
className="mt-10 block text-center text-xs leading-5"
>
© {new Date().getFullYear()} {siteConfig.name}. Todos os direitos
reservados.
</Link>
</div>
</footer>
)
}