Skip to content

Commit

Permalink
feat: add GetStartedButton component with confetti effect on click
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Jan 5, 2025
1 parent 9952ca3 commit d8638ca
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/_components/Landing/get-started-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { ConfettiEffect } from "@/app/_lib/functions/confetti";
import Link from "next/link";
import { buttonVariants } from "../ui/button";

const GetStartdButton = () => {
const handleClick = () => {
ConfettiEffect();
};

return (
<Link
href="/login"
onClick={handleClick}
className={buttonVariants({ variant: "default" })}
>
Começar agora
</Link>
);
};

export default GetStartdButton;

0 comments on commit d8638ca

Please sign in to comment.