@@ -5,6 +5,7 @@ import Link from "next/link";
55import { onAuthStateChanged } from "@/lib/firebase/auth" ;
66import { signOut , getAuth , User } from "firebase/auth" ;
77import { useRouter } from "next/navigation" ;
8+ import { ArrowLeftIcon } from "lucide-react" ;
89
910const Navbar = ( ) => {
1011 const [ user , setUser ] = useState < User | null > ( null ) ;
@@ -31,40 +32,55 @@ const Navbar = () => {
3132 return (
3233 < nav className = "bg-white border-b border-gray-200 shadow-sm sticky top-0 z-50" >
3334 < div className = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center" >
34- { /* Logo */ }
35- < Link href = "/" >
36- < h1 className = "text-2xl font-bold text-gray-900 tracking-tight hover:opacity-90 transition-opacity" >
37- Gecian_Collab
38- </ h1 >
39- </ Link >
35+
36+ { /* Left */ }
37+ < div className = "flex items-center gap-4" >
38+ < button
39+ className = "border text-black border-gray-400 rounded-full p-2"
40+ onClick = { ( ) => router . push ( "https://gecian-hub.netlify.app/" ) }
41+ >
42+ < ArrowLeftIcon className = "w-5 h-5" />
43+ </ button >
4044
41- { /* Right Section */ }
45+ < Link href = "/" >
46+ < h1 className = "text-2xl font-bold text-gray-900 tracking-tight hover:opacity-90 transition-opacity" >
47+ Gecian_Collab
48+ </ h1 >
49+ </ Link >
50+ </ div >
51+
52+ { /* Right */ }
4253 < div className = "flex items-center space-x-4" >
4354 { user ? (
4455 < div className = "flex items-center space-x-4" >
45- < Link href = "/profile" className = "flex items-center space-x-2 group" >
56+ < Link
57+ href = "/profile"
58+ className = "flex items-center space-x-2 group"
59+ >
4660 < div className = "w-10 h-10 bg-blue-600 text-white rounded-full flex items-center justify-center text-lg font-bold" >
4761 { ( user . displayName || user . email || "U" ) [ 0 ] . toUpperCase ( ) }
4862 </ div >
4963 < span className = "hidden sm:inline text-sm font-medium text-gray-700 group-hover:text-blue-600 transition" >
5064 { user . displayName || user . email || "User" }
5165 </ span >
5266 </ Link >
67+
5368 < button
5469 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 "
70+ className = "px-5 py-2 rounded-full bg-red-600 text-white font-medium text-sm hover:bg-red-700 transition shadow-md"
5671 >
5772 Logout
5873 </ button >
5974 </ div >
6075 ) : (
6176 < Link href = "/login" >
62- < 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 " >
77+ < button className = "px-5 py-2 rounded-full bg-black text-white font-medium text-sm hover:bg-gray-800 transition shadow-md" >
6378 Login
6479 </ button >
6580 </ Link >
6681 ) }
6782 </ div >
83+
6884 </ div >
6985 </ nav >
7086 ) ;
0 commit comments