-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(signInPage): Separated SignInPages Comp
fixes #100
- Loading branch information
1 parent
1c542e5
commit d454a0f
Showing
3 changed files
with
65 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from "react"; | ||
import { toastInfo } from "../../services/toast"; | ||
import Sign_In_Facebook_Logo from "../../assets/Images/Facebook_Logo.png"; | ||
import Sign_In_Google_Logo from "../../assets/Images/Google_Logo.png"; | ||
import SignIn_RightSide_Issustration from "../../assets/svg/SignIn_RightSide_Issustration.svg"; | ||
|
||
const SignInRightPart = (): JSX.Element => { | ||
const signInWithGoogle = async () => { | ||
window.open(`${process.env.REACT_APP_API_BASE_URL}/auth/google`, "_self"); | ||
// window.open("<URL>", "<MODE>"); | ||
// here this will open the google authentication | ||
}; | ||
|
||
const signInWithFacebook = () => { | ||
toastInfo("Facebook auth is under development, Please use Google auth"); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className="SignIn_Page_Right_Half_container"> | ||
<div className="SignIn_Page_Right_Half"> | ||
<div className="SignIn_RightSide_Issustration_container"> | ||
<img | ||
className="SignIn_RightSide_Issustration" | ||
src={SignIn_RightSide_Issustration} | ||
alt="SignIn" | ||
/> | ||
</div> | ||
|
||
<button | ||
onClick={signInWithGoogle} | ||
className="SignIn_page_Google_Button" | ||
> | ||
<img | ||
className="SignIn_page_Google_Button_Logo" | ||
src={Sign_In_Google_Logo} | ||
alt="Google" | ||
/> | ||
<p className="SignIn_page_Google_Button_Paragraph"> | ||
SignIn in With Google | ||
</p> | ||
</button> | ||
<button | ||
className="SignIn_page_Facebook_Button" | ||
onClick={signInWithFacebook} | ||
> | ||
<img | ||
className="SignIn_page_Facebook_Button_Logo" | ||
src={Sign_In_Facebook_Logo} | ||
alt="Facebook" | ||
/> | ||
<p className="SignIn_page_Facebook_Button_Paragraph"> | ||
Sign in With Facebook | ||
</p> | ||
</button> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default SignInRightPart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters