Files
AnimeTV-Frontend/widgets/login/loginCard/Index.tsx

39 lines
1.1 KiB
TypeScript

"use client";
import { Card, Divider, Link } from "@heroui/react";
import React from "react";
import EmailForm from "./EmailForm";
import ContinueWithProviders from "./ContinueWithProviders";
import { routes } from "@/shared/config/routes";
const LoginCard = () => {
return (
<Card className="px-6 sm:px-8 py-12 sm:py-8 h-screen sm:h-auto w-screen sm:w-[460px]">
<h1 className="text-3xl font-light text-center">Welcome Back</h1>
{/* Email form */}
<EmailForm />
{/* Sign up link */}
<p className="text-center text-neutral-300 text-sm font-light mt-5">
Don't have an account?{" "}
<Link className="text-sm font-medium" href={routes.signup}>
Sign Up
</Link>
</p>
{/* Divider between email form and third-party login options */}
<div className="flex w-full items-center mt-4">
<Divider className="flex-1" />
<span className="px-2 text-neutral-500 text-sm">or</span>
<Divider className="flex-1" />
</div>
{/* Buttons for third-party login options */}
<ContinueWithProviders />
</Card>
);
};
export default LoginCard;