mirror of
https://github.com/yude-jp/yude.jp
synced 2025-12-30 10:14:16 +09:00
Folder organizing, Modularize profile items
This commit is contained in:
21
pages/components/Profile/Contact.js
Normal file
21
pages/components/Profile/Contact.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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">
|
||||
<Link href={`${dest}`}>
|
||||
<a>
|
||||
<FontAwesomeIcon icon={icon} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
||||
<p className="font-mono text-xl">{caption}</p>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Contact
|
||||
Reference in New Issue
Block a user