@@ -38,16 +38,27 @@ export function Navbar() {
3838 < Image src = "/opentag.png" alt = "OpenTag" width = { 40 } height = { 40 } className = "mr-2" />
3939 < span className = "font-bold text-xl hidden sm:inline" > OpenTag</ span >
4040 </ Link >
41+ < div className = "sm:hidden" >
42+ { user ? (
43+ < Button variant = "ghost" asChild >
44+ < Link href = "/dashboard" > Dashboard</ Link >
45+ </ Button >
46+ ) : (
47+ < Button variant = "ghost" asChild >
48+ < Link href = "/register" > Get Tag</ Link >
49+ </ Button >
50+ ) }
51+ </ div >
4152 </ div >
4253
4354 < div className = "flex items-center gap-4" >
4455 < div className = "hidden sm:flex items-center gap-4" >
4556 { user ? (
4657 < >
47- < Button variant = "primary " asChild >
58+ < Button variant = "ghost " asChild >
4859 < Link href = "/about" > About</ Link >
4960 </ Button >
50- < Button variant = "primary " asChild >
61+ < Button variant = "ghost " asChild >
5162 < Link href = "/dashboard" > Dashboard</ Link >
5263 </ Button >
5364 < Button variant = "red" onClick = { handleLogout } >
@@ -65,14 +76,15 @@ export function Navbar() {
6576 </ >
6677 ) }
6778 < div className = "hidden sm:inline" >
68- < ModeToggle />
79+ < ModeToggle />
6980 </ div >
7081 </ div >
7182
72- < div className = "sm:hidden" >
83+ < div className = "sm:hidden flex items-center gap-4" >
84+ < ModeToggle />
7385 < button
7486 onClick = { ( ) => setMenuOpen ( ! menuOpen ) }
75- className = "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover :text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
87+ className = "inline-flex items-center justify-center p-2 rounded-md text-black dark :text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white"
7688 >
7789 < span className = "sr-only" > Open main menu</ span >
7890 { menuOpen ? (
@@ -95,27 +107,27 @@ export function Navbar() {
95107 < div className = "px-2 pt-2 pb-3 space-y-1" >
96108 { user ? (
97109 < >
98- < Link href = "/about" className = "block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-gray -700 hover:text-white" >
99- About
100- </ Link >
101- < Link href = "/dashboard" className = "block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-gray -700 hover:text-white" >
102- Dashboard
103- </ Link >
104- < button
105- onClick = { handleLogout }
106- className = "block w-full text-left px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-gray -700 hover:text-white"
107- >
108- Logout
109- </ button >
110+ < Link href = "/about" className = "block px-3 py-2 rounded-md text-base font-medium text-black dark:text-white hover:bg-stone -700 hover:text-white" >
111+ About
112+ </ Link >
113+ < Link href = "/dashboard" className = "block px-3 py-2 rounded-md text-base font-medium text-black dark:text-white hover:bg-stone -700 hover:text-white" >
114+ Dashboard
115+ </ Link >
116+ < button
117+ onClick = { handleLogout }
118+ className = "block w-full text-left px-3 py-2 rounded-md text-base font-medium text-black dark:text-white hover:bg-stone -700 hover:text-white"
119+ >
120+ Logout
121+ </ button >
110122 </ >
111123 ) : (
112124 < >
113- < Link href = "/login" className = "block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-gray -700 hover:text-white" >
114- Login
115- </ Link >
116- < Link href = "/register" className = "block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-gray -700 hover:text-white" >
117- Get Tag
118- </ Link >
125+ < Link href = "/login" className = "block px-3 py-2 rounded-md text-base font-medium text-black dark:text-white hover:bg-stone -700 hover:text-white" >
126+ Login
127+ </ Link >
128+ < Link href = "/register" className = "block px-3 py-2 rounded-md text-base font-medium text-black dark:text-white hover:bg-stone -700 hover:text-white" >
129+ Get Tag
130+ </ Link >
119131 </ >
120132 ) }
121133 </ div >
0 commit comments