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

Board Member Component #40

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 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/assets/toasty.webp
Binary file not shown.
9 changes: 8 additions & 1 deletion src/app/board/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import Header from "@/components/Header";
import Board from "@/components/board/Board";
import hsa1 from "@/public/assets/hsa1.svg";
import example from "@/public/assets/toasty.webp";

const Page = () => {
return (
<>
<Header />
<Board />
<Board
position="President"
name="Toasty McStuffins"
image={example.src}
badge={hsa1.src}
/>
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Home = () => {
<About />
<Mission />
<Do />
<Example text1="Adjust" text2="these" text3="Props" />
<Example text1="Some" text2="Props" text3="Here" />
</div>
);
};
Expand Down
48 changes: 46 additions & 2 deletions src/components/board/Board.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
const Page = () => {
return <div>Board Members</div>;
const Page = (props: {
position: string;
name: string;
image: string;
badge: string;
}) => {
return (
<div>
{" "}
Board Members
<div className="flex h-full w-full flex-row items-center justify-center gap-20 font-serif">
<div className="flex-col">
<div className="relative h-64 w-64 rounded-full bg-white object-cover object-center">
<img
src={props.badge}
alt="badge"
className="absolute bottom-0 size-16"
/>
<img src={props.image} alt="example" className="w-full" />
</div>
<div className="p-2 text-center text-xl font-bold">{props.name}</div>
<div className="text-center"> {props.position}</div>
</div>
<div className="flex-col">
<div className="relative h-64 w-64 rounded-full bg-white object-cover object-center">
<img src={props.badge} alt="badge" className="absolute size-16" />
<img src={props.image} alt="example" className="w-full" />
</div>
<div className="p-2 text-center text-xl font-bold">{props.name}</div>
<div className="text-center"> {props.position}</div>
</div>
<div className="flex-col">
<div className="relative h-64 w-64 rounded-full bg-white object-cover object-center">
<img
src={props.badge}
alt="badge"
className="absolute end-0 size-16"
/>
<img src={props.image} alt="example" className="w-full" />
</div>
<div className="p-2 text-center text-xl font-bold"> {props.name}</div>
<div className="text-center"> {props.position}</div>
</div>
</div>
</div>
);
};

export default Page;
20 changes: 14 additions & 6 deletions src/components/example.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
const Example = (props: { text1: string; text2: string; text3: string }) => {
return (
<div className="flex w-3/4 items-center gap-1 bg-red-200 p-10">
<div className="w-1/2 bg-green-200 p-5 text-left">{props.text1}</div>
<div className="flex w-1/2 flex-row gap-1">
<div className="w-full bg-green-200 p-5 text-left">props.text2</div>
<div className="w-full bg-green-200 p-5 text-right">{props.text2}</div>
<div className="flex w-2/3 flex-col items-center gap-7 rounded-md bg-red-200 p-10">
<div className="flex-center w-1/2 bg-blue-200 p-5 text-center text-lg">
{props.text1}
</div>
<div className="flex w-1/2 flex-row gap-3">
<div className="flex-center w-full rounded-full bg-blue-500 p-5 text-center text-lg">
{props.text2}
</div>
<div className="flex-center w-full rounded-full bg-blue-500 p-5 text-center text-lg">
{props.text2}
</div>
</div>
<div className="w-1/2 bg-blue-700 p-5 text-center text-lg text-white">
{props.text3}
</div>
{/* Hint: Add another box/div here similarly to line 4 */}
</div>
);
};
Expand Down
Loading