Authentication Forms
Explore how to build and style authentication forms in Firebase, including sign-in, create user, and forgot password forms. Learn to toggle between forms smoothly within a modal and apply CSS to enhance user experience.
We'll cover the following...
HTML for the Forms
We are going to have three separate forms, each to complete a different task.
The name of the forms explain what they do:
- Create user form
- Sign in form
- Forgot password form
The HTML is straightforward and short so I am going to present all of it to you right now. All forms go inside your modal.
Style the Forms
We add this CSS to make your forms look good.
Access the forms
From your JavaScript, get access to the forms by using the querySelector.
We need to do this for two reasons:
-
Creating functionality to toggle between the forms. This is what we are handling in this lesson.
-
Ability to submit the form information to Firebase to authenticate our users, or reset a password. We will do this in an upcoming lesson. ... ...