#588: feature: Signup or Login modal added
Issue #588 by jaydeep203
feature: Signup or Login modal added
Feature #532
I have created a login/signup modal in client/components/modals .
I have added it currently in the leaderboard section of the website; if the user is not logged in, it gets triggered in the useEffect hook. I have created a src/hooks/useLoginModal.ts file to control the open and close of the modal using zustand. Use the modal wherever you want in the app. I have not tested it in the backend because I only updated the frontend.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- New Features
- Introduced a modal component for user authentication and registration, supporting both traditional and social (Google, GitHub) login methods.
- Added a custom React hook for managing the visibility of the login modal.
- Chores
- Updated the
.gitignore
file for better file management in version control.
- Enhancements
- Integrated the new authentication modal into the Leaderboard feature, prompting users to log in or register to view leaderboard details.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->0 Replies