View the project here: https://jakoborion.github.io/se_project_react/
-
Implemented two new routes for unauthorized users in a separate auth.js file:
/signup
— for user registration/signin
— for user authorizationIf an unauthorized user visits the application, they should be redirected to the login page, regardless of the route they accessed.
-
Revised JSX and CSS, added new components:
Login
— the component for user authorization with the necessary state variablesRegister
— the component for user registration with the necessary state variablesProtectedRoute
— use this component to protect the / route so that unauthorized users can't access itInfoTooltip
— a modal window component that informs the user whether they've been registered successfully