tie it all together

This commit is contained in:
2026-09-06 22:51:52 -04:00
parent 4cf612758c
commit 04ad21d4b3
5 changed files with 55 additions and 9 deletions
+7 -3
View File
@@ -1,13 +1,17 @@
import { useAuth } from "../providers/AuthProvider";
import { useNavigate } from "react-router-dom";
export default function Header() {
const auth = useAuth();
const navigate = useNavigate();
return (
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-1 py-4">
<h1 className="font-bold">
Alex <span className="font-normal text-blue-500">/</span> dev + QA
</h1>
<a href="#" onClick={() => navigate("/")}>
<h1 className="font-bold">
Alex <span className="font-normal text-blue-500">/</span> dev + QA
</h1>
</a>
<div className="flex gap-3 text-sm sm:text-base">
{auth.user !== null ? (
<a href="#" onClick={() => auth.logout()}>