Compare commits

..

1 Commits

Author SHA1 Message Date
DESKTOP-QHP1O2H\MIKE d6eadbb46b Changed position of the login error message 2023-01-25 07:02:33 -05:00
2 changed files with 11 additions and 16 deletions
@@ -1,10 +0,0 @@
<svg width="174" height="31" viewBox="0 0 174 31" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0,2 173,2" stroke="url(#paint0_linear_4_1797)" stroke-width="4" stroke-linecap="round"/>
<defs>
<linearGradient id="paint0_linear_4_1797" x1="1" y1="1" x2="11.0515" y2="59.9411" gradientUnits="userSpaceOnUse">
<stop stop-color="#F539F8"/>
<stop offset="0.416763" stop-color="#C342F9"/>
<stop offset="1" stop-color="#5356FB"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 466 B

+11 -6
View File
@@ -2,14 +2,17 @@ import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import { toast } from "react-toastify";
import googleLogo from "../../../assets/images/google-logo.svg";
// import titleShape from "../../../assets/images/shape/title-shape.svg";
import titleShape from "../../../assets/images/shape/login_straight_underline.svg";
import titleShape from "../../../assets/images/shape/title-shape.svg";
import InputCom from "../../Helpers/Inputs/InputCom";
import AuthLayout from "../AuthLayout";
export default function Login() {
const [checked, setValue] = useState(false);
const [loginLoading, setLoginLoading] = useState(false);
//login error state
const [loginError, setLoginError] = useState(false);
const rememberMe = () => {
setValue(!checked);
};
@@ -36,7 +39,8 @@ export default function Login() {
setLoginLoading(false);
}, 2000);
} else {
toast.error("Invalid Credential");
// toast.error("Invalid Credential");
setLoginError(true)
}
}
};
@@ -52,7 +56,7 @@ export default function Login() {
<h1 className="text-5xl font-bold leading-[74px] text-dark-gray dark:text-white">
Log In
</h1>
<div className="shape -mt-2">
<div className="shape -mt-5">
<img src={titleShape} alt="shape" />
</div>
</div>
@@ -103,7 +107,7 @@ export default function Login() {
</button>
<span
onClick={rememberMe}
className="text-base text-dark-gray dark:text-white"
className="text-base text-dark-gray dark:text-white"
>
Remember Me
</span>
@@ -128,6 +132,7 @@ export default function Login() {
)}
</button>
</div>
{loginError && <p class="text-center text-red-600 pb-4">Invalid Credential</p>}
<a
href="#"
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"
@@ -152,4 +157,4 @@ export default function Login() {
</AuthLayout>
</>
);
}
}