Files
NotionNext/components/ContactButton.js
tangly1024 dfc0f645d4 Code🤣
2021-09-27 09:33:21 +08:00

23 lines
649 B
JavaScript

import React from 'react'
import Link from 'next/link'
/**
* 悬浮在屏幕右下角,联系我的按钮
* @returns {JSX.Element}
* @constructor
*/
const ContactButton = () => {
return (
<Link href='/article/about'>
<a className={'fixed right-10 bottom-40 animate__fadeInRight animate__animated animate__faster'}>
<span
className='dark:bg-black bg-white px-5 py-3 cursor-pointer shadow-card text-xl hover:bg-blue-500 transform duration-200 hover:text-white hover:shadow'>
<span className='dark:text-gray-200 fa fa-info' title='about' />
</span>
</a>
</Link>
)
}
export default ContactButton