ForFarm/frontend/app/signin/page.tsx
2025-02-12 18:09:13 +07:00

89 lines
3.2 KiB
TypeScript

import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import ForgotPasswordModal from "./forgot-password-modal";
import WaterDrop from "./waterdrop";
import Link from "next/link";
import Image from "next/image";
export default function Signin() {
return (
<div>
<div className="grid grid-cols-[1.3fr_1.2fr] gap-0 h-screen overflow-hidden">
<div className="flex bg-[url('/plant-background.jpeg')] bg-cover bg-center">
{/* <div className="flex flex-col gap-y-10 mt-40 ml-40">
<h1 className="text-5xl">Welcome back!</h1>
<p>Log in to personalize your planting adventure!</p>
</div> */}
{/* water pot and dripping animation */}
{/* <div className="absolute items-center mt-96 ">
<Image
src="/water-pot.png"
alt="Water Pot"
width={300}
height={300}
className=" ml-72"
/>
<div className="absolute top-[150px] left-[560px] overflow-hidden">
<WaterDrop />
</div>
</div> */}
<div></div>
</div>
<div className="flex justify-center items-center ">
{/* login box */}
<div className="w-[560px] h-[600px]">
<div className="flex flex-col gap-5 justify-center items-center">
<h1 className="text-4xl mt-5 font-semibold">Log In</h1>
<div className="flex whitespace-nowrap gap-x-2">
<span>Don&apos;t have an account?</span>
<span className="text-green-600">
<Link href="#">Sign up</Link>
</span>
</div>
</div>
{/* OAUTH */}
<div className="flex flex-col items-center mt-10 gap-x-5">
{/* Google */}
<div className="flex justify-center rounded-full bg-gray-200 hover:bg-gray-300 duration-300 w-[90] h-[55] cursor-pointer ">
<Image
src="/google-logo.png"
alt="Google Logo"
width={35}
height={35}
className="object-contain"
/>
</div>
</div>
<div className="flex flex-col mt-10 ">
<div>
<h1 className="whitespace-nowrap flex items-start ml-24">
EMAIL <span className="text-red-500">*</span>
</h1>
<div className="flex flex-col items-center">
<Input type="email" className="w-2/3 mt-3" />
</div>
</div>
<div className="mt-5">
<h1 className="whitespace-nowrap flex items-start ml-24">
PASSWORD <span className="text-red-500">*</span>
</h1>
<div className="flex flex-col items-center">
<Input type="password" className="w-2/3 mt-3" />
</div>
</div>
<ForgotPasswordModal />
</div>
<div className="flex justify-center mt-5">
<Button className="rounded-full w-20 h-12">Submit</Button>
</div>
</div>
</div>
</div>
</div>
);
}