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

Frontend: Added Login Page with modifications to other components #88

Merged

Conversation

PrathamX595
Copy link
Contributor

@PrathamX595 PrathamX595 commented Jun 10, 2024

Added Login Page & Signup Page with other modifications

Fixes: #79

Description

Added a login page with changes to some components namely:
1)Button component was changed to include type as a prop.
2)Input button was changed to adjust the roundness and the height and width props were made editable .
3)NavBar was modified to conditionally render the signin/login button.
4)Routes for Login and Signup pages were added.
5)Implemented authContext to the login page

How to Test

  • run the command npm run dev
  • access the /login route

Related Issues

#80
#87
#76

Checklist

  • I have tested these changes locally.
  • I have reviewed the code and ensured it follows the project's coding guidelines.
  • I have updated the documentation, if necessary.
  • I have assigned reviewers to this pull request.

Screenshots (if applicable)

image

image

Copy link

vercel bot commented Jun 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
multiplayer-uno ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 7:46pm

@@ -22,6 +23,8 @@ const router = createBrowserRouter([
},
{ path: '/about', element: <About /> },
{ path: '/error', element: <Error /> },
{ path: '/login', element: <Login />},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd only want to keep one of these.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with login

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the new users with no account will be directed to the login page ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh i see
We'd use sign-up or register for that, not sign-in
signin and login mean the same thing

Copy link
Collaborator

@kuv2707 kuv2707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have recently added an AuthContext. Please make the necessary changes to use that.

@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 11, 2024

We won't be using google auth right now (that can be done later)
So change the text accordingly.
Also, we will use name and password for now.

A technical note: Both login and signup are quite identical, but differ in the api call and that signup ( = for first time users) will have a confirm password field.

@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 13, 2024

@PrathamX595 Login is implemented in the backend, so you can test if everything works as expected.
This PR should be done in priority, as only after this would we be able to proceed to the game page.

@PrathamX595
Copy link
Contributor Author

@PrathamX595 Login is implemented in the backend, so you can test if everything works as expected.
This PR should be done in priority, as only after this would we be able to proceed to the game page.

I'll get it done latest by Tomorrow only a few changes are left

@PrathamX595
Copy link
Contributor Author

@kuv2707 implemented the authContext let me know if anything else is needed to done

added a Login page with changes to input and button components. routes
for login and signin pages were also added

Fixes: shivansh-bhatnagar18#79

integrated AuthContext

added Signup page
@shivansh-bhatnagar18 shivansh-bhatnagar18 merged commit c195d3b into shivansh-bhatnagar18:master Jun 14, 2024
5 of 7 checks passed
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

Successfully merging this pull request may close these issues.

Design the Login Page and the Sign In Page
3 participants