From f304ecae4cddbd669b3ee0dd0f9b86451fdae9ad Mon Sep 17 00:00:00 2001 From: Sam Poder <39828164+sampoder@users.noreply.github.com> Date: Wed, 1 Mar 2023 11:34:21 +0800 Subject: [PATCH] Update team structure! --- components/bio.js | 37 ++--- pages/team.js | 337 +++++++++++++++++++++++++--------------------- 2 files changed, 202 insertions(+), 172 deletions(-) diff --git a/components/bio.js b/components/bio.js index 8c0792b9..99c4344b 100644 --- a/components/bio.js +++ b/components/bio.js @@ -2,7 +2,7 @@ import { Box, Flex, Grid, Text, Avatar, Card } from 'theme-ui' import Icon from '@hackclub/icons' import { useState } from 'react' -export default function Bio({ popup = true, ...props }) { +export default function Bio({ popup = true, spanTwo = false, ...props }) { let { img, name, teamRole, pronouns, text, subrole, href } = props const [expand, setExpand] = useState(false) return ( @@ -24,6 +24,8 @@ export default function Bio({ popup = true, ...props }) { maxHeight: '90vh', overflowY: 'scroll', overscrollBehavior: 'contain', + gridColumn: !spanTwo ? null : `1 / span 2`, + position: 'relative' }} as={href && !text ? 'a' : 'div'} href={href} @@ -130,7 +132,7 @@ export default function Bio({ popup = true, ...props }) { - - setExpand(false)} - > - + setExpand(false)} + > + )} diff --git a/pages/team.js b/pages/team.js index f751069c..e313b752 100644 --- a/pages/team.js +++ b/pages/team.js @@ -126,142 +126,162 @@ export default function Team() { - - + - Clubs & Community Team - - - - - - - - - + Hacker Resources Team + + + + + + + + + - - - - - - - - - - - - - + img="https://change-my-pfp.vercel.app/api/current/" + pronouns="he/him" + href="https://github.com/sampoder" + /> + + + + + + + + + + + Communications & Philanthropy + + + + + + + + - Communications & Philanthropy + Community Team - + - + + +