32 lines
759 B
TypeScript
32 lines
759 B
TypeScript
"use client";
|
|
|
|
import { signIn } from "next-auth/react";
|
|
import { useEffect } from "react";
|
|
|
|
export default function SignIn() {
|
|
useEffect(() => {
|
|
// Trigger Keycloak sign-in
|
|
signIn("keycloak", { callbackUrl: "/" });
|
|
}, []);
|
|
|
|
return (
|
|
<div
|
|
className="min-h-screen flex items-center justify-center"
|
|
style={{
|
|
backgroundImage: "url('/signin.jpg')",
|
|
backgroundSize: 'cover',
|
|
backgroundPosition: 'center',
|
|
backgroundRepeat: 'no-repeat'
|
|
}}
|
|
>
|
|
<div className="w-full max-w-md space-y-8">
|
|
<div>
|
|
<h2 className="mt-6 text-center text-3xl font-bold tracking-tight text-white">
|
|
Redirecting to login...
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|