feat(pages): add profile page

fix(ui): fix minor ui bugs on some pages
This commit is contained in:
shafin-r
2026-01-19 14:06:05 +06:00
parent d208a9336f
commit d5a39add17
11 changed files with 154 additions and 116 deletions

View File

@ -23,7 +23,7 @@ export const Login = () => {
// Redirect if already authenticated
useEffect(() => {
if (isAuthenticated) {
navigate("/student", { replace: true });
navigate("/student/home", { replace: true });
}
}, [isAuthenticated, navigate]);
@ -49,8 +49,8 @@ export const Login = () => {
return (
<div className="min-h-screen flex items-center justify-center ">
<div className="bg-white p-8 rounded-lg shadow-lg w-full max-w-sm border border-gray-300">
<div className="flex justify-center mb-6">
<div className="bg-white p-8 rounded-lg shadow-lg w-full max-w-sm border border-gray-300 space-y-6">
<div className="flex justify-center">
<img
src="src/assets/ed_logo.png"
alt="EdBridge logo"
@ -120,7 +120,7 @@ export const Login = () => {
<button
onClick={handleSubmit}
disabled={isLoading || !email || !password}
className="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition font-medium disabled:bg-gray-400 disabled:cursor-not-allowed flex items-center justify-center font-satoshi"
className="w-full bg-linear-to-br from-purple-500 to-purple-600 text-white py-3 rounded-2xl hover:bg-purple-700 transition font-medium disabled:bg-gray-400 disabled:cursor-not-allowed flex items-center justify-center font-satoshi hover:cursor-pointer"
>
{isLoading ? (
<>