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

Nav-Bar #9

Merged
merged 6 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions webapp/src/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import Header from "@/components/header";
import NavBar from "./navbar";

const Layout = ({ children }: { children: JSX.Element }) => {
return (
<>
<NavBar />
<Header />

<main className="mt-20 md:w-2/3 w-11/12 m-auto">{children}</main>
</>
);
Expand Down
37 changes: 37 additions & 0 deletions webapp/src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';

const NavBar: React.FC = () => {
return (
<nav className="flex justify-around items-center bg-gray-800 text-white">
<div className="flex gap-4 py-2">
<a href="#home" className="hover:underline">Home</a>
</div>

<div className="flex gap-4 py-2">
<a href="#donate" className="hover:underline">Donate</a>
</div>

<div className="flex gap-4 py-2">
<a href="#account" className="hover:underline">Account</a>
JoshuaWuebbolt marked this conversation as resolved.
Show resolved Hide resolved
</div>

<div className="text-xl font-bold">
Stock Charity
</div>

<div className="flex gap-4 py-2">
<a href="#about" className="hover:underline">About</a>
</div>

<div className="flex gap-4 py-2">
<a href="#join" className="hover:underline">Join as a Charity</a>
</div>

<div className="flex gap-4 py-2">
<a href="#login" className="hover:underline bg-green-500 text-white px-4 py-2 rounded-full">Login</a>
</div>
</nav>
);
};

export default NavBar;