Skip to content

Commit b738f05

Browse files
xpqiuclaude
andcommitted
Team page: add entry-year labels, sort by year, roster updates
- Show entry cohort (20XX级) on student cards and alumni rows; sort current students and alumni by year (ascending) then surname; sort-students.js preserves the new year field - Alumni rows: 3-column layout (name | year | destination) with language-aware name-column width (tight & year-column aligned in zh, wider in en) - Move 汪燠欣 to faculty (研究助理教授); also list as PhD alumnus (SII) - Remove 何慷, 李沐宸 from current students - Mark 6 PhD students graduated → alumni (邵云帆/罗琪/程沁源/吕凯/印张悦/汪燠欣) - Rename 专任副研究员 → 副研究员 (陈爽, 郑逸宁) - Fix destinations: 程沁源 (模思智能 CTO), 颜航 (奇绩智峰); move 蒋子恒 masters → undergrad (2013级) - Bump cache version Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4fff3bc commit b738f05

5 files changed

Lines changed: 305 additions & 267 deletions

File tree

assets/css/style.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,8 @@ html[lang="zh-CN"] .footer-grid {
12001200

12011201
.alumni-row {
12021202
display: grid;
1203-
grid-template-columns: 220px 1fr;
1204-
gap: 24px;
1203+
grid-template-columns: 56px 56px 1fr;
1204+
gap: 14px;
12051205
padding: 10px 8px;
12061206
margin-bottom: 6px;
12071207
border-radius: 8px;
@@ -1218,6 +1218,18 @@ html[lang="zh-CN"] .footer-grid {
12181218
color: var(--text);
12191219
}
12201220

1221+
.alumni-row .year {
1222+
color: var(--text-soft);
1223+
font-weight: 300;
1224+
}
1225+
1226+
/* 英文名较长,桌面端加宽姓名列(移动端仍按下方 768px 规则堆叠) */
1227+
@media (min-width: 769px) {
1228+
html[lang="en"] .alumni-row {
1229+
grid-template-columns: 140px 56px 1fr;
1230+
}
1231+
}
1232+
12211233
.alumni-row .destination {
12221234
color: var(--text-soft);
12231235
font-weight: 300;

assets/js/spa.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
${member.photo ? `<img src="${member.photo}" alt="${name}" class="member-photo">` : ''}
386386
<h4 class="member-name">${name}</h4>
387387
${showTitle && member.title ? `<p class="member-title">${member.title[currentLang] || member.title.zh || member.title}</p>` : ''}
388+
${member.year ? `<p class="member-title member-year">${currentLang === 'en' ? 'Class of ' + member.year : member.year + '级'}</p>` : ''}
388389
</a>
389390
`;
390391
} else {
@@ -393,6 +394,7 @@
393394
${member.photo ? `<img src="${member.photo}" alt="${name}" class="member-photo">` : ''}
394395
<h4 class="member-name">${name}</h4>
395396
${showTitle && member.title ? `<p class="member-title">${member.title[currentLang] || member.title.zh || member.title}</p>` : ''}
397+
${member.year ? `<p class="member-title member-year">${currentLang === 'en' ? 'Class of ' + member.year : member.year + '级'}</p>` : ''}
396398
</div>
397399
`;
398400
}
@@ -452,6 +454,7 @@
452454
<span class="name">
453455
${item.homepage ? `<a class="alumni-name-link" href="${item.homepage}" target="_blank">${item.name[currentLang] || item.name.zh || item.name}</a>` : (item.name[currentLang] || item.name.zh || item.name)}
454456
</span>
457+
<span class="year">${item.year ? (currentLang === 'en' ? item.year : item.year + '级') : ''}</span>
455458
<span class="destination">${item.destination?.[currentLang] || item.destination?.zh || item.destination || ''}</span>
456459
</div>
457460
`).join('');

0 commit comments

Comments
 (0)