diff --git a/src/assets/images/apple-black.svg b/src/assets/images/apple-black.svg new file mode 100644 index 0000000..0359029 --- /dev/null +++ b/src/assets/images/apple-black.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/facebook-4.svg b/src/assets/images/facebook-4.svg new file mode 100644 index 0000000..70a3d90 --- /dev/null +++ b/src/assets/images/facebook-4.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/images/login-dots.jpg b/src/assets/images/login-dots.jpg new file mode 100644 index 0000000..92dfa72 Binary files /dev/null and b/src/assets/images/login-dots.jpg differ diff --git a/src/components/AuthPages/AuthLayout.jsx b/src/components/AuthPages/AuthLayout.jsx index 0a744fb..3ebd286 100644 --- a/src/components/AuthPages/AuthLayout.jsx +++ b/src/components/AuthPages/AuthLayout.jsx @@ -12,8 +12,8 @@ export default function LoginLayout({ slogan, children }) { screen = "h-screen"; } return ( -
-
+
+
diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 8ba202b..643d7dc 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -1,9 +1,12 @@ import React, { useState } from "react"; -import { useNavigate } from "react-router-dom"; +import { useNavigate, Link } from "react-router-dom"; import { toast } from "react-toastify"; import googleLogo from "../../../assets/images/google-logo.svg"; +import appleLogo from "../../../assets/images/apple-black.svg"; +import facebookLogo from "../../../assets/images/facebook-4.svg"; // import titleShape from "../../../assets/images/shape/title-shape.svg"; import titleShape from "../../../assets/images/shape/login_straight_underline.svg"; +import WrenchBoard from "../../../assets/images/wrenchboard.png" import usersService from "../../../services/UsersService"; import InputCom from "../../Helpers/Inputs/InputCom"; import AuthLayout from "../AuthLayout"; @@ -41,7 +44,7 @@ export default function Login() { const loginResult = await userApi.logInUser(postData); // just for a test //debugger; // if (email === "support@mermsemr.com") { - if (loginResult.data.status > 0 && loginResult.data.internal_return ==100 && loginResult.data.session !='') { // just for a start + if (loginResult.data.status > 0 && loginResult.data.internal_return == 100 && loginResult.data.session != '') { // just for a start localStorage.setItem("email", `${loginResult.data.email}`); localStorage.setItem("member_id", `${loginResult.data.member_id}`); localStorage.setItem("uid", `${loginResult.data.uid}`); @@ -56,7 +59,7 @@ export default function Login() { localStorage.setItem("zip_code", `${loginResult.data.zip_code}`); localStorage.setItem("session", `${loginResult.data.session}`); setLoginLoading(true); - // userApi.getUserReminders(); //testing + // userApi.getUserReminders(); //testing setTimeout(() => { toast.success("Login Successfully"); navigate("/", { replace: true }); @@ -74,37 +77,47 @@ export default function Login() { -
-
-
-

- Log In -

-
-
-
- +
+
+ + wrenchboard + +
+
+
+
+

+ Sign In to WrenchBoard +

+ New Here? Create an Account
-
- -
-
+
+
+ +
+
+ +
+ {/*
-
-
- +
*/} +
+
+ +
+ {loginError &&

Invalid username or password

} + + +
- {loginError &&

Invalid username or password

} - - - -
-
+ {/*

Don't have an account ? Sign up free

+
*/} +
This site is protected by hCaptcha and the our Privacy Policy and Terms of Service apply.
@@ -201,4 +186,24 @@ export default function Login() { ); +} + +const BrandBtn = ({ + link, + imgSrc, + brand +}) => { + return ( + + ) } \ No newline at end of file diff --git a/src/components/Helpers/Inputs/InputCom/index.jsx b/src/components/Helpers/Inputs/InputCom/index.jsx index 86aec14..25ab9c7 100644 --- a/src/components/Helpers/Inputs/InputCom/index.jsx +++ b/src/components/Helpers/Inputs/InputCom/index.jsx @@ -1,5 +1,6 @@ import React from "react"; import Icons from "../../Icons"; +import { Link } from "react-router-dom"; export default function InputCom({ label, @@ -9,18 +10,22 @@ export default function InputCom({ iconName, inputHandler, value, + forgotPassword }) { return (
+
{label && ( )} -
+ {forgotPassword && Forgot Password?} +
+