Skip to content

Commit 932f9b6

Browse files
committed
Styling About page.
1 parent c343435 commit 932f9b6

File tree

3 files changed

+97
-18
lines changed

3 files changed

+97
-18
lines changed

_data/positions.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- title: Fudan University
2+
roles:
3+
- title: Associate Professor
4+
dates: 2019.1 - present
5+
- title: Lecturer
6+
dates: 2012.3 - 2018.12
7+
department: Department of Macromolecular Science
8+
address: Chemistry Bldg. Room B3083, 2005 Songhu Rd.
9+
location: Shanghai 200438, China
10+
phone: +86-21-31242883
11+
mobile: +86-18117210989
12+
email: lyx@fudan.edu.cn
13+
profiles:
14+
- lang: English
15+
url: https://polymer.fudan.edu.cn/polymeren/da/17/c31607a383511/page.htm
16+
- lang: 中文版
17+
url: https://polymer.fudan.edu.cn/e1/db/c31500a385499/page.htm
18+
19+
- title: UC Santa Barbara
20+
roles:
21+
- title: Visiting Researcher
22+
dates: 2014.7 - 2016.7
23+
department: Materials Research Laboratory
24+
address: MRL Bldg. Room 3104, UC Santa Barbara
25+
location: Santa Barbara, CA 93106, US
26+
email: lyx@mrl.ucsb.edu

_sass/_site.scss

+41
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,47 @@
104104
}
105105
}
106106

107+
// Position Cards
108+
.position-grid {
109+
display: grid;
110+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
111+
gap: 2rem;
112+
margin: 2rem 0;
113+
}
114+
115+
.position-card {
116+
background: white;
117+
border-radius: 8px;
118+
padding: 1.5rem;
119+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
120+
121+
.position-info {
122+
h3 {
123+
margin-top: 0;
124+
color: #222;
125+
margin-bottom: 1rem;
126+
}
127+
128+
.position-details {
129+
color: #444;
130+
line-height: 1.6;
131+
132+
strong {
133+
font-weight: bold;
134+
}
135+
136+
a {
137+
color: #007bff;
138+
text-decoration: none;
139+
140+
&:hover {
141+
text-decoration: underline;
142+
}
143+
}
144+
}
145+
}
146+
}
147+
107148
// Selection
108149
// --------------------------------------------------
109150
::-moz-selection {

pages/about.md

+30-18
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: About Me
55
description: A brief introduction of Prof. Yi-Xin Liu and this website.
66
header-img: images/about.jpg
77
comments: false
8-
modified: 2024-12-19
8+
modified: 2025-01-11
99
breadcrumbs: true
1010
---
1111

@@ -20,23 +20,35 @@ I have published [29 research articles]({{site.url}}/publications) in peer revie
2020
{% include alert success='Announcement: A postdoc position is open in my group. Please contact me directly to apply.' %}
2121
-->
2222

23-
**Associate Professor (2019.1 - present)**<br>
24-
**Lecturer (2012.3 - 2018.12)**<br>
25-
Department of Macromolecular Science<br>
26-
Fudan University<br>
27-
Chemistry Bldg. Room B3083, 2005 Songhu Rd.<br>
28-
Shanghai 200438, China<br>
29-
Office: +86-21-31242883<br>
30-
Mobile: +86-18117210989<br>
31-
Email: lyx@fudan.edu.cn<br>
32-
Department profile: [English](https://polymer.fudan.edu.cn/polymeren/da/17/c31607a383511/page.htm) [中文版](https://polymer.fudan.edu.cn/e1/db/c31500a385499/page.htm)
33-
34-
**Visiting Researcher (2014.7 - 2016.7)**<br>
35-
Materials Research Laboratory<br>
36-
University of California, Santa Barbara<br>
37-
MRL Bldg. Room 3104, UC Santa Barbara<br>
38-
Santa Barbara, CA 93106, US<br>
39-
Email: lyx@mrl.ucsb.edu
23+
<div class="position-grid">
24+
{% for position in site.data.positions %}
25+
<div class="position-card">
26+
<div class="position-info">
27+
<h3>{{ position.title }}</h3>
28+
<div class="position-details">
29+
{% if position.roles %}
30+
{% for role in position.roles %}
31+
<strong>{{ role.title }} ({{ role.dates }})</strong><br>
32+
{% endfor %}
33+
{% endif %}
34+
{{ position.department }}<br>
35+
{{ position.address }}<br>
36+
{{ position.location }}<br>
37+
{% if position.phone %}Office: {{ position.phone }}<br>{% endif %}
38+
{% if position.mobile %}Mobile: {{ position.mobile }}<br>{% endif %}
39+
Email: {{ position.email }}<br>
40+
{% if position.profiles %}
41+
Department profile:
42+
{% for profile in position.profiles %}
43+
<a href="{{ profile.url }}">{{ profile.lang }}</a>
44+
{% unless forloop.last %}/{% endunless %}
45+
{% endfor %}
46+
{% endif %}
47+
</div>
48+
</div>
49+
</div>
50+
{% endfor %}
51+
</div>
4052

4153
<div markdown="0">
4254
<a href="{{ site.url }}/cv/" class="btn btn-info">View HTML</a>

0 commit comments

Comments
 (0)