-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
312 lines (284 loc) · 13.2 KB
/
index.html
File metadata and controls
312 lines (284 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
---
layout: default
title: "Home"
permalink: /
body_class: home-v2
description: >-
Computational Multiphase Physics Lab — DNS of non-Newtonian
free-surface flows and soft-matter singularities at Durham University.
---
{% assign hero = site.data.hero %}
{% assign themes_data = site.data.research_themes %}
{% assign news_items = site.data.news.items %}
{% assign team = site.data.team %}
<!-- Visually-hidden SEO anchor: legacy lab name string preserved. -->
<h1 class="visually-hidden">Computational Multiphase Physics Laboratory</h1>
<main class="home-wrap" id="home">
<!-- =========================================================
1. HERO
========================================================= -->
<section class="hero" aria-labelledby="hero-sentence">
<div class="hero__grid">
<div class="hero__left">
<p class="hero__kicker">
<span class="dot" aria-hidden="true"></span>
<span>A research group · Durham University · Department of Physics</span>
<span class="rule" aria-hidden="true"></span>
</p>
<div class="hero__wordmark-line">
<span class="hero__wordmark">CoMPhy Lab</span>
<span class="hero__wordmark-rest">Computational Multiphase Physics</span>
</div>
<p id="hero-sentence" class="hero__sentence">{{ hero.tagline }}</p>
<p class="hero__lede">{{ hero.lede }}</p>
<dl class="hero__meta">
<div>
<dt>Principal investigator</dt>
<dd>{{ hero.pi.name }} <small>{{ hero.pi.role }}</small></dd>
</div>
<div>
<dt>Department</dt>
<dd>{{ hero.department.name }} <small>{{ hero.department.note }}</small></dd>
</div>
<div>
<dt>Location</dt>
<dd>{{ hero.location.name }} <small>{{ hero.location.note }}</small></dd>
</div>
</dl>
<div class="hero__ctas">
<a class="btn" href="{{ hero.cta_primary.href }}">{{ hero.cta_primary.label }}</a>
<a class="btn-ghost" href="{{ hero.cta_secondary.href }}">{{ hero.cta_secondary.label }}</a>
</div>
</div>
<div class="hero__media" aria-label="Rotating figures from recent lab work">
{% for img in hero.images %}
{% assign is_motion = false %}
{% if img.video or img.youtube %}{% assign is_motion = true %}{% endif %}
<figure class="hero__slide hero__slide--{% if is_motion %}motion{% else %}still{% endif %}"
data-active="{% if forloop.first %}true{% else %}false{% endif %}"
aria-hidden="{% if forloop.first %}false{% else %}true{% endif %}"
{% unless forloop.first %}inert{% endunless %}>
<div class="hero__image-well">
{% if img.video %}
<video autoplay muted loop playsinline preload="metadata"
aria-label="{{ img.alt }}">
<source src="{{ img.video }}" type="{{ img.type | default: 'video/mp4' }}" />
</video>
{% elsif img.youtube %}
<iframe
src="https://www.youtube-nocookie.com/embed/{{ img.youtube }}?autoplay=1&mute=1&loop=1&playlist={{ img.youtube }}&controls=0&modestbranding=1&rel=0&playsinline=1&iv_load_policy=3"
title="{{ img.alt }}"
frameborder="0"
allow="autoplay; encrypted-media; picture-in-picture"
allowfullscreen
loading="{% if forloop.first %}eager{% else %}lazy{% endif %}"></iframe>
{% else %}
<img src="{{ img.src }}" alt="{{ img.alt }}"
loading="{% if forloop.first %}eager{% else %}lazy{% endif %}"
decoding="async"
{% if forloop.first %}fetchpriority="high"{% endif %} />
{% endif %}
</div>
<figcaption class="hero__caption-panel">
<span class="hero__caption-eyebrow">Featured work</span>
<b class="hero__caption-title">{{ img.caption_title }}</b>
<span class="hero__caption-sub">{{ img.caption_sub }}</span>{%- comment -%} caption_sub may contain <em> for journal names; it's author-curated content, safe to render as HTML. {%- endcomment -%}
{% if img.href %}
<a class="hero__caption-link" href="{{ img.href }}">Read the paper ↗</a>
{% endif %}
</figcaption>
</figure>
{% endfor %}
</div>
</div>
</section>
<!-- =========================================================
2. RESEARCH THEMES (incl. "Currently" strip above)
========================================================= -->
<section class="home-section" id="research-preview">
<div class="c-now" role="note">
<span class="c-now__label">{{ themes_data.currently.label }}</span>
<p class="c-now__text">{{ themes_data.currently.text }}</p>
</div>
<header class="home-head">
<div class="home-head__left">
<span class="home-head__num">01 · Research</span>
<h2 class="home-head__title">How does soft matter break?</h2>
<p class="home-head__sub">
Capillary, inertial, viscous, and elastic stresses dictate
how drops impact, films rupture, bubbles burst, and jets
pinch off.
</p>
</div>
<a class="btn-ghost" href="/research">All 24 papers ↗</a>
</header>
<div class="themes">
{% for t in themes_data.themes %}
<article class="theme" id="theme-{{ t.slug }}">
<div class="theme__figure">
{% if t.figure %}
<img src="{{ t.figure }}" alt="{{ t.title }} — signature figure" loading="lazy" decoding="async" />
{% else %}
<div class="theme__figure-placeholder">Figure · {{ t.tag }}</div>
{% endif %}
</div>
<div class="theme__body">
<span class="theme__tag">{{ t.num }} · {{ t.tag }}</span>
<h3 class="theme__title">{{ t.title }}</h3>
<p class="theme__desc">{{ t.description }}</p>
<div class="theme__papers">
{% for p in t.papers %}
<div class="theme__paper">
<span class="theme__paper-year">{{ p.year }}</span>
<a class="theme__paper-title" href="{{ p.href }}">{{ p.title }}</a>
<span class="theme__paper-venue">{{ p.venue }}</span>
</div>
{% endfor %}
</div>
</div>
</article>
{% endfor %}
</div>
</section>
<!-- =========================================================
3. NEWS (5 most recent items, strict recency)
========================================================= -->
<section class="home-section" id="news">
<header class="home-head">
<div class="home-head__left">
<span class="home-head__num">02 · Recent News</span>
<h2 class="home-head__title">What's happening in the lab</h2>
</div>
<a class="btn-ghost" href="/news/">All news ↗</a>
</header>
{% assign sorted_news = news_items | sort: "date" | reverse %}
<div class="newsfeed">
{% for n in sorted_news limit:5 %}
{% assign d = n.date | date: "%-d" %}
{% assign mo = n.date | date: "%b %y" %}
<article class="news-item news-item--{{ n.kind }}" data-kind="{{ n.kind }}">
<div class="news-item__date">
<span class="news-item__day">{{ d }}</span>
<span class="news-item__mo">{{ mo }}</span>
</div>
<div class="news-item__body">
{% if n.kind == "paper" %}
<div class="news-item__thumb">
{% if n.thumb %}<img src="{{ n.thumb }}" alt="" loading="lazy" decoding="async" onerror="this.style.display='none'" />{% endif %}
</div>
{% else %}
<div class="news-item__avatar">{{ n.avatar | default: "·" }}</div>
{% endif %}
<div>
<div class="news-item__kicker">
<span class="swatch" aria-hidden="true"></span>
{% case n.kind %}
{% when "paper" %}Paper
{% when "talk" %}Talk
{% when "people" %}People
{% when "move" %}Announcement
{% when "award" %}Award
{% endcase %}
</div>
<h3 class="news-item__title">{{ n.title }}</h3>
<p class="news-item__meta">{{ n.meta }}</p>
</div>
</div>
<a class="btn-ghost news-item__action" href="{{ n.action_href }}"
{% if n.action_href contains "://" %}target="_blank" rel="noopener noreferrer"{% endif %}>
{{ n.action_label }}
</a>
</article>
{% endfor %}
</div>
</section>
<!-- =========================================================
4. TEAM preview (first 6 present members)
========================================================= -->
<section class="home-section" id="team-preview">
<header class="home-head">
<div class="home-head__left">
<span class="home-head__num">03 · People</span>
<h2 class="home-head__title">The people in the room</h2>
</div>
<a class="btn-ghost" href="/team/">Full roster ↗</a>
</header>
<div class="team-preview">
{% for m in team.present limit:6 %}
<article class="member {% if m.is_pi %}member--pi{% endif %}">
<div class="member__photo">
{% if m.photo %}
<img src="{{ m.photo }}" alt="Portrait of {{ m.name }}" loading="lazy" decoding="async" />
{% else %}
{%- comment -%}Strip the longest title prefix first so "Adj. Prof. X" doesn't lose the "Prof. " inside it before "Adj. Prof. " matches.{%- endcomment -%}
{%- assign clean = m.name | replace: "Adj. Prof. ", "" | replace: "Prof. ", "" | replace: "Dr. ", "" -%}
{%- assign words = clean | split: " " -%}
{%- capture initials -%}{%- for w in words limit: 2 -%}{{ w | slice: 0, 1 -}}{%- endfor -%}{%- endcapture -%}
{{ initials | upcase }}
{% endif %}
</div>
<div>
<p class="member__name">{{ m.name }}</p>
<div class="member__role">{{ m.role }}</div>
</div>
<p class="member__bio">{{ m.bio }}</p>
<div class="member__links">
{% if m.links.email %}<a href="{{ m.links.email }}" title="Email" aria-label="Email {{ m.name }}"><i class="fa-solid fa-envelope"></i></a>{% endif %}
{% if m.links.scholar %}<a href="{{ m.links.scholar }}" target="_blank" rel="noopener noreferrer" title="Google Scholar" aria-label="Google Scholar profile"><i class="ai ai-google-scholar"></i></a>{% endif %}
{% if m.links.github %}<a href="{{ m.links.github }}" target="_blank" rel="noopener noreferrer" title="GitHub" aria-label="GitHub profile"><i class="fa-brands fa-github"></i></a>{% endif %}
{% if m.links.bluesky %}<a href="{{ m.links.bluesky }}" target="_blank" rel="noopener noreferrer" title="Bluesky" aria-label="Bluesky profile"><i class="fa-brands fa-bluesky"></i></a>{% endif %}
{% if m.links.site %}<a href="{{ m.links.site }}" target="_blank" rel="noopener noreferrer" title="Personal site" aria-label="Personal website"><i class="fa-solid fa-globe"></i></a>{% endif %}
</div>
</article>
{% endfor %}
</div>
</section>
<!-- =========================================================
5. Closing CTA — link into /research and /join.
========================================================= -->
<aside class="closing-cta" aria-label="Call to action">
<div>
<h3>Looking for a postdoc, PhD, MSc, or visiting position?</h3>
<p>
The lab is always recruiting — postdoc fellowships, funded
doctoral positions, MSc projects, and visiting researcher
spots in Durham. Open projects and how to apply are on the
<a href="/join">Join Us</a> page.
</p>
</div>
<a class="btn" href="/join">Current opportunities →</a>
</aside>
</main>
<!-- Homepage JS: rotate visual slides + respect prefers-reduced-motion. -->
<script>
(function () {
var media = document.querySelector('.hero__media');
if (!media) return;
var figures = media.querySelectorAll('figure');
if (figures.length < 1) return;
var reduced = window.matchMedia &&
window.matchMedia('(prefers-reduced-motion: reduce)').matches;
/* Reduced-motion: pause every <video> on its first frame, freeze
the iframe parameters, skip the rotator. The image-only fallback
on the active figure stays visible — that's the user's poster. */
if (reduced) {
media.querySelectorAll('video').forEach(function (v) {
v.removeAttribute('autoplay');
v.removeAttribute('loop');
try { v.pause(); v.currentTime = 0; } catch (e) {}
});
return;
}
if (figures.length < 2) return;
var idx = 0;
setInterval(function () {
figures[idx].setAttribute('data-active', 'false');
figures[idx].setAttribute('aria-hidden', 'true');
figures[idx].setAttribute('inert', '');
idx = (idx + 1) % figures.length;
figures[idx].setAttribute('data-active', 'true');
figures[idx].setAttribute('aria-hidden', 'false');
figures[idx].removeAttribute('inert');
}, 6500);
})();
</script>