diff --git a/_data/people.yml b/_data/people.yml index 413d935..5f4f608 100644 --- a/_data/people.yml +++ b/_data/people.yml @@ -36,12 +36,13 @@ core: period: "2025-" website: https://ema-ans.github.io/ photo: /assets/images/people/eman.png - - name: Thinh Nguyen Truong (Theo) + - name: Thinh Nguyen Truong publication_names: [Thinh Nguyen Truong, Nguyen-Truong Thinh] program: MPhil CSE period: "2026-" - website: https://linkedin.com/in/thinh-nguyentruong - photo: /assets/images/people/theo.png + website: https://thinhnguyentruong.com + photo: /assets/images/people/theo.jpg + photo_fun: /assets/images/people/fun/theo.jpg - name: Jianheng Ouyang program: MPhil CSE period: "2026-" diff --git a/_includes/people-card.html b/_includes/people-card.html index ff9584f..e2df0f9 100644 --- a/_includes/people-card.html +++ b/_includes/people-card.html @@ -1,14 +1,21 @@ {% assign person = include.person %} {% assign photo = person.photo | default: '/assets/images/people/placeholder.svg' %} {% assign photo_fun = person.photo_fun | default: photo %} +{% assign period_label = person.period %} +{% assign period_end = person.period | slice: -1 %} +{% if period_end == '-' %}{% assign period_label = period_label | append: 'present' %}{% endif %} +{% assign period_label = period_label | replace: '-', '–' %} {% if person.website %}{% else %}
{% endif %}
Portrait of {{ person.name }}

{{ person.name }}

-

{{ person.program }}{% if person.period %} · {{ person.period }}{% endif %}

+

{{ person.program }}

+ {% if period_label %} +

{{ period_label }}

+ {% endif %} {% if person.co_supervisor %} -

(co-supervised w/ {{ person.co_supervisor }})

+

Co-advised by {{ person.co_supervisor }}

{% endif %} {% if person.website %}
{% else %}
{% endif %} diff --git a/_sass/_people.scss b/_sass/_people.scss index f79e0eb..d8e12e1 100644 --- a/_sass/_people.scss +++ b/_sass/_people.scss @@ -1,6 +1,6 @@ .people-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.65rem; } @@ -27,9 +27,9 @@ .people-photo-swap { position: relative; - width: 45%; - aspect-ratio: 7 / 8; - margin: 0 auto 0.45rem; + width: 62%; + aspect-ratio: 1; + margin: 0.15rem auto 0.6rem; perspective: 600px; img { @@ -37,7 +37,8 @@ inset: 0; width: 100%; height: 100%; - border-radius: 50% 50% 42% 42%; + border-radius: 50%; + box-shadow: 0 0 0 1px $border-color, 0 1px 3px rgba(0, 0, 0, 0.08); backface-visibility: hidden; object-fit: cover; transition: transform 0.42s ease; @@ -64,16 +65,28 @@ .people-program { margin: 0; - color: $grey-color; + color: $text-color; font-size: $min-font-size; line-height: 1.35; } +.people-period { + margin: 0; + color: $grey-color; + font-size: 0.75rem; + font-variant-numeric: tabular-nums; + line-height: 1.35; +} + .people-co-supervisor { - margin: 0.12rem 0 0; + margin: 0.3rem 0 0; color: $grey-color; font-size: 0.75rem; line-height: 1.25; + + .nowrap { + white-space: nowrap; + } } .people-section { diff --git a/assets/images/people/fun/theo.jpg b/assets/images/people/fun/theo.jpg new file mode 100644 index 0000000..9e7d702 Binary files /dev/null and b/assets/images/people/fun/theo.jpg differ diff --git a/assets/images/people/theo.jpg b/assets/images/people/theo.jpg new file mode 100644 index 0000000..9bcf9fd Binary files /dev/null and b/assets/images/people/theo.jpg differ diff --git a/assets/images/people/theo.png b/assets/images/people/theo.png deleted file mode 100644 index 334cee6..0000000 Binary files a/assets/images/people/theo.png and /dev/null differ