Compare commits

..

2 Commits

Author SHA1 Message Date
victorAnumudu 44491b6aae changed class to className 2023-01-25 12:43:04 +01:00
victorAnumudu ece7fad510 removed error login popout message and made it display error below signin btn 2023-01-24 16:19:54 +01:00
2 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<svg width="174" height="31" viewBox="0 0 174 31" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0,0 173,0" stroke="url(#paint0_linear_4_1797)" stroke-width="4" stroke-linecap="round"/>
<path d="M1 17.9998C10.5 7.5 56.6856 24.9909 78 28C120.5 34 162 24 173 1" stroke="url(#paint0_linear_4_1797)" stroke-width="2" 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"/>
@@ -7,4 +7,4 @@
<stop offset="1" stop-color="#5356FB"/>
</linearGradient>
</defs>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 520 B

+11 -4
View File
@@ -9,6 +9,10 @@ import AuthLayout from "../AuthLayout";
export default function Login() {
const [checked, setValue] = useState(false);
const [loginLoading, setLoginLoading] = useState(false);
//Loggin Error State
const [loginError, setLoginError] = useState(false)
const rememberMe = () => {
setValue(!checked);
};
@@ -35,7 +39,8 @@ export default function Login() {
setLoginLoading(false);
}, 2000);
} else {
toast.error("Invalid Credential");
// toast.error("Invalid Credential");
setLoginError(true)
}
}
};
@@ -51,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">
<div className="shape -mt-5">
<img src={titleShape} alt="shape" />
</div>
</div>
@@ -116,8 +121,9 @@ export default function Login() {
<button
onClick={doLogin}
type="button"
className={`btn-login rounded-[50px] mb-6 text-xl text-white font-bold flex justify-center bg-purple items-center ${loginLoading ? "active" : ""
}`}
className={`btn-login rounded-[50px] mb-6 text-xl text-white font-bold flex justify-center bg-purple items-center ${
loginLoading ? "active" : ""
}`}
>
{loginLoading ? (
<div className="signup btn-loader"></div>
@@ -126,6 +132,7 @@ export default function Login() {
)}
</button>
</div>
{loginError && <p className="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"