generated from acm-ucr/acm-ucr-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/acm-ucr/ewb-website into dev
- Loading branch information
Showing
5 changed files
with
117 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 />, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters