feat: Add fancy button in create-account example card

This commit is contained in:
Sahaj Jain
2025-07-07 22:50:41 +05:30
parent 377192416d
commit 32aaea5be3
+3 -1
View File
@@ -58,7 +58,9 @@ export function CardsCreateAccount() {
</div>
</CardContent>
<CardFooter>
<Button className="w-full">Create account</Button>
<Button className="group before:transtion-opacity bg-primary text-primary-foreground ring-primary before:from-primary-foreground/20 after:from-primary-foreground/10 relative isolate inline-flex w-full items-center justify-center overflow-hidden rounded-md px-3 text-left text-sm font-medium ring-1 transition duration-300 ease-[cubic-bezier(0.4,0.36,0,1)] before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-md before:bg-gradient-to-b before:opacity-50 before:duration-300 before:ease-[cubic-bezier(0.4,0.36,0,1)] after:pointer-events-none after:absolute after:inset-0 after:-z-10 after:rounded-md after:bg-gradient-to-b after:from-[46%] after:to-[54%] after:mix-blend-overlay hover:before:opacity-100">
Create account
</Button>
</CardFooter>
</Card>
);