Skip to content

Commit 577266b

Browse files
update avatars
1 parent 39dd934 commit 577266b

File tree

8 files changed

+1997
-2880
lines changed

8 files changed

+1997
-2880
lines changed

_pages/en/alumni.md

Lines changed: 591 additions & 875 deletions
Large diffs are not rendered by default.

_pages/en/faculty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
page_id: faculty
33
layout: profiles
44
permalink: /members/faculty/
5-
title: Faculty
5+
title: 🧑‍🏫Faculty
66
description: Faculties of X-LANCE
77
nav: false
88
nav_order: 7

_pages/en/student.md

Lines changed: 365 additions & 534 deletions
Large diffs are not rendered by default.

_pages/zh/alumni.md

Lines changed: 591 additions & 874 deletions
Large diffs are not rendered by default.

_pages/zh/faculty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
page_id: faculty
33
layout: profiles
44
permalink: /members/faculty/
5-
title: 教师
5+
title: 🧑‍🏫教师
66
nav: false
77

88
profiles:

_pages/zh/student.md

Lines changed: 365 additions & 534 deletions
Large diffs are not rendered by default.

process_avatar/final.xlsx

-31.1 KB
Binary file not shown.

process_avatar/process_xlance_profile.py

Lines changed: 83 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,21 @@
55
from tqdm import tqdm
66

77
default_pic = "../../assets/img/octocat.png"
8-
eng_alu_format = """<div>
9-
<figure align="center" text-align="center">
10-
<a href=""><img style="border-radius: 50%; width:150px" src="{pic}" alt=""></a>
11-
<figcaption><b>{name}</b><br><b>{xlanceid}</b></figcaption>
12-
</figure>
8+
eng_alu_format = """<div class="member">
9+
<a href="#"><img src="{pic}" alt="{name}"></a>
10+
<div><b>{name}</b><br><b>{xlanceid}</b></div>
1311
</div>"""
14-
chi_alu_format = """<div>
15-
<figure align="center" text-align="center">
16-
<a href=""><img style="border-radius: 50%; width:150px" src="{pic}" alt=""></a>
17-
<figcaption><b>{name}</b><br><b>{xlanceid}</b></figcaption>
18-
</figure>
12+
chi_alu_format = """<div class="member">
13+
<a href="#"><img src="{pic}" alt="{name}"></a>
14+
<div><b>{name}</b><br><b>{xlanceid}</b></div>
1915
</div>"""
20-
eng_stu_format = """<div>
21-
<figure align="center" text-align="center">
22-
<a href=""><img style="border-radius: 50%; width:150px" src="{pic}" alt=""></a>
23-
<figcaption><b>{name}</b><br><b>{xlanceid}</b></figcaption>
24-
</figure>
16+
eng_stu_format = """<div class="member">
17+
<a href="#"><img src="{pic}" alt="{name}"></a>
18+
<div><b>{name}</b><br><b>{xlanceid}</b></div>
2519
</div>"""
26-
chi_stu_format = """<div>
27-
<figure align="center" text-align="center">
28-
<a href=""><img style="border-radius: 50%; width:150px" src="{pic}" alt=""></a>
29-
<figcaption><b>{name}</b><br><b>{xlanceid}</b></figcaption>
30-
</figure>
20+
chi_stu_format = """<div class="member">
21+
<a href="#"><img src="{pic}" alt="{name}"></a>
22+
<div><b>{name}</b><br><b>{xlanceid}</b></div>
3123
</div>"""
3224

3325

@@ -79,119 +71,149 @@ def convert_part(chars):
7971
page_id: alumni
8072
layout: profiles
8173
permalink: /members/alumni/
82-
title: alumni
74+
title: 🧑‍🎓Alumni
8375
description: Alumni of X-LANCE
8476
nav: false
8577
---
8678
8779
<style>
8880
.mycontainer {
89-
width:100%;
90-
height: auto;
91-
display: flex; /* 使用flex布局 */
92-
flex-wrap: wrap; /* 设置子元素自动换行 */
93-
overflow:auto;
81+
width: 100%;
82+
display: flex;
83+
flex-wrap: wrap;
84+
justify-content: center; /* 水平居中所有项 */
85+
gap: 30px; /* 每项之间的间距 */
86+
padding: 20px 0;
9487
}
95-
.mycontainer div {
96-
margin: 0 10px;
97-
float:left;
98-
}
99-
</style>
10088
101-
[//]: # (<h2> 博士后 </h2>)
89+
.member {
90+
text-align: center;
91+
width: 150px;
92+
}
10293
94+
.member img {
95+
width: 150px;
96+
border-radius: 50%;
97+
}
98+
</style>
10399
104100
<div class="mycontainer">"""
101+
105102
chi_alumni_md = """---
106103
page_id: alumni
107104
layout: profiles
108105
permalink: /members/alumni/
109-
title: 校友
106+
title: 🧑‍🎓校友
110107
description: X-LANCE毕业校友
111108
nav: false
112109
---
113110
114111
<style>
115112
.mycontainer {
116-
width:100%;
117-
height: auto;
118-
display: flex; /* 使用flex布局 */
119-
flex-wrap: wrap; /* 设置子元素自动换行 */
120-
overflow:auto;
113+
width: 100%;
114+
display: flex;
115+
flex-wrap: wrap;
116+
justify-content: center; /* 水平居中所有项 */
117+
gap: 30px; /* 每项之间的间距 */
118+
padding: 20px 0;
121119
}
122-
.mycontainer div {
123-
margin: 0 10px;
124-
float:left;
120+
121+
.member {
122+
text-align: center;
123+
width: 150px;
125124
}
126-
</style>
127125
128-
[//]: # (<h2> 博士后 </h2>)
126+
.member img {
127+
width: 150px;
128+
border-radius: 50%;
129+
}
130+
</style>
129131
130132
131133
<div class="mycontainer">"""
134+
132135
eng_student_md_P = """---
133136
page_id: student
134137
layout: page
135138
permalink: /members/student/
136-
title: Students
139+
title: 🧑‍💻Students
137140
description: Students of X-LANCE
138141
nav: false
139142
---
140143
141144
<style>
142145
.mycontainer {
143-
width:100%;
144-
height: auto;
145-
display: flex; /* 使用flex布局 */
146-
flex-wrap: wrap; /* 设置子元素自动换行 */
147-
overflow:auto;
146+
width: 100%;
147+
display: flex;
148+
flex-wrap: wrap;
149+
justify-content: center; /* 水平居中所有项 */
150+
gap: 30px; /* 每项之间的间距 */
151+
padding: 20px 0;
152+
}
153+
154+
.member {
155+
text-align: center;
156+
width: 150px;
148157
}
149-
.mycontainer div {
150-
margin: 0 10px;
151-
float:left;
158+
159+
.member img {
160+
width: 150px;
161+
border-radius: 50%;
152162
}
153163
</style>
154164
155165
156166
[//]: # (<h2> Postdocs </h2>)
157167
<h2> PhD Candidates </h2>
158168
<div class="mycontainer">"""
169+
159170
chi_student_md_P = """---
160171
page_id: student
161172
layout: page
162173
permalink: /members/student/
163-
title: 学生
174+
title: 🧑‍💻学生
164175
description: X-LANCE在读学生
165176
nav: false
166177
---
167178
168179
<style>
169180
.mycontainer {
170-
width:100%;
171-
height: auto;
172-
display: flex; /* 使用flex布局 */
173-
flex-wrap: wrap; /* 设置子元素自动换行 */
174-
overflow:auto;
181+
width: 100%;
182+
display: flex;
183+
flex-wrap: wrap;
184+
justify-content: center; /* 水平居中所有项 */
185+
gap: 30px; /* 每项之间的间距 */
186+
padding: 20px 0;
187+
}
188+
189+
.member {
190+
text-align: center;
191+
width: 150px;
175192
}
176-
.mycontainer div {
177-
margin: 0 10px;
178-
float:left;
193+
194+
.member img {
195+
width: 150px;
196+
border-radius: 50%;
179197
}
180198
</style>
181199
182200
[//]: # (<h2> 博士后 </h2>)
183201
184202
<h2> 博士研究生 </h2>
185203
<div class="mycontainer">"""
204+
186205
eng_student_md_M = """
187206
<h2> Master Candidates </h2>
188207
<div class="mycontainer">"""
208+
189209
chi_student_md_M = """
190210
<h2> 硕士研究生 </h2>
191211
<div class="mycontainer">"""
212+
192213
eng_student_md_U = """
193214
<h2> Undergraduates </h2>
194215
<div class="mycontainer">"""
216+
195217
chi_student_md_U = """
196218
<h2> 本科生 </h2>
197219
<div class="mycontainer">"""

0 commit comments

Comments
 (0)