Skip to content

Commit

Permalink
Condenced team view on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmshaver committed Jan 21, 2024
1 parent 3e70e41 commit 0245e05
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions pages/team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ function GroupSection({ group, basePath }) {

function MemberCard({ json, basePath }) {
return (
<div className="text-center rounded bg-grey py-4 px-8 w-full sm:w-60">
<div className="text-left sm:text-center rounded bg-grey py-2 sm:py-4 px-2 sm:px-8 w-full sm:w-60 flex sm:block gap-8">
<Image
className="mx-auto mb-4 w-44 h-44 rounded-full object-cover"
className="sm:mx-auto sm:mb-4 sm:w-44 sm:h-44 w-24 h-24 my-auto rounded-full object-cover"
width="176"
height="176"
src={
Expand All @@ -62,24 +62,27 @@ function MemberCard({ json, basePath }) {
}
alt={json.image.split(".")[0].split("_").join(" ")}
/>
<h3 className="mb-1 text-2xl font-bold tracking-tight">{json.name}</h3>
<p>{json.title}</p>
<ul className="flex justify-center mt-4 space-x-4">
{json.linkedin ? (
<li>
<Link href={json.linkedin} className="hover:text-gray" aria-label="Linkedin">
<Icon name="linkedin" className="text-3xl" />
</Link>
</li>
) : null}
{json.github ? (
<li>
<Link href={json.github} className="hover:text-gray" aria-label="GitHub">
<Icon name="github" className="text-3xl" />
</Link>
</li>
) : null}
</ul>
<div className="">
<h3 className="mb-1 text-2xl font-bold tracking-tight">{json.name}</h3>
<p>{json.title}</p>
<ul className="flex sm:justify-center mt-2 sm:mt-4 space-x-4">
{json.linkedin ? (
<li>
<Link href={json.linkedin} className="hover:text-gray" aria-label="Linkedin">
<Icon name="linkedin" className="text-3xl" />
</Link>
</li>
) : null}
{json.github ? (
<li>
<Link href={json.github} className="hover:text-gray" aria-label="GitHub">
<Icon name="github" className="text-3xl" />
</Link>
</li>
) : null}
</ul>
</div>

</div>
);
}

0 comments on commit 0245e05

Please sign in to comment.