Skip to content

Commit 482513d

Browse files
committed
add files
1 parent fc1de42 commit 482513d

6 files changed

Lines changed: 112 additions & 15 deletions

File tree

_includes/header.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
<header class="site-header">
2-
<div class="site-notice" role="region" aria-label="Main lab site">
3-
<div class="container">
4-
<p class="site-notice-text">
5-
For datasets, rankings, videos, and the full archive, visit
6-
<a href="{{ site.main_site.url }}" target="_blank" rel="noopener">{{ site.main_site.name }}</a>.
7-
</p>
8-
</div>
9-
</div>
102
<div class="container">
113
<nav class="nav">
124
<a href="{{ '/' | relative_url }}" class="nav-logo">

_layouts/default.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
{% include footer.html %}
1515

16+
<!-- Lightbox (used by gallery + homepage case studies) -->
17+
<div class="lightbox" id="lightbox">
18+
<button class="lightbox-close" type="button" aria-label="Close">&times;</button>
19+
<img src="" alt="">
20+
</div>
21+
1622
<script src="{{ '/assets/js/main.js' | relative_url }}"></script>
1723
</body>
1824
</html>

_sass/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ html {
8181
-webkit-font-smoothing: antialiased;
8282
-moz-osx-font-smoothing: grayscale;
8383
scroll-behavior: smooth;
84-
scroll-padding-top: var(--site-header-height, 88px);
84+
scroll-padding-top: var(--site-header-height, 64px);
8585
}
8686

8787
body {

_sass/_components.scss

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,61 @@ button.tag {
677677
pointer-events: none;
678678
}
679679

680+
// Visual case studies (Home)
681+
.case-studies-title {
682+
display: inline-block;
683+
padding: 12px 18px;
684+
border: 1px solid var(--c-border);
685+
background: rgba(var(--c-surface-rgb), 0.72);
686+
box-shadow: $shadow-sm;
687+
}
688+
689+
.case-studies-grid {
690+
display: grid;
691+
gap: $space-4;
692+
grid-template-columns: repeat(2, minmax(0, 1fr));
693+
694+
@media (max-width: $breakpoint-lg) {
695+
grid-template-columns: 1fr;
696+
}
697+
}
698+
699+
.case-study__header {
700+
display: flex;
701+
align-items: flex-start;
702+
justify-content: space-between;
703+
gap: $space-2;
704+
margin-bottom: $space-2;
705+
}
706+
707+
.case-study__title {
708+
margin: 0;
709+
font-family: $font-mono;
710+
font-size: $font-size-h4;
711+
letter-spacing: 0.08em;
712+
text-transform: uppercase;
713+
}
714+
715+
.case-study__links {
716+
display: flex;
717+
flex-wrap: wrap;
718+
gap: $space-1;
719+
justify-content: flex-end;
720+
}
721+
722+
.case-study__caption {
723+
margin: 0 0 $space-3;
724+
color: $color-gray-600;
725+
font-size: $font-size-small;
726+
line-height: $line-height-relaxed;
727+
}
728+
729+
.case-study__grid {
730+
display: grid;
731+
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
732+
gap: 10px;
733+
}
734+
680735
// Lightbox
681736
.lightbox {
682737
position: fixed;

gallery.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,3 @@ description: Visual showcase of research outputs from the AI & Global Developmen
116116
<p class="animate-on-scroll">Images from our research are available for academic and educational use with attribution. For high-resolution versions or media inquiries, please <a href="{{ '/contact/' | relative_url }}">contact us</a>.</p>
117117
</div>
118118
</section>
119-
120-
<!-- Lightbox -->
121-
<div class="lightbox" id="lightbox">
122-
<button class="lightbox-close" type="button" aria-label="Close">&times;</button>
123-
<img src="" alt="">
124-
</div>

index.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,56 @@ title: Home
4040
</div>
4141
</section>
4242

43+
<section class="section section-gray case-studies-section">
44+
<div class="container">
45+
<h2 class="section-title text-center animate-on-scroll case-studies-title">Visual Case Studies</h2>
46+
<p class="text-center text-muted animate-on-scroll">Figure-first summaries from our papers. Click any tile to zoom.</p>
47+
48+
{% assign case_studies = site.data.gallery_batteries %}
49+
50+
<div class="case-studies-grid mt-6 animate-stagger">
51+
{% for battery in case_studies %}
52+
{% assign lead_panel = battery.panels | first %}
53+
<article class="case-study card card-glass animate-on-scroll">
54+
<header class="case-study__header">
55+
<h3 class="case-study__title">{{ battery.title }}</h3>
56+
<div class="case-study__links">
57+
<a class="tag" href="{{ battery.href }}" target="_blank" rel="noopener">Paper</a>
58+
<a class="tag" href="{{ '/gallery/' | relative_url }}#{{ battery.id }}">Gallery</a>
59+
</div>
60+
</header>
61+
62+
{% if lead_panel and lead_panel.alt %}
63+
<p class="case-study__caption">{{ lead_panel.alt | truncate: 160 }}</p>
64+
{% endif %}
65+
66+
<div class="case-study__grid" aria-label="Case study panels: {{ battery.title }}">
67+
{% for panel in battery.panels | slice: 0, 4 %}
68+
<button class="figure-tile" type="button" data-lightbox aria-label="Open full-size image: {{ battery.title }} — {{ panel.label }}">
69+
<picture class="figure-tile__media">
70+
{% if panel.dark %}
71+
<source srcset="{{ panel.dark | relative_url }}" media="(prefers-color-scheme: dark)">
72+
{% endif %}
73+
<img
74+
src="{{ panel.light | relative_url }}"
75+
alt="{{ panel.alt }}"
76+
class="figure-tile__img{% if panel.invert_dark %} figure-tile__img--invert-dark{% endif %}"
77+
loading="lazy" />
78+
</picture>
79+
<span class="figure-tile__label">{{ panel.label }}</span>
80+
</button>
81+
{% endfor %}
82+
</div>
83+
</article>
84+
{% endfor %}
85+
</div>
86+
87+
<div class="mt-6 text-center animate-on-scroll">
88+
<a href="{{ '/gallery/' | relative_url }}" class="link-arrow">Browse all figure batteries</a>
89+
</div>
90+
</div>
91+
</section>
92+
4393
<section class="section">
4494
<div class="container">
4595
<h2 class="section-title animate-on-scroll">Lab Sites</h2>

0 commit comments

Comments
 (0)