2022-12-06 12:54:34 +00:00
|
|
|
import Link from 'next/link'
|
2023-01-14 19:31:05 +00:00
|
|
|
import {ReactNode} from 'react'
|
2022-12-06 12:54:34 +00:00
|
|
|
|
2023-01-14 19:31:05 +00:00
|
|
|
import {OuterContainer, InnerContainer} from './Container'
|
|
|
|
import {SpotifyPlayer} from './SpotifyPlayer'
|
2022-12-06 12:54:34 +00:00
|
|
|
|
2023-01-14 19:31:05 +00:00
|
|
|
function NavLink({href, children}: { href: string, children: ReactNode }) {
|
2022-12-06 12:54:34 +00:00
|
|
|
return (
|
|
|
|
<Link
|
|
|
|
href={href}
|
|
|
|
className="transition hover:text-indigo-500 dark:hover:text-indigo-400"
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function Footer() {
|
|
|
|
return (
|
|
|
|
<footer className="mt-32">
|
2023-01-14 19:31:05 +00:00
|
|
|
<OuterContainer>
|
2022-12-06 12:54:34 +00:00
|
|
|
<div className="border-t border-zinc-100 pt-10 pb-16 dark:border-zinc-700/40">
|
2023-01-14 19:31:05 +00:00
|
|
|
<InnerContainer>
|
2023-01-14 22:30:57 +00:00
|
|
|
<SpotifyPlayer/>
|
2022-12-06 12:54:34 +00:00
|
|
|
<div className="flex flex-col items-center justify-between gap-6 mt-12">
|
|
|
|
<div className="flex gap-6 text-sm font-medium text-zinc-800 dark:text-zinc-200">
|
|
|
|
<NavLink href="/about">About</NavLink>
|
|
|
|
<NavLink href="/writing">Writing</NavLink>
|
|
|
|
<NavLink href="/projects">Projects</NavLink>
|
|
|
|
<NavLink href="/uses">Uses</NavLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-14 19:31:05 +00:00
|
|
|
</InnerContainer>
|
2022-12-06 12:54:34 +00:00
|
|
|
</div>
|
2023-01-14 19:31:05 +00:00
|
|
|
</OuterContainer>
|
2022-12-06 12:54:34 +00:00
|
|
|
</footer>
|
|
|
|
)
|
|
|
|
}
|