File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,21 +34,29 @@ const Navbar = () => {
3434 { /* Logo */ }
3535 < Link href = "/" >
3636 < h1 className = "text-2xl font-bold text-gray-900 tracking-tight hover:opacity-90 transition-opacity" >
37- Project Archive
37+ Gecian_Hostel
3838 </ h1 >
3939 </ Link >
4040
4141 { /* Right Section */ }
4242 < div className = "flex items-center space-x-4" >
4343 { user ? (
44- < Link href = "/profile" className = "flex items-center space-x-2 group" >
45- < div className = "w-10 h-10 bg-blue-600 text-white rounded-full flex items-center justify-center text-lg font-bold" >
46- { ( user . displayName || user . email || "U" ) [ 0 ] . toUpperCase ( ) }
47- </ div >
48- < span className = "hidden sm:inline text-sm font-medium text-gray-700 group-hover:text-blue-600 transition" >
49- { user . displayName || user . email || "User" }
50- </ span >
51- </ Link >
44+ < div className = "flex items-center space-x-4" >
45+ < Link href = "/profile" className = "flex items-center space-x-2 group" >
46+ < div className = "w-10 h-10 bg-blue-600 text-white rounded-full flex items-center justify-center text-lg font-bold" >
47+ { ( user . displayName || user . email || "U" ) [ 0 ] . toUpperCase ( ) }
48+ </ div >
49+ < span className = "hidden sm:inline text-sm font-medium text-gray-700 group-hover:text-blue-600 transition" >
50+ { user . displayName || user . email || "User" }
51+ </ span >
52+ </ Link >
53+ < button
54+ onClick = { handleLogout }
55+ className = "px-5 py-2 rounded-full bg-red-600 text-white font-medium text-sm hover:bg-red-700 transition shadow-md hover:shadow-lg"
56+ >
57+ Logout
58+ </ button >
59+ </ div >
5260 ) : (
5361 < Link href = "/login" >
5462 < button className = "px-5 py-2 rounded-full bg-black text-white font-medium text-sm hover:bg-gray-800 transition shadow-md hover:shadow-lg" >
You can’t perform that action at this time.
0 commit comments