Detailed Change Log: Portrait Contact Icons

Detailed Change Log: Portrait Contact Icons

Date: 2026-11-18 Repository: YanWin/YanWin.github.io High-level entry: website-change-overview.md

Request

Implement the selected option: one compact, left-aligned row of Email, ORCID, and GitHub icons directly below the portrait. Remove the city and university lines beneath the photo, since the introduction already gives the affiliation. Retain hover labels and accessible names.

Follow-up: center the icon row beneath the portrait. The final layout uses centered alignment on desktop and mobile.

Context Map

FilePurposeChange
_includes/author-profile.htmlShared profile markupRender three icon-only links for the homepage’s compact profile; preserve the full-profile variant
_sass/layout/_section_layout.scssHomepage stylingTerracotta icon row, 44-pixel link targets, hover and keyboard-focus styles, placement below the photo on phones
docs/visual-style.mdEditing guideDocument the portrait link layout

Risks

Icon-only links need accessible names and visible keyboard focus. The links must remain below the portrait at narrow widths, without overflow. Their existing destinations must be preserved.

Implementation Plan and Progress

  1. Use the existing compact-profile parameter to render the requested three links without location text.
  2. Replace the vertical link-list styling with a horizontal row and keep it beneath the portrait on mobile.
  3. Build Jekyll, refresh the running preview, and inspect placement, link destinations, labels, and keyboard focus.

Final Implementation Results

  • Email, ORCID, and GitHub appear as terracotta icons in a single centered row directly below the portrait. The row’s maximum width matches the photo.
  • Both location lines are removed from the compact profile. The introduction retains its affiliation text.
  • Each link has a title, an aria-label, and a 44-by-44-pixel target. Decorative icons are hidden from assistive technology.
  • Hover and keyboard-focus states use the existing accent colors. The full-profile variant remains available to other layouts.

Verification Notes

  • Jekyll build passed. No JavaScript change or bundle rebuild was needed.
  • Inspected the default browser width and a 390-pixel phone viewport; neither had horizontal overflow.
  • On mobile, all three links have the same vertical position below the portrait and retain 44-pixel targets.
  • Confirmed the Email, ORCID, and GitHub destinations, hover-label attributes, and accessible names in the rendered page.
  • Keyboard Tab navigation focused ORCID with a visible solid outline.
  • Saved screenshots in ignored local/design-portrait-icons-desktop.jpg and local/design-portrait-icons-mobile.jpg.
  • git diff --check passed. The temporary viewport override was reset.
  • Centering follow-up: rebuilt Jekyll and confirmed that the icon row and portrait share the same horizontal center at both the default 790-pixel viewport and a 390-pixel phone viewport. Saved local/design-portrait-icons-centered.jpg.

Closure

The refreshed preview remains open and running for the user’s review. Changes remain local on codex/wider-section-layout; nothing was pushed or deployed. The unrelated .serena/project.yml change is excluded.