From a39fe24406b9729b8f47d4f97a682f8988a4c3cd Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 24 Jan 2022 13:04:51 -0800 Subject: [PATCH] nice log in page --- pages/index.js | 9 ++++- pages/teams/login.tsx | 76 +++++++++++++++++++++++++++++++++---------- 2 files changed, 66 insertions(+), 19 deletions(-) diff --git a/pages/index.js b/pages/index.js index 3053e00..95790a4 100644 --- a/pages/index.js +++ b/pages/index.js @@ -61,11 +61,18 @@ export default function Home() { */} + + {getStartedButton} diff --git a/pages/teams/login.tsx b/pages/teams/login.tsx index 074b591..c11e721 100644 --- a/pages/teams/login.tsx +++ b/pages/teams/login.tsx @@ -1,28 +1,68 @@ -import { useRouter } from 'next/router' -import { useEffect } from 'react'; -import {FaGoogle} from "react-icons/fa"; -import { useAuth } from '../../contexts/authContext' +import { useRouter } from "next/router"; +import { useEffect } from "react"; +import { FaArrowLeft } from "react-icons/fa"; +import { FcGoogle } from "react-icons/fc"; +import { useAuth } from "../../contexts/authContext"; export default function Login() { - const { currUser, signInGoogle } = useAuth() - const router = useRouter() + const { currUser, signInGoogle } = useAuth(); + const router = useRouter(); useEffect(() => { // if auth, go to dashboard if (currUser) { - console.log('already logged in, redirecting to router') - router.push('/teams') + console.log("already logged in, redirecting to router"); + router.push("/teams"); } - }, [currUser]) + }, [currUser]); return ( -
- + <> +
+ {/* nice image on right side */} +
- {JSON.stringify(currUser?.email)} -
- ) -} \ No newline at end of file + {/* signin modal */} +
+ {/* header */} +
+ router.push("/")} + />{" "} +
+ +
+ + + By continuing, you are agreeing

+ to the{" "} + + terms and conditions + {" "} + and{" "} + + privacy policy. + +
+
+ + {JSON.stringify(currUser?.email)} +
+
+ + ); +}