2021-08-09 12:45:48 +09:00
|
|
|
// Next.js
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
// Font Awesome
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
|
|
|
|
const Contact = (props) => {
|
|
|
|
const { icon, dest, caption } = props
|
|
|
|
return (
|
|
|
|
<div className="hover:underline">
|
2021-12-11 19:07:11 +09:00
|
|
|
<Link href={{ pathname: dest }}>
|
2021-08-09 12:45:48 +09:00
|
|
|
<a>
|
2022-01-02 18:18:31 +09:00
|
|
|
<FontAwesomeIcon icon={icon} size="5x" className="w-9 h-9 fill-current inline transition duration-200 ease-in-out transform hover:-translate-y-1 hover:scale-110" />
|
2021-08-09 12:45:48 +09:00
|
|
|
<p className="font-mono text-xl">{caption}</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Contact
|