Skip to content

Commit f100b28

Browse files
committed
changed the navbar title name
1 parent 013021d commit f100b28

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

components/Navbar.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff 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">

0 commit comments

Comments
 (0)