diff --git a/src/components/Team.tsx b/src/components/Team.tsx index e7d78a1..fcd9513 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,48 +47,118 @@ 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) => ( - img': { + height:'20px', + width:'20px', + paddingRight:'5px' + }, + '& tr > td > div': { + gap:'10px' + } + }, + '@media (max-width: 900px)': { + '& td, & th': { + fontSize:'0.9rem', + padding:'8px 12px' + }, + '& img#member': { + height:'130px', + width:'130px' + }, + '& #link': { + width:'130px', + fontSize:'0.8rem', + height:'22px' + }, + '& #link > img': { + height:'18px', + width:'18px', + paddingRight:'3px' + }, + '& tr > td > div': { + gap:'5px' + } + }, + '@media (max-width: 600px)': { + '& td, & th': { + fontSize:'0.8rem', + padding:'6px 10px' + }, + '& img#member': { + height:'110px', + width:'110px' + }, + '& #link': { + width:'110px', + fontSize:'0.7rem', + height:'20px' + }, + '& #link > img': { + height:'16px', + width:'16px', + paddingRight:'2px' + }, + '& tr > td > div': { + gap:'2px' + } + } }} > - + @@ -98,18 +166,18 @@ export default function Team() { -
{team.name}
{team.members.map((member, i) => (
member-image
@@ -164,10 +232,8 @@ export default function Team() {
- + ))} -
); } \ No newline at end of file