diff --git a/_data/members.yaml b/_data/members.yaml index 5a944294..aa339e89 100644 --- a/_data/members.yaml +++ b/_data/members.yaml @@ -38,12 +38,12 @@ url: https://scholar.google.co.jp/citations?hl=ja&user=c_62MhUAAAAJ badges: [] -- name: T.T. Nguyen NGUYEN - name_jp: T.T. Nguyen Nguyen +- name: Nguyen NGUYEN + name_jp: Nguyen Nguyen role: phd image: /images/nguyen_ava.jpeg url: https://nguyenntt97.github.io/ - badges: [3D Face, Generative] + badges: [Generative] date: 2023-09-01 - name: Bach Thuan BUI @@ -51,7 +51,7 @@ role: phd image: /images/team/thuan.png url: https://thuanbb.github.io/ - badges: [Visual SLAM] + badges: [Vision] date: 2022-09-01 - name: Ardiansyah Al FAROUQ @@ -67,7 +67,7 @@ role: phd image: /images/team/dummy.png url: - badges: [Medical Robotics] + badges: [Medical] date: 2024-09-01 - name: Yuki MATSUSHITA @@ -75,7 +75,7 @@ role: phd image: /images/team/dummy.png url: - badges: [Field Robotics] + badges: [Field] date: 2025-04-01 - name: Shu YOSHIDA @@ -83,7 +83,7 @@ role: phd image: /images/team/phd/yoshida.jpg url: https://sites.google.com/view/yosshu - badges: [Computer Vision] + badges: [Vision] date: 2025-04-01 # Master students (m) diff --git a/_includes/header.html b/_includes/header.html index 1f749e46..bc4ab8ed 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -7,7 +7,7 @@ {% assign logo = svg | default: png | default: jpg | default: nil %}
- - {% if member.name %} - - {% if site.lang == "jp" %} - {{ member.name_jp }} - {% else %} - {{ member.name }} - {% endif %} - - {% endif %} - {% if member.description or type %} {% if site.lang == "jp" %} @@ -54,11 +41,25 @@ {{ member.description | default: type.description }}{% if member.role != "pi" and member.role != "ap" and member.role != "pd" and member.role != "vr" and member.role != "s" and member.role != "is" %}{{seniority}}{% endif %} {% endif %} + {% for badge in member.badges %} {{ badge }} {% endfor %} + {% if member.name %} + + + {% if site.lang == "jp" %} + {{ member.name_jp }} + {% else %} + {{ member.name }} + {% endif %} + + + {% endif %} {% endif %} {% if member.affiliation %} @@ -66,5 +67,5 @@ {{ member.affiliation }} {% endif %} - + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index b5ac58df..92f87f98 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,5 +1,5 @@ - + {% include head.html %} {% include header.html %} diff --git a/_scripts/anchors.js b/_scripts/anchors.js index dcbccd64..8247dfc9 100644 --- a/_scripts/anchors.js +++ b/_scripts/anchors.js @@ -46,10 +46,35 @@ window.addEventListener("hashchange", scrollToTarget); // change header to sticky if scrolled past 0.25 of the page and not data-big-header + let dataBigTimeout; window.addEventListener("scroll", () => { const header = document.querySelector("header"); if (!header) return; - if (header.hasAttribute("data-big")) return; - header.classList.toggle("sticky", window.scrollY > 100); + + const scrollY = window.scrollY; + // if at root + clearTimeout(dataBigTimeout); + dataBigTimeout = setTimeout(() => { + if (window.location.pathname.replaceAll(/\/(en|jp)/g, "") === "/") { + const is_big = header.hasAttribute("data-big"); + + if (scrollY > 200 && !is_big) { + header.classList.add("sticky"); + } else { + header.classList.remove("sticky"); + } + + if (scrollY > 240) { + header.removeAttribute("data-big"); + return; + } + if (!is_big && (scrollY < 100)) { + header.setAttribute("data-big", ""); + return; + } + } + }, 100); + + // header.classList.toggle("sticky", window.scrollY > 100); }); } diff --git a/_styles/-theme.scss b/_styles/-theme.scss index 40b41578..10d8dad2 100644 --- a/_styles/-theme.scss +++ b/_styles/-theme.scss @@ -58,3 +58,11 @@ --shadow: 0 0 10px 0 var(--overlay); --transition: 0.2s ease; } + + +// Japanese override +:lang(jp) { + --title: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; + --heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; + --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; +} \ No newline at end of file diff --git a/_styles/portrait.scss b/_styles/portrait.scss index c0e3ed31..6c464f81 100644 --- a/_styles/portrait.scss +++ b/_styles/portrait.scss @@ -13,7 +13,7 @@ align-items: center; flex-direction: column; margin: 20px; - width: 175px; + width: 100px; max-width: calc(100% - 20px - 20px); text-decoration: none;