Skip to content

Commit 904a788

Browse files
Add mobile and desktop image sizes and section spacing (#223)
* Reduced Section.tsx margin and gaps on mobile * Added md breakpoint so there is no effect to the desktop view --------- Co-authored-by: Omar Khan <[email protected]>
1 parent b0e83bb commit 904a788

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/(pages)/students/_components/Section.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Section({ team }: { team: TeamDataType }) {
1818
gap="less"
1919
titleSize="sm"
2020
>
21-
<div className="grid grid-cols-2 gap-8 md:grid-cols-4 lg:grid-cols-6">
21+
<div className="-mx-2 grid grid-cols-2 gap-2 md:mx-auto md:grid-cols-4 md:gap-8 lg:grid-cols-6">
2222
{team.teamMembers.map(person => (
2323
<TeamProfile student={person} key={uuidv4()} />
2424
))}

src/app/(pages)/students/_components/TeamProfile.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function TeamProfileBase({ student, hover = false }: { student: StudentDataType;
1010
hover && 'transition duration-200 ease-in-out hover:scale-110 hover:bg-blueprint-50'
1111
}`}
1212
>
13-
<div className="mb-2 flex h-32 w-32 items-center overflow-hidden rounded-full border-2 border-white">
13+
<div className="mb-2 flex h-28 w-28 items-center overflow-hidden rounded-full border-2 border-white md:h-32 md:w-32">
1414
<Image
1515
src={student.imageUrl}
1616
width={128}

0 commit comments

Comments
 (0)