NeahStable/components/auth/signin-form.tsx
2026-01-16 21:33:36 +01:00

22 lines
641 B
TypeScript

"use client";
import { signIn } from "next-auth/react";
interface SignInFormProps {
callbackUrl?: string;
}
export function SignInForm({ callbackUrl }: SignInFormProps) {
return (
<div className="text-center">
<h1 className="text-4xl font-bold text-white mb-4">Bienvenue sur NEAH</h1>
<p className="text-white/80 mb-8">Connectez-vous pour accéder à votre espace</p>
<button
onClick={() => signIn("keycloak", { callbackUrl: callbackUrl || "/" })}
className="px-8 py-3 bg-[#0F172A] text-white rounded hover:bg-[#1E293B] transition-colors"
>
Commit
</button>
</div>
);
}