feat: revise fixed button
This commit is contained in:
parent
3340f1c5ee
commit
5805484525
5 changed files with 15 additions and 25 deletions
|
|
@ -1,9 +1,11 @@
|
|||
const FixedButton = ({ children, onClick }) => (
|
||||
<button
|
||||
onClick={onClick}
|
||||
import Link from "next/link";
|
||||
|
||||
const FixedButton = ({ children, href = '/' }) => (
|
||||
<Link
|
||||
href={href}
|
||||
className="fixed top-2 -left-2 md:left-10 flex justify-center items-center rounded-full p-4 transition duration-300 ease-in-out z-50 transparent">
|
||||
{children}
|
||||
</button>
|
||||
</Link>
|
||||
);
|
||||
|
||||
export default FixedButton;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue