DEV Community

Freecodez
Freecodez

Posted on

Login Form React Component

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

Login Form React Component

Login Form React Component

For full source code visit : https://freecodez.com/post/ze17atj

// https://freecodez.com
const LoginForm = () => {
    return (
        <div class="container">
            <h3>Login</h3>
            <div class="google">
                <button>
                    <img src="https://www.freepnglogos.com/uploads/google-logo-png/google-logo-png-google-icon-logo-png-transparent-svg-vector-bie-supply-14.png" alt="Google" />
                    <span>Continue with Google</span>
                </button>
            </div>
            <div class="facebook">
                <button>
                    <img src="https://www.edigitalagency.com.au/wp-content/uploads/Facebook-logo-blue-circle-large-transparent-png.png" alt="Facebook" />
                    <span>Continue with Facebook</span>
                </button>
            </div>
            <div class="or">
                <div>OR</div>
            </div>
            <form>
                <div class="formControl user">
                    <input type="text" id="user" required/>
                    <label for="user" >Email or username</label>
                </div>
                <div class="formControl password">

                    <input type="password" id="password" required/>
                    <label for="password" >Password</label>
                </div>
                <div class="stay">
                    <div>
                        <input type="checkbox" id="check" />
                        <label for="check" >Stay signed in</label>
                    </div>
                    <div>
                        <a href="/">Forgot Password</a>
                    </div>
                </div>
                <div class="formControl">
                    <button type="submit">Login</button>
                </div>
            </form>
            <div>
                <span>Don't have account </span>
                <a href="/">Sign Up</a>
            </div>
        </div>
    );
};

Enter fullscreen mode Exit fullscreen mode

Source Code : https://freecodez.com/post/ze17atj

For more such articles visit : https://freecodez.com

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here β†’

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more