diff --git a/src/components/Team.tsx b/src/components/Team.tsx index e7d78a1..87b6e8e 100644 --- a/src/components/Team.tsx +++ b/src/components/Team.tsx @@ -1,15 +1,13 @@ import Table from '@mui/joy/Table'; import Typography from '@mui/joy/Typography'; -import Button from "@mui/joy/Button"; -import blank from "../images/Team/blank.jpeg"; -import e from "../images/email.png"; -import g from "../images/github.png"; +import Button from '@mui/joy/Button'; +import blank from '../images/Team/blank.jpeg'; +import e from '../images/email.png'; +import g from '../images/github.png'; function addPerson(name: string, image: string, role: string, link: string, type: string) { - let typeImage = type === "Github" ? g : e; return { name, image, role, link, type, typeImage}; - } const directors = [ @@ -49,125 +47,177 @@ const sponsorship = [ ]; const teams = [ - { name: "Directors", members: directors }, - { name: "Tech", members: tech }, - { name: "Outreach", members: outreach }, - { name: "Sponsorship", members: sponsorship } + { name:"Directors", members: directors }, + { name:"Tech", members: tech }, + { name:"Outreach", members: outreach }, + { name:"Sponsorship", members: sponsorship } ]; export default function Team() { return ( -
+
TEAM {teams.map((team) => ( - td > div': { + display:'flex', + flexWrap:'wrap', + justifyContent:'space-evenly', + gap:'12px' + }, + '& tr > td > div > div': { + width:'46% !important', + margin:'0px !important', + display:'flex', + flexDirection:'column', + alignItems:'center', + gap:'2px' + }, + '& tr > td > div > div img': { + height:'90px', + width:'90px', + objectFit:'cover' + }, + '& tr > td > div > div > div:first-of-type': { + fontSize:'13px !important', + fontWeight:'bold', + color:'white', + }, + '& tr > td > div > div > div:nth-of-type(2)': { + fontSize:'10px !important', + color:'grey', + } + } }} > - + - - -
+ {team.name}
-
- - {team.members.map((member, i) => ( -
- member-image -
- {member.name} -
-
- {member.role} -
-
- + {member.name} +
+
+ {member.role} +
+
+ +
-
- ))} - + ))}
- + ))} -
); -} \ No newline at end of file +}