Skip to content

Commit 3ff6487

Browse files
committed
feat: add Sign In button to Navbar for improved user navigation
1 parent 911abee commit 3ff6487

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

client/src/App.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { AuthProvider, useAuth } from "./context/AuthContext";
55
import ProtectedRoutes from "./routes/ProtectedRoutes";
66
import PublicRoutes from "./routes/PublicRoutes";
77
import ThemeApplier from "./theme/ThemeApplier";
8-
import Mainpage from "./pages/Mainpage";
98

109
function AppRoutes() {
1110
const { user } = useAuth();

client/src/components/Navbar.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,18 @@ function Navbar({ showBack }) {
594594
Home
595595
</button>
596596

597+
<button
598+
onClick={() => navigate("/signin")}
599+
className="hidden sm:flex px-4 py-2 rounded-xl text-sm font-semibold
600+
border border-[var(--accent)]/50 text-[var(--accent)] glass
601+
hover:border-[var(--accent)] hover:bg-[var(--accent)]/15
602+
hover:shadow-[0_4px_16px_-4px_var(--accent)]
603+
transition-all duration-300 cursor-pointer active:scale-95
604+
items-center gap-2"
605+
>
606+
Sign In
607+
</button>
608+
597609
<button
598610
onClick={() => navigate("/signup")}
599611
className="px-4 py-2 rounded-xl text-sm font-bold border-none

0 commit comments

Comments
 (0)