49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import Image from "next/image";
|
||
import React from "react";
|
||
import LoginForm from "./LoginForm";
|
||
import Link from "next/link";
|
||
import { cn } from "@/lib/utils";
|
||
|
||
export default function Login() {
|
||
return (
|
||
<div className=" bg-[#F6C507] bg-blend-lighten min-w-screen w-full min-h-screen flex justify-center items-center pb-20">
|
||
<div className="flex flex-col gap-2 mx-5 w-full lg:w-3/4 max-w-[500px] lg:max-w-[760px]">
|
||
<Image
|
||
alt="ostandari"
|
||
quality={100}
|
||
width={80}
|
||
height={80}
|
||
className=" self-end max-lg:order-2 max-lg:self-center"
|
||
src="/images/province-logo.png"
|
||
/>
|
||
<LoginLogo className=" lg:hidden w-44 self-center -mb-7 z-10" />
|
||
|
||
<div className=" bg-white w-full flex flex-col p-8 rounded-lg relative min-h-72">
|
||
<LoginLogo className=" max-h-[300px] absolute -left-5 -bottom-8 object-cover max-lg:hidden" />
|
||
|
||
<div className=" w-full max-w-full lg:max-w-[400px] border rounded-lg h-full p-4">
|
||
<p className=" font-bold">ورود به پنل کاربری</p>
|
||
<LoginForm />
|
||
<Link href="/ForgotPassword">
|
||
<p className=" text-sm mt-2 text-mainBlue ">فراموشی رمز عبور</p>
|
||
</Link>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
);
|
||
}
|
||
|
||
const LoginLogo = ({ className }: { className: string }) => {
|
||
return (
|
||
<Image
|
||
alt="logo"
|
||
quality={100}
|
||
width={300}
|
||
height={300}
|
||
className={cn("object-cover", className)}
|
||
src="/images/login-logo.png"
|
||
/>
|
||
);
|
||
};
|