new login page

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-29 14:28:36 +00:00
parent 7d9e328f74
commit 6a4256af9d
3 changed files with 28 additions and 15 deletions

BIN
public/HestiaLogoWhite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -12,7 +12,7 @@ const GoogleSignInButton = () => {
return (
<Button
data-testid="google-signin-btn"
className="w-full text-black hover:text-gray-700"
className=" text-black hover:text-gray-400 text-xl hover:bg-gray-100 rounded-lg px-8"
onClick={() => signIn("google", { callbackUrl })}
>
<svg

View file

@ -12,20 +12,33 @@ export default async function Home() {
}
return (
<section className="flex flex-col items-center justify-center min-h-screen bg-gradient-to-r from-brandblue via-hoverblue to-brandmidblue">
<div className="w-full max-w-md p-8 bg-white rounded-lg shadow-lg flex flex-col items-center">
<Image
className="mb-8"
src="/hestiaIcon.png"
alt="Logo"
height={40}
width={28}
/>
<h1 className="text-3xl font-medium text-gray-900 mb-8 text-center">
Sign in to your account
</h1>
<GoogleSignInButton />
<div className="flex min-h-screen">
{/* Left Half */}
<div className="w-1/2 bg-brandblue flex flex-col items-start justify-start p-12">
<div className="text-white text-3xl font-bold">Energy</div>
<div className="text-white text-3xl font-bold">Efficiency</div>
<div className="text-white text-3xl font-bold">Made Easy.</div>
</div>
</section>
{/* Right Half */}
<section className="w-1/2 flex items-center justify-center">
<div className="w-full max-w-lg p-8 rounded-lg flex flex-col items-center justify-center">
<Image
className="mb-8"
src="/HestiaLogoWhite.png"
alt="Logo"
height={200}
width={200}
/>
<h1 className="text-4xl font-medium text-brandblue mb-8 text-center">
Sign in to your account
</h1>
<div className="text-brandmidblue text-lg mb-4">
Start managing your portfolios
</div>
<GoogleSignInButton />
</div>
</section>
</div>
);
}