Detailed Change Log: Homepage Section Separation

Detailed Change Log: Homepage Section Separation

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

Request

Separate the introduction, research, and teaching sections more clearly in the branch experiment. Retain the confirmed scrolling homepage, separate CV, continuous background, and existing colors.

Context Map

FilePurposeChange
_pages/about.mdHomepage sectionsVisible Research and Teaching headings with matching wrappers
_sass/layout/_section_layout.scssExperimental layoutStronger major dividers, larger section headings, more space between main sections, smaller category labels
_includes/teaching-list.htmlShared teaching listOptional left-side level headings on the homepage
assets/js/_main.js, assets/js/main.min.jsNavigation behaviorKeep Teaching active when the page reaches its bottom
_includes/scripts.htmlScript loadingVersion the bundle URL by build time so refreshed previews load the updated script
docs/visual-style.mdEditing guideExplain the main-section and category hierarchy

Risks

The new heading hierarchy must remain clear on phones. Teaching-level wrappers must preserve the standalone teaching page. A short last section may not reach the usual navigation activation threshold before scrolling reaches the page bottom.

Implementation Plan and Progress

  1. Add matching visible Research and Teaching headings, with stronger full-width dividers and additional space between the three main sections.
  2. Retain sticky category labels beside papers; use the same layout for teaching levels. Make category labels smaller and use the existing terracotta accent.
  3. Preserve the standalone teaching layout through an optional include parameter.
  4. Build and inspect desktop and phone layouts.
  5. Correct the observed bottom-of-page navigation issue and rebuild the JavaScript bundle.
  6. Add a build version to the bundle URL after confirming that the browser retained the previous script despite page reloads.

Final Implementation Results

  • Research and Teaching have prominent dark-green headings and two-pixel dividers. The introduction retains its name heading.
  • Additional spacing separates the main sections. Thin rules and smaller terracotta labels identify groups within them.
  • Teaching levels now appear beside their courses on desktop, matching the research categories. On phones, labels appear above their content.
  • The continuous warm background, original content, header destinations, and separate CV remain intact.
  • At the bottom of the homepage, the navigation marks the last section active even when it cannot reach the usual activation offset.

Verification Notes

  • The Jekyll build for the layout passed.
  • Desktop and 390-pixel phone inspection showed all four papers and five courses, without horizontal overflow or duplicate IDs.
  • npm run build:js and the final Jekyll build passed. The generated preview contains the rebuilt bundle.
  • After refreshing the versioned script, the navigation correctly highlighted Teaching at the page bottom and Research when returning to its section. An Abstract control still opened and closed correctly.
  • The separate teaching page retained all five courses and its original layout.
  • Saved screenshots in ignored local/design-sections-research.jpg, local/design-sections-teaching.jpg, and local/design-sections-mobile.jpg.
  • git diff --check passed. The browser viewport override was reset, and the refreshed preview remains open for review.

Closure

Changes stay on codex/wider-section-layout. Nothing is pushed or deployed. The existing loopback-only preview is retained for the user’s ongoing review. The pre-existing .serena/project.yml modification is unrelated.