Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: completed issue 4: create navbar component #27

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 26 additions & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
import Link from "next/link";
import Image from "next/image";

export default function Navbar() {
return <div>Navbar</div>;
return (
<div className="w-full px-8 py-8">
<nav className="flex justify-between items-center w-full">
{/* logo */}
<div className="pl-16 pr-8 pt-10">
<Link href="/">
<Image src="/logo.png" alt="Octagon Barn Logo" width={182} height={64} />
</Link>
</div>

{/* notification & profile */}
<div className="flex items-center space-x-20 pl-10 pr-16 pt-10">
<Link href="/somePage" className="text-black hover:text-blue-500">
Notification {/* CHANGE TO IMAGE */}
</Link>

<Link href="/somePage" className="text-black hover:text-blue-500">
Profile {/* CHANGE TO IMAGE */}
</Link>
</div>
</nav>
</div>
);
}