Description
Instructor photos and any images on the platform currently use standard
HTML <img> tags. Next.js provides an optimized <Image> component
that automatically handles lazy loading, WebP conversion, and proper
sizing — improving Core Web Vitals scores significantly.
Current Behavior
- Standard
<img> tags used throughout
- No automatic image optimization
- No lazy loading on instructor photos
- No proper width/height attributes causing layout shifts (CLS)
Expected Behavior
- All
<img> tags replaced with Next.js <Image> component
- Proper
width, height, and alt attributes on every image
priority prop on above-the-fold hero images
loading="lazy" for below-fold images (default in Next.js Image)
Tech Involved
next/image component
next.config.mjs updated with allowed image domains
Acceptance Criteria
Contributing on behalf of NSoC'26 | @Mehren7 please assign me
Description
Instructor photos and any images on the platform currently use standard
HTML
<img>tags. Next.js provides an optimized<Image>componentthat automatically handles lazy loading, WebP conversion, and proper
sizing — improving Core Web Vitals scores significantly.
Current Behavior
<img>tags used throughoutExpected Behavior
<img>tags replaced with Next.js<Image>componentwidth,height, andaltattributes on every imagepriorityprop on above-the-fold hero imagesloading="lazy"for below-fold images (default in Next.js Image)Tech Involved
next/imagecomponentnext.config.mjsupdated with allowed image domainsAcceptance Criteria
<img>tags replaced with<Image>fromnext/imagewidthandheightset on all imagesalttext present on every imagenext.config.mjsupdated with remote image domainsprioritypropContributing on behalf of NSoC'26 | @Mehren7 please assign me