mv login page to root page
This commit is contained in:
@@ -49,12 +49,12 @@ export default function AuthStatus() {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`${nunito.className} absolute top-4 right-4 flex items-center gap-2 rounded-lg border-4 border-black bg-white/10 px-3 py-2`}
|
||||
className={`${nunito.className} absolute top-4 right-4 flex items-center gap-2 rounded-lg bg-blue-950/80 px-3 py-2`}
|
||||
>
|
||||
{displayState.isAuthenticated ? (
|
||||
<>
|
||||
<div className="h-2 w-2 rounded-full bg-green-500"></div>
|
||||
<span className="text-sm font-medium">
|
||||
<span className="text-sm font-medium text-white">
|
||||
{displayState.user?.profile.name || "Authenticated"}
|
||||
</span>
|
||||
<button
|
||||
@@ -62,19 +62,18 @@ export default function AuthStatus() {
|
||||
void auth.removeUser();
|
||||
router.push("/");
|
||||
}}
|
||||
className="rounded bg-red-500/20 px-2 py-1 text-xs transition-colors hover:bg-red-500/30"
|
||||
className="ml-1 rounded bg-gray-500/50 px-2 py-1 text-xs transition-colors hover:bg-red-500/30"
|
||||
>
|
||||
Uitloggen
|
||||
</button>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<div className="h-2 w-2 rounded-full bg-red-500"></div>
|
||||
<button
|
||||
onClick={() => void auth.signinRedirect()}
|
||||
className="rounded bg-blue-500/20 px-2 py-1 text-xs transition-colors hover:bg-blue-500/30"
|
||||
className="rounded px-1 py-2 text-xs"
|
||||
>
|
||||
Inloggen
|
||||
<div className="h-2 w-2 rounded-full bg-red-500"></div>
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user