-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.tsx
38 lines (36 loc) · 1.34 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
import Link from 'next/link'
import Container from './container'
import { GITHUB_PATH, NICKNAME } from '@lib/constants'
import PortfolioContext from '@components/context'
import { useContext } from 'react'
const Footer = () => {
const {prefix} = useContext(PortfolioContext);
return (
<footer className="bg-neutral-50 border-t border-neutral-200">
<Container>
<div className="py-28 flex flex-col lg:flex-row items-center">
<h3 className="text-4xl lg:text-[2.5rem] font-bold tracking-tighter leading-tight text-center lg:text-left mb-10 lg:mb-0 lg:pr-4 lg:w-1/2">
{NICKNAME}
</h3>
<div className="flex flex-col lg:flex-row justify-center items-center lg:justify-end lg:pl-4 lg:w-1/2">
<Link
href={`${prefix}/assets/resume.pdf`}
target='_blank'
className="mx-3 bg-black hover:bg-white hover:text-black border border-black text-white font-bold py-3 px-12 lg:px-8 duration-200 transition-colors mb-6 lg:mb-0"
>
Download Resume
</Link>
<a
href={GITHUB_PATH}
target='_blank'
className="mx-3 font-bold hover:underline"
>
Visit GitHub
</a>
</div>
</div>
</Container>
</footer>
)
}
export default Footer