Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: changed text and added spinner for signing in loading #170

Merged
merged 2 commits into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions apps/app/pages/signin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@ import authenticationService from "services/authentication.service";
import DefaultLayout from "layouts/default-layout";
// social button
import { GoogleLoginButton, GithubLoginButton, EmailSignInForm } from "components/account";
// ui
import { Spinner } from "components/ui";
// icons
import Logo from "public/logo-with-text.png";

const { NEXT_PUBLIC_GITHUB_ID } = process.env;

// types
type SignIn = {
email: string;
password?: string;
medium?: string;
key?: string;
token?: string;
};

const SignInPage: NextPage = () => {
// router
const router = useRouter();
Expand Down Expand Up @@ -82,8 +75,9 @@ const SignInPage: NextPage = () => {
}}
>
{isLoading && (
<div className="absolute top-0 left-0 z-50 flex h-full w-full items-center justify-center bg-white">
<h2 className="text-2xl text-gray-900">Signing in with Google. Please wait...</h2>
<div className="absolute top-0 left-0 z-50 flex h-full w-full flex-col items-center justify-center gap-y-3 bg-white">
<h2 className="text-2xl text-gray-900">Signing in. Please wait...</h2>
<Spinner />
</div>
)}
<div className="flex h-screen w-full items-center justify-center overflow-auto bg-gray-50">
Expand Down