Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
36 changes: 18 additions & 18 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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)]"
/>
))}
Expand All @@ -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)]"
/>
))}
Expand Down
6 changes: 5 additions & 1 deletion src/components/TeamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<span className={`relative mx-auto block ${avatar}`}>
Expand All @@ -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"
Expand Down Expand Up @@ -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 ?? ""}`}
Expand Down
Loading