A
Anonymous

Welcome Back! Log In to Your Account

<div className="flex items-center justify-center w-full h-screen bg-gradient-to-r from-gray-50 to-gray-300"> <div className="w-11/12 md:w-6/12 bg-white rounded-lg shadow-lg p-8"> {/* Header */} <div className="text-center mb-8"> <img src={Logo} alt="People Prudent Consulting and HR Solutions" className="mx-auto h-16 absolute top-2 left-3" /> <h2 className="text-3xl font-bold mt-4 text-gray-800"> Welcome Back! </h2> <p className="text-gray-600 mt-2"> Log in to continue to your account </p> </div> {/* Login Form */} <form onSubmit={handleSubmit}> <div className="mb-6"> <label htmlFor="email" className="block text-gray-700 font-medium" > Email </label> <input type="email" name="email" value={formData.email} onChange={handleChange} className="w-full px-4 py-2 mt-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:outline-none" placeholder="Enter your email" required /> </div> <div className="mb-6"> <label htmlFor="password" className="block text-gray-700 font-medium" > Password </label> <div className="relative"> <input type={showPassword ? "text" : "password"} name="password" value={formData.password} onChange={handleChange} className="w-full px-4 py-2 mt-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:outline-none" placeholder="Enter your password" required /> <button type="button" onClick={() => setShowPassword(!showPassword)} className="absolute inset-y-0 right-3 flex items-center text-gray-500" > {showPassword ? <LuEyeOff /> : <LuEye />} </button> </div> <div className="text-right mt-2"> <button type="button" onClick={sendEmailandVerifyOTP} className="text-blue-500 hover:text-blue-700 text-sm" > Forgot Password? </button> </div> </div> <button type="submit" className="w-full bg-blue-600 text-white py-3 rounded-lg font-medium hover:bg-blue-700 transition-shadow shadow-md hover:shadow-lg" > Log In </button> </form> </div> </div>

Prompt
Component Preview

About

Create a sleek and responsive login component using React and Tailwind CSS. Easy to customize for your authentication needs.

Share

Last updated 1 month ago