Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
menthy-wu committed Nov 12, 2023
2 parents 54fdffe + 2d1048a commit 69725bd
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 7 deletions.
25 changes: 24 additions & 1 deletion src/app/board/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
import { BOARD } from "../../data/mockBoard";
import Board from "../../components/board/Board";
import Title from "@/components/Title";

const page = () => {
return <div>page</div>;
return (
<div className="relative w-full flex flex-col items-center mt-14">
<div className="absolute w-1/2 aspect-square bg-ewb-blue-100/40 rounded-full -translate-y-14" />
<Title title="MEET THE TEAM" />
<div className="relative grid grid-cols-4 w-9/12 gap-8 mt-14">
{BOARD.map((item, index) => (
<Board
key={index}
name={item.name}
position={item.position}
grade={item.grade}
major={item.major}
links={item.links}
pronouns={item.pronouns}
picture={item.picture}
/>
))}
</div>
</div>
);
};

export default page;
2 changes: 1 addition & 1 deletion src/components/Title.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { COLORS } from "../data/colors";
const Title = ({ subTitle, title }) => {
const titleWords = title.split(" ");
return (
<div className="flex flex-col justify-center items-center">
<div className="relative flex flex-col justify-center items-center">
<p className={COLORS.green.text + " font-semibold mb-0"}>{subTitle}</p>
<p className="mt-0 font-bold text-2xl md:text-3xl">
<span
Expand Down
29 changes: 27 additions & 2 deletions src/components/board/Board.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
const Board = ({ name, position, grade, major, links, pronouns, pictures }) => {
return <div>Board</div>;
import Image from "next/image";
import Link from "next/link";
import { ICONS } from "@/data/icons";

const Board = ({ name, position, grade, major, links, pronouns, picture }) => {
return (
<div className="w-full bg-gray-200 my-4 shadow-[12px_-12px_0px_0px] shadow-ewb-green p-4">
<Image src={picture} className="w-full object-cover aspect-square" />
<div className="font-semibold text-ewb-blue-200 text-2xl">{name}</div>
<div className="font-light text-lg">{position}</div>
<div className="flex gap-2">
{Object.entries(links).map(([icon, link], index) => (
<Link
key={index}
href={link}
className="text-2xl text-ewb-blue-200 hover:text-ewb-green"
>
{ICONS[icon]}
</Link>
))}
</div>
<div className="font-light text-sm">
{grade} {"\u2E31"} {major}
</div>
<div className="font-light text-lg">Pronous: {pronouns}</div>
</div>
);
};

export default Board;
8 changes: 7 additions & 1 deletion src/data/icons.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { BsEnvelope, BsFacebook, BsLinkedin } from "react-icons/bs";
import {
BsEnvelope,
BsFacebook,
BsInstagram,
BsLinkedin,
} from "react-icons/bs";
import { MdOutlineHandshake } from "react-icons/md";

export const ICONS = {
email: <BsEnvelope />,
facebook: <BsFacebook />,
linkedin: <BsLinkedin />,
handshake: <MdOutlineHandshake />,
instagram: <BsInstagram />,
};
60 changes: 58 additions & 2 deletions src/data/mockBoard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
import board from "../../public/images/image 11.png";
import board from "../../public/images/landing.webp";
export const BOARD = [
{
name: "Vinesh Manian",
position: "President",
links: {},
grade: "3rd ",
major: "Materials Science and Engineering ",
pronouns: "He/Him",
picture: board,
},
{
name: "Leslie Kin",
position: "Webmaster & Social Media",
links: {
instagram: "https://www.instagram.com/yukiki.kin/?hl=en",
},
grade: "2nd Year ",
major: "Chemical Engineering",
pronouns: "She/Her/Hers",
picture: board,
},
{
name: "Evan Littlecat",
position: "President",
links: {
email: "mailto:email@gmail.com",
linkedin: "mailto:email@gmail.com",
},
grade: "Sophmore",
major: "Comp Sci",
pronouns: "She/Her/Hers",
picture: board,
},
{
name: "Evan Littlecat",
position: "President",
links: {
email: "mailto:email@gmail.com",
linkedin: "mailto:email@gmail.com",
},
grade: "Sophmore",
major: "Comp Sci",
pronouns: "She/Her/Hers",
picture: board,
},
{
name: "Evan Littlecat",
position: "President",
links: {
email: "mailto:email@gmail.com",
linkedin: "mailto:email@gmail.com",
},
grade: "Sophmore",
major: "Comp Sci",
pronouns: "She/Her/Hers",
picture: board,
},
{
name: "Evan Littlecat",
position: "President",
Expand All @@ -8,7 +64,7 @@ export const BOARD = [
linkedin: "mailto:email@gmail.com",
},
grade: "Sophmore",
major: "Computer Science",
major: "Comp Sci",
pronouns: "She/Her/Hers",
picture: board,
},
Expand Down

0 comments on commit 69725bd

Please sign in to comment.