From 268a5282aca1951f138cd7d47585cfa90251b1c0 Mon Sep 17 00:00:00 2001 From: miaravioli Date: Tue, 14 Jan 2025 01:32:24 -0800 Subject: [PATCH] mobile edits --- src/components/Team.tsx | 244 +++++++++++++++++++--------------------- 1 file changed, 114 insertions(+), 130 deletions(-) diff --git a/src/components/Team.tsx b/src/components/Team.tsx index fcd9513..87b6e8e 100644 --- a/src/components/Team.tsx +++ b/src/components/Team.tsx @@ -82,152 +82,136 @@ export default function Team() { wordWrap:'break-word', whiteSpace:'normal' }, - '@media (max-width: 1200px)': { - '& td, & th': { - fontSize:'1rem', - padding:'10px 14px' + '@media (max-width: 700px)': { + '& tr > td > div': { + display:'flex', + flexWrap:'wrap', + justifyContent:'space-evenly', + gap:'12px' }, - '& img#member': { - height:'150px', - width:'150px' + '& tr > td > div > div': { + width:'46% !important', + margin:'0px !important', + display:'flex', + flexDirection:'column', + alignItems:'center', + gap:'2px' }, - '& #link': { - width:'150px', - fontSize:'0.9rem', - height:'25px' + '& tr > td > div > div img': { + height:'90px', + width:'90px', + objectFit:'cover' }, - '& #link > img': { - height:'20px', - width:'20px', - paddingRight:'5px' + '& tr > td > div > div > div:first-of-type': { + fontSize:'13px !important', + fontWeight:'bold', + color:'white', }, - '& 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' + '& 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} +
+
+ +
-
- ))} - + ))} @@ -236,4 +220,4 @@ export default function Team() { ))} ); -} \ No newline at end of file +}