0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-11-17 02:52:38 +09:00
yude.jp/pages/components/Menu/FontAwesomeMenu.js
2021-12-11 21:40:26 +09:00

21 lines
545 B
JavaScript

// Next.js
import Link from 'next/link'
// Font Awesome
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const FontAwesomeMenu = (props) => {
const { icon, dest, query } = props
return (
<div>
<Link href={{ pathname: dest, query: query }}>
<a>
<FontAwesomeIcon icon={icon} className="text-4xl fill-current inline transition duration-200 ease-in-out transform hover:-translate-y-1 hover:scale-110" />
</a>
</Link>
</div>
)
}
export default FontAwesomeMenu