feat: add canvas-confetti integration and AuroraButton component; enhance UI with animations and improve button interactions

This commit is contained in:
2025-08-26 15:58:30 -06:00
parent 56b0dc8a62
commit 196aea5df9
8 changed files with 143 additions and 41 deletions

View File

@@ -0,0 +1,23 @@
// components/ui/aurora-button.tsx
import { Button } from "@/components/ui/button"
export function AuroraButton({
loading,
children,
...props
}: React.ComponentProps<typeof Button> & { loading?: boolean }) {
return (
<Button
{...props}
className={`${props.className ?? ""} relative overflow-hidden`}
disabled={props.disabled || loading}
>
{loading && (
<span className="absolute inset-0 animate-aurora" />
)}
<span className="relative z-10">
{loading ? "Pensando…" : children}
</span>
</Button>
)
}