feat: revise fixed button

This commit is contained in:
Alvalen 2024-09-01 08:24:04 +07:00
parent 3340f1c5ee
commit 5805484525
5 changed files with 15 additions and 25 deletions

View file

@ -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;