0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-11-01 16:07:59 +09:00
yude.jp/pages/components/Menu/FontAwesomeMenu.js

25 lines
601 B
JavaScript
Raw Normal View History

2021-08-09 11:33:00 +09:00
// React Router
2021-08-09 10:52:02 +09:00
import { useRouter } from 'next/router'
import React, { useEffect, useState } from 'react'
// Next.js
import Link from 'next/link'
2021-08-09 11:33:00 +09:00
// Font Awesome
2021-08-09 10:52:02 +09:00
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const FontAwesomeMenu = (props) => {
2021-08-09 11:43:30 +09:00
const { icon } = props
2021-08-09 10:52:02 +09:00
return (
<div>
2021-08-09 11:43:30 +09:00
<Link>
2021-08-09 10:52:02 +09:00
<a>
<FontAwesomeIcon icon={icon} className="w-10 h-10 fill-current inline transition duration-200 ease-in-out transform hover:-translate-y-1 hover:scale-110" />
</a>
</Link>
</div>
)
}
export default FontAwesomeMenu