Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Track 3/8] [FE] Login #6

Open
taki-tiler bot opened this issue Apr 29, 2024 · 4 comments
Open

[Track 3/8] [FE] Login #6

taki-tiler bot opened this issue Apr 29, 2024 · 4 comments

Comments

@taki-tiler
Copy link

taki-tiler bot commented Apr 29, 2024

With everything set up, it's coding time! (finally)

(Re-)Note: because this is a new step, don't forget to open a new branch!

Step 1/2 - Login screen Frontend (FE)

Estimated time: 2 hours

Your task now is to create the Login Screen frontend. That means laying out the view components (inputs, buttons, images...) in the screen. In the frontend steps, you don't need to make web requests, save data locally and etc. Your job here is only layout properly all the view components you'll need in your screen.

Talking about view components, your screen should have a form containing:

  • an email input
  • a password input
  • a submit button

You can use the following image as an inspiration:

login

Don't mind about the styles, borders and colors. Later on, you'll be asked to work on the styles and UI components.

TIP: you will have to name your typescript React components with the extension .tsx to be able to use the html-like React syntax (jsx). But as the project goes, you may want to create some other files on your code that are not necesarily React components with this syntax. On those, you can use the traditional .ts extension.

Create a feature branch with a meaningful name for this task, and once you've done it, open a PR.

Note: Bear in mind that this task is only the login screen frontend, which means that, for now, you don't have to communicate with server to check the user credentials for example. All you have to do here is to layout properly all the view components you'll need in your screen.

@deboraCs26
Copy link
Owner

deboraCs26 commented Apr 30, 2024

finish

Copy link
Author

taki-tiler bot commented Apr 30, 2024

Step 2/2 - Login validations

Estimated time: 2 hours

(Re-Re-)Note: Don't forget to open a new branch!

When filling up a form, users (us) can mispell something or forget to fill all the inputs in a form. So in this step you'll create some form validations.

Your login screen should have the following validations:

  • Email input:

    • Should have a valid email format: ###@###.com
    • Should not be empty (required field)
  • Password input:

    • Should not be empty (required field)
    • Minimum of 7 characters
    • Should have at least one digit and one letter

All these validations should be triggered when the user taps the submit button, showing error messages accordingly.

NOTE: as usual, create a new branch and open a Pull Request after you've done it.

By the way, every task from now on should be made on a new branch. This has several benefits, such as:

  • CR process becomes easier and more effective with less code
  • Allows possible version rollbacks without having to worry with the feature branches commits.

@deboraCs26
Copy link
Owner

deboraCs26 commented May 1, 2024

finish

Copy link
Author

taki-tiler bot commented May 1, 2024

Click here for your next track

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant