Skip to content

Commit

Permalink
Merge pull request #1519 from hngx-org/FIX/Google-login-logo
Browse files Browse the repository at this point in the history
Fix/google login logo
  • Loading branch information
incredible-phoenix246 authored Dec 11, 2023
2 parents 123394e + adb3f18 commit 46da43b
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 260 deletions.
16 changes: 7 additions & 9 deletions modules/auth/component/AuthSocialButtons/SignUpWithGoogle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@ import SignUpWithSocialsButton from './SignUpWithSocialsButton';
import googleLogo from '../../../../public/assets/Google.png';
import LogoCarousel from '@modules/home/carousel/logos/logosCarousel';


const SignUpWithGoogle = () => {

const [isloading, setIsLoading] = useState(false);

const handleLinkClick = () => {
setIsLoading(true);
setTimeout(() => {
window.location.href="https://zuri-auth.up.railway.app/api/auth/api/auth/google";
window.location.href = 'https://zuri-auth.up.railway.app/api/auth/api/auth/google';
}, 5000);
};

//href="https://zuri-auth.up.railway.app/api/auth/api/auth/google"
//href="https://zuri-auth.up.railway.app/api/auth/api/auth/google"
return (
// the google logo has white space around it, so i am reducing the margin on the right so all the buttons look similar
<SignUpWithSocialsButton
// href="https://zuri-auth.up.railway.app/api/auth/api/auth"
onClick={handleLinkClick}
isLoading={isloading}
//onClick={handleGoogleSignIn}
leftIcon={<Image src={googleLogo} alt="Google Logo" className="w-5 h-5" />}
// href="https://zuri-auth.up.railway.app/api/auth/api/auth"
onClick={handleLinkClick}
isLoading={isloading}
//onClick={handleGoogleSignIn}
leftIcon={<Image src={googleLogo} alt="Google Logo" className="" />}
>
Continue with Google
</SignUpWithSocialsButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ const SignUpWithSocialsButton: FC<ButtonProps> = ({ children, leftIcon, ...props
const { setCurrentPathForOAuth } = useUserSession();

return (
<Button
intent={'tertiary'}
size={'sm'}
className="w-full bg-white-100 text-custom-color20 border-custom-color21 border rounded-md hover:bg-white-100 hover:border-brand-green-primary sm:text-base flex justify-center"
<button
className="w-full bg-white-100 text-custom-color20 border-custom-color21 border rounded-md hover:bg-white-100 hover:border-brand-green-primary sm:text-base flex justify-center items-center py-3 md:py-4 gap-2"
onClick={setCurrentPathForOAuth}
{...props}
>
<div className=" w-[90%] sm:w-[70%] md:w-[60%] lg:w-[80%] xl:w-[70%] items-center flex gap-1 justify-center">
{/* <div className='flex justify-center'> */}
<div className=" w-[10%]">{leftIcon}</div>
<p className=" w-[80%] sm:w-[70%] md:w-[70%] lg:w-[80%] xl:w-[70%] 2xl:w-[60%] text-center">{children}</p>
</div>
</Button>
{/* <div className=" w-[90%] sm:w-[70%] md:w-[60%] lg:w-[80%] xl:w-[70%] items-center flex gap-1 justify-center"> */}
{/* <div className='flex justify-center'> */}
<div className=" w-[20px]">{leftIcon}</div>
{/* <p className="w-[80%] sm:w-[70%] md:w-[70%] lg:w-[80%] xl:w-[70%] 2xl:w-[60%] text-center">{children}</p> */}
<p className="text-center">{children}</p>
{/* </div> */}
</button>
);
};

Expand Down
Loading

1 comment on commit 46da43b

@vercel
Copy link

@vercel vercel bot commented on 46da43b Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zuriportfolio-frontend – ./

zuriportfolio-frontend-git-dev-zuri-team.vercel.app
zuriportfolio.vercel.app
zuriportfolio-frontend-zuri-team.vercel.app

Please sign in to comment.