14 Commits

Author SHA1 Message Date
kusowl
4a4c8bd4e3 feature: user logout and auth states
added s authState which helps conditonaly render components based on this state

stored user details in localStoarge so that server side end point does not get hit in every page load.

add a guard which protects routes and redirects to login if user is not logged in.

create a logout route
2026-02-24 18:14:21 +05:30
kusowl
0427d1c62d feature: user can login to backend 2026-02-23 18:46:23 +05:30
kusowl
aee7e4fd89 navigate user after successful registration.
- data is passed via state
2026-02-23 16:10:59 +05:30
kusowl
4aba99fcb5 chore: format 2026-02-23 15:08:06 +05:30
kusowl
78bf326622 add client side validation errors 2026-02-23 15:07:43 +05:30
kusowl
77532aaac2 Show server side validation errors 2026-02-23 12:17:14 +05:30
kusowl
2ca605feb4 connect backend for user registration 2026-02-20 18:40:48 +05:30
kusowl
c3be527b12 feature - add register page 2026-02-19 18:20:43 +05:30
kusowl
bfd487b05c refactor: add auth feature to encolse both login and register components 2026-02-19 17:25:23 +05:30
kusowl
32f5be8ff0 fix: responsivness of login card 2026-02-19 16:59:14 +05:30
kusowl
4d5cb9791b feature: login page
- add login page design
- use card class instead on card component
- add button press animations
2026-02-19 14:19:21 +05:30
kusowl
5210292590 chore: add oxfmt as formatter 2026-02-19 12:06:30 +05:30
kusowl
91ab8962a0 Add routing conifguration and default login page 2026-02-19 12:02:47 +05:30
kusowl
76754801bd initial ui 2026-02-19 10:24:26 +05:30