Add sign in function

This commit is contained in:
anime committed 2024-08-25 13:46:32 +06:00
1 parent 38b869084d
commit eb81d45008
10 files changed
+320 -52

No files matched your search

+7 -4
View File
@@ -3,8 +3,11 @@ import sign_in_icon from "./icons/sign-in_icon.svg";
import { Link } from "@/shared/config/navigation";
import { Container } from "@/shared/ui";
import SignInForm from "@/widgets/forms/SignInForm";
import { useTranslations } from "next-intl";
const SignIn = () => {
const t = useTranslations("signIn");
return (
<Container>
<div className="h-full min-h-[800px] w-full flex justify-center">
@@ -14,19 +17,19 @@ const SignIn = () => {
</div>
<div className="mb-2 flex flex-col items-center gap-2 text-center">
<h2 className="text-[24px] font-bold leading-8 text-gray-900">
Войдите в аккаунт
{t("login")}
</h2>
<p className="text-gray-500">Пожалуйста, введите свои данные</p>
<p className="text-gray-500">{t("info")}</p>
</div>
<SignInForm />
<p className="text-[14px] font-semibold leading-5 text-gray-500">
Еще нет аккаунта?{" "}
{t("noAccount")}{" "}
<Link
className="text-[14px] font-semibold leading-5 text-light-blue"
href="/sign-up"
>
Зарегистрируйтесь
{t("register")}
</Link>
</p>
</div>
+6
View File
@@ -0,0 +1,6 @@
import NextAuth from "next-auth";
import { authConfig } from "@/shared/config/authConfig";
const handler = NextAuth(authConfig);
export { handler as GET, handler as POST };