wy471x opened a new pull request, #1130:
URL: https://github.com/apache/shenyu-website/pull/1130

   ## Summary of Changes
   
     Branch: fix/team-page-github-avatar-loading
   
     Problem: Member avatars on the /team page were failing to load because 
avatars.githubusercontent.com is unreliable in certain regions. The team page 
(~55+ members) used direct CDN
      URLs with no error handling.
   
     Changes across 4 files (+304 / -215 lines):
   
     1. New: src/components/GitHubAvatar.tsx
   
     A React component that replaces raw <img> tags. Instead of showing a 
broken image on failure, it renders initials immediately as an inline SVG 
(colored background + extracted
     initials from username), then loads the real GitHub avatar in the 
background. On success it swaps to the photo; on failure it keeps the initials. 
Users never see a broken image.
   
     2. New: static/img/team/default-avatar.svg
   
     A fallback silhouette avatar SVG (kept as a static asset, though the 
component now uses inline SVG initials instead).
   
     3. Modified: src/pages/team.mdx (English)
   
     - All 55+ avatar <img> tags replaced with <GitHubAvatar username="..." 
size={64} />
     - All http:// GitHub links upgraded to https://
     - Added import GitHubAvatar at top of file
   
     4. Modified: i18n/zh/docusaurus-plugin-content-pages/team.mdx (Chinese)
   
     - Same changes as the English file — all avatar tags replaced, all links 
upgraded to HTTPS
   
   close [#1112](https://github.com/apache/shenyu-website/issues/1112)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to