mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import type { Metadata } from 'next';
|
|
import Link from 'next/link';
|
|
|
|
import { env } from 'next-runtime-env';
|
|
|
|
import { IS_GOOGLE_SSO_ENABLED } from '@documenso/lib/constants/auth';
|
|
|
|
import { SignInForm } from '~/components/forms/signin';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Sign In',
|
|
};
|
|
|
|
export default function SignInPage() {
|
|
const NEXT_PUBLIC_DISABLE_SIGNUP = env('NEXT_PUBLIC_DISABLE_SIGNUP');
|
|
|
|
return (
|
|
<div>
|
|
<h1 className="text-4xl font-semibold">Sign in to your account</h1>
|
|
|
|
<p className="text-muted-foreground/60 mt-2 text-sm">
|
|
Welcome back, we are lucky to have you.
|
|
</p>
|
|
|
|
<SignInForm className="mt-4" isGoogleSSOEnabled={IS_GOOGLE_SSO_ENABLED} />
|
|
|
|
{NEXT_PUBLIC_DISABLE_SIGNUP !== 'true' && (
|
|
<p className="text-muted-foreground mt-6 text-center text-sm">
|
|
Don't have an account?{' '}
|
|
<Link href="/signup" className="text-primary duration-200 hover:opacity-70">
|
|
Sign up
|
|
</Link>
|
|
</p>
|
|
)}
|
|
|
|
<p className="mt-2.5 text-center">
|
|
<Link
|
|
href="/forgot-password"
|
|
className="text-muted-foreground text-sm duration-200 hover:opacity-70"
|
|
>
|
|
Forgot your password?
|
|
</Link>
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|