From 739045423e3fe7ed8d62b1b502d2ddc20dc46170 Mon Sep 17 00:00:00 2001 From: samanyugoyal2010 Date: Sun, 11 Oct 2026 19:09:58 -0700 Subject: [PATCH] Improve About team photos and ordering --- next.config.ts | 3 +++ src/app/about/page.tsx | 36 ++++++++++++++++++------------------ src/components/TeamCard.tsx | 6 +++++- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/next.config.ts b/next.config.ts index d7d3b0d..12c33ad 100644 --- a/next.config.ts +++ b/next.config.ts @@ -25,6 +25,9 @@ const RETIRED_ML_SLUGS = [ const nextConfig: NextConfig = { trailingSlash: true, + images: { + qualities: [75, 95], + }, // Canonical slashes are handled in src/proxy.ts; redirects below handle the // legacy aliases before Proxy runs. skipTrailingSlashRedirect: true, diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 33004c5..692f2e0 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -136,6 +136,22 @@ const teamMembers: TeamMember[] = [ instagram: "https://www.instagram.com/sanilaakash/", bio: "Hi, my name is Aakash Sanil. I'm a Co-Social Media Lead at Code With Purpose. I joined Code With Purpose to help reach kids all throughout the world and help them. I mainly focus on making social media videos, spreading our message.", }, + { + name: "Trey Lim", + role: "Co-Social Media Lead & Member of Finance", + country: UNITED_STATES, + photo: images.team.trey, + bio: "Hey, I'm Trey! I'm a finance bro that enjoys creating bonds with others, researching AI, and learning with friends.", + }, + { + name: "Aadi Naik", + role: "Director of Workshops", + country: UNITED_STATES, + photo: images.team.aadi, + photoClass: "object-[45%_48%] scale-[1.15]", + instagram: "https://www.instagram.com/naik_aadi4/", + bio: "Hey everyone! My name is Aadi Naik. I'm an instructor for Code With Purpose that focuses on med courses. I've been with Code With Purpose for around 6 months and it's definitely taught me many things, such as responsibility and time management. I'm deeply interested in the human body, and I wanted to become an instructor so that I could educate people on it.", + }, { name: "Hannah Mauro", role: "Social Media & Design", @@ -161,22 +177,6 @@ const teamMembers: TeamMember[] = [ linkedin: "https://www.linkedin.com/in/vibhav-p-387338262/", bio: "Hi! I'm Vibhav, a freelance app developer working with Microsoft Azure, natural language processing, and machine learning. At CodeWithPurpose, I lead development of our website and the tools that bring free coding education to students everywhere.", }, - { - name: "Trey Lim", - role: "Co-Social Media Lead & Member of Finance", - country: UNITED_STATES, - photo: images.team.trey, - bio: "Hey, I'm Trey! I'm a finance bro that enjoys creating bonds with others, researching AI, and learning with friends.", - }, - { - name: "Aadi Naik", - role: "Lead Instructor", - country: UNITED_STATES, - photo: images.team.aadi, - photoClass: "object-[45%_48%] scale-[1.15]", - instagram: "https://www.instagram.com/naik_aadi4/", - bio: "Hey everyone! My name is Aadi Naik. I'm an instructor for Code With Purpose that focuses on med courses. I've been with Code With Purpose for around 6 months and it's definitely taught me many things, such as responsibility and time management. I'm deeply interested in the human body, and I wanted to become an instructor so that I could educate people on it.", - }, { name: "Karthik Tummala", role: "Lead Instructor", @@ -315,7 +315,7 @@ export default function AboutPage() { key={member.name} member={member} avatar="w-16 text-base sm:w-20 sm:text-lg md:w-28 md:text-2xl" - avatarSizes="(min-width: 768px) 112px, (min-width: 640px) 80px, 64px" + avatarSizes="(min-width: 768px) 192px, (min-width: 640px) 160px, 128px" width="w-[calc(50%-0.5rem)] sm:w-[calc(33.333%-0.667rem)]" /> ))} @@ -327,7 +327,7 @@ export default function AboutPage() { key={member.name} member={member} avatar="w-20 text-lg md:w-24 md:text-xl" - avatarSizes="(min-width: 768px) 96px, 80px" + avatarSizes="(min-width: 768px) 192px, 160px" width="w-[calc(50%-0.5rem)] md:w-[calc(25%-0.75rem)]" /> ))} diff --git a/src/components/TeamCard.tsx b/src/components/TeamCard.tsx index 17fb041..ba65994 100644 --- a/src/components/TeamCard.tsx +++ b/src/components/TeamCard.tsx @@ -90,6 +90,8 @@ function initials(name: string): string { .toUpperCase(); } +// Request a larger source than the visible ring: several portraits are zoomed +// and cropped, so matching the source to the ring width made the faces soft. function TeamMemberAvatar({ member, avatar, sizes }: { member: TeamMember; avatar: string; sizes: string }) { return ( @@ -102,6 +104,7 @@ function TeamMemberAvatar({ member, avatar, sizes }: { member: TeamMember; avata width={320} height={320} sizes={sizes} + quality={95} alt={member.name} loading="lazy" decoding="async" @@ -254,7 +257,8 @@ function TeamMemberDialog({ src={member.photo} width={320} height={320} - sizes="96px" + sizes="192px" + quality={95} alt={member.name} decoding="async" className={`h-full w-full object-cover ${member.photoClass ?? ""}`}