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

Created nav bar #19

Merged
merged 4 commits into from
Oct 11, 2024
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
4,142 changes: 4,142 additions & 0 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Binary file added public/logo.webp
Binary file not shown.
File renamed without changes
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "./globals.css";
import { Inter } from "next/font/google";
import { ReactQueryClientProvider } from "@/utils/react-query";
import Navigation from "@/components/navigation";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -20,6 +21,7 @@ export default function RootLayout({ children }: LayoutProps) {
className={`${inter.className} min-h-screen`}
style={{ backgroundColor: "#FFEFD7" }}
>
<Navigation />
<ReactQueryClientProvider>{children}</ReactQueryClientProvider>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Home = () => {
return <div className="bg-isa-dark-red">Hello World</div>;
return <div>{/* <div className="bg-isa-dark-red">Hello World</div>; */}</div>;
};

export default Home;
43 changes: 43 additions & 0 deletions src/components/navigation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Image from "next/image";
import Link from "next/link";
import React from "react";
import Logo from "@/public/logo.webp";
import { items } from "@/data/nav";

type item = {
name: string;
href: string;
};

const Navigation = () => {
return (
<nav className="bg-beige-100 w-full border-gray-200 py-4">
<div className="flex w-full items-center justify-between px-6">
<div className="flex items-center">
<div className="rounded-full border-2 border-black">
<Image
src={Logo}
alt="Logo"
width={75}
height={75}
className="rounded-full"
/>
</div>
</div>

{/* nav stuff */}
<ul className="flex space-x-8 text-lg font-semibold text-black">
{items.map((item: item, index: number) => (
<Link href={item.href} key={index}>
<div className="transition-colors duration-300 hover:text-gray-600">
{item.name}
</div>
</Link>
))}
</ul>
</div>
</nav>
);
};

export default Navigation;
22 changes: 22 additions & 0 deletions src/data/nav.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export const items = [
{
name: "Mission",
href: "/mission",
},
{
name: "Culture",
href: "/culture",
},
{
name: "Join Us",
href: "/join-us",
},
{
name: "Gallery",
href: "/gallery",
},
{
name: "Philanthropy",
href: "/philanthropy",
},
];
Empty file removed src/public/gallery/test.txt
Empty file.
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"light-red": "#7D454D",
"bright-yellow": "#F6DE50",
"dark-yellow": "#BF9B36",
"beige-100": "#f5e7d5",
},
},
},
Expand Down
Loading