mediahub-fe/app/[locale]/auth/page.tsx

92 lines
3.9 KiB
TypeScript
Raw Normal View History

2024-11-27 03:41:19 +00:00
// import React from 'react'
// import { redirect } from 'next/navigation'
// const page = ({ params: { locale } }: { params: { locale: string } }) => {
// redirect(`/${locale}/auth/login`)
// return null
// }
2024-11-26 03:09:48 +00:00
2024-11-27 03:41:19 +00:00
// export default page
import { Link } from "@/i18n/routing";
import LoginForm from "@/components/partials/auth/login-form";
import Image from "next/image";
import Social from "@/components/partials/auth/social";
import Copyright from "@/components/partials/auth/copyright";
import Logo from "@/components/partials/auth/logo";
2025-02-05 02:45:29 +00:00
import { useTranslations } from "next-intl";
2024-11-27 03:41:19 +00:00
const Login = ({ params: { locale } }: { params: { locale: string } }) => {
2025-02-05 02:45:29 +00:00
const t = useTranslations("LandingPage");
2024-11-27 03:41:19 +00:00
return (
<>
<div className="flex w-full items-center overflow-hidden min-h-dvh h-dvh basis-full">
<div className="overflow-y-auto flex flex-wrap w-full h-dvh">
2025-02-05 02:45:29 +00:00
<div className="lg:block hidden flex-1 overflow-hidden text-[40px] leading-[48px] text-default-600 relative z-[1] bg-default-50">
<div className="max-w-[520px] pt-16 ps-20 ">
2024-11-27 03:41:19 +00:00
<Link href="/" className="mb-6 inline-block">
<Image
src="/assets/mediahub-logo.png"
alt=""
width={250}
height={250}
className="mb-10 w-full h-full"
/>
2024-11-27 03:41:19 +00:00
</Link>
</div>
<div className="absolute left-0 2xl:bottom-[-160px] bottom-[-130px] h-full w-full z-[-1]">
<Image
src="/assets/vector-login.svg"
alt=""
width={300}
height={300}
className="mb-10 w-full h-full"
/>
2024-11-27 03:41:19 +00:00
</div>
</div>
<div className="flex-1 relative">
<div className=" h-full flex flex-col dark:bg-default-100 bg-white">
<div className="max-w-[524px] md:px-[42px] md:py-[44px] p-7 mx-auto w-full text-2xl text-default-900 mb-3 h-full flex flex-col justify-center">
2025-01-31 12:51:04 +00:00
{/* <div className="flex justify-center items-center text-center mb-6 lg:hidden ">
2024-11-27 03:41:19 +00:00
<Link href="/">
<Logo />
</Link>
2025-01-31 12:51:04 +00:00
</div> */}
{/* <div className="text-left 2xl:mb-10 mb-4 mt-10">
<h4 className="font-semibold text-3xl text-left">{t("logInPlease", { defaultValue: "Log In Please" })}</h4>
<div className="text-default-500 text-base">
{t("acc", { defaultValue: "Acc" })} <span className="text-red-500">{t("reg", { defaultValue: "Reg" })}</span>
</div>
</div> */}
2024-11-27 03:41:19 +00:00
<LoginForm />
2025-01-07 19:36:40 +00:00
{/* <div className="relative border-b-[#9AA2AF] border-opacity-[16%] border-b pt-6">
<div className="absolute inline-block bg-default-50 dark:bg-default-100 left-1/2 top-1/2 transform -translate-x-1/2 px-4 min-w-max text-sm text-default-500 font-normal">
Or continue with
</div>
2025-01-07 19:36:40 +00:00
</div> */}
{/* <div className="max-w-[242px] mx-auto mt-8 w-full">
2024-11-27 03:41:19 +00:00
<Social locale={locale} />
2025-01-07 19:36:40 +00:00
</div> */}
{/* <div className="md:max-w-[345px] mx-auto font-normal text-default-500 mt-12 uppercase text-sm">
2024-11-27 03:41:19 +00:00
Dont have an account?{" "}
<Link
href="/auth/register"
className="text-default-900 font-medium hover:underline"
>
2024-11-27 03:41:19 +00:00
Sign up
</Link>
2025-01-07 19:36:40 +00:00
</div> */}
2024-11-27 03:41:19 +00:00
</div>
2025-01-07 19:36:40 +00:00
{/* <div className="text-xs font-normal text-default-500 z-[999] pb-10 text-center">
2024-11-27 03:41:19 +00:00
<Copyright />
2025-01-07 19:36:40 +00:00
</div> */}
2024-11-27 03:41:19 +00:00
</div>
</div>
</div>
</div>
</>
);
};
export default Login;