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

Daniyal/title file #25

Merged
merged 13 commits into from
Jan 28, 2025
2 changes: 1 addition & 1 deletion src/app/board/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Board from "@/components/board/Board";
const Page = () => {
return (
<>
<Header />
<Header title="BOARD" />
<Board />
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/calendar/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Header from "@/components/Header";
const Page = () => {
return (
<>
<Header />
<Header title="CALENDAR" />
<EventCard />
<CalendarEvents />
</>
Expand Down
2 changes: 1 addition & 1 deletion src/app/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Header from "@/components/Header";
const Page = () => {
return (
<>
<Header />
<Header title="EVENTS" />
<FriendshipGames />
<Banquet />
<HmongNewYear />
Expand Down
2 changes: 1 addition & 1 deletion src/app/gallery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Header from "@/components/Header";
const Page = () => {
return (
<>
<Header />
<Header title="GALLERY" />
<Photos />
</>
);
Expand Down
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import About from "@/components/home/About";
import Mission from "@/components/home/Mission";
import Do from "@/components/home/Do";
import Example from "../components/example";
import Header from "@/components/Header";

const Home = () => {
return (
<div className="">
<Header title="About" />
<Hero />
<About />
<Mission />
Expand Down
23 changes: 21 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
const Header = () => {
return <div>Header</div>;
import Image from "next/image";
import hsa5 from "@/public/assets/hsa5.svg";

type props = {
title: string;
};

const Header = ({ title }: props) => {
return (
<div className="flex flex-row justify-between border-t-4 border-indigo-600 bg-hsa-gray-100">
<div className="mt-12 flex flex-row justify-center">
<Image src={hsa5} alt="HSA5" className="w-[35%]" />
</div>
<div className="ml-5 flex flex-col justify-center">
<div className="mb-5 h-5 w-full pr-10 text-4xl">{title}</div>
</div>
<div className="mb-12 flex flex-row justify-center">
<Image src={hsa5} alt="HSA5" className="w-[35%]" />
</div>
</div>
);
};

export default Header;
Loading