From e008e5d678efa191b1cc2e7cd24090d5e842f964 Mon Sep 17 00:00:00 2001 From: Rehan Haider Date: Fri, 27 Feb 2026 15:59:22 +0500 Subject: [PATCH 1/3] feat: add modular community spotlight component for GSoC entry test --- _includes/community_spotlight.html | 90 ++++++++++++++++++++++++++++++ content/index.html | 4 +- 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 _includes/community_spotlight.html diff --git a/_includes/community_spotlight.html b/_includes/community_spotlight.html new file mode 100644 index 0000000000..f561a3b907 --- /dev/null +++ b/_includes/community_spotlight.html @@ -0,0 +1,90 @@ + + +
+

Driven by the Community

+

preCICE is developed and maintained by researchers and engineers worldwide.

+ + {% assign core_team = site.data.developer.leads | concat: site.data.developer.main | concat: site.data.developer['main-inactive'] | concat: site.data.developer.contributors %} + {% assign shown_githubs = '' %} + {% assign avatar_count = 0 %} + {% assign max_avatars = 14 %}
+ {% for person in core_team %} + {% if avatar_count >= max_avatars %} + {% break %} + {% endif %} + + {% if person.github and shown_githubs contains person.github %} + {% continue %} + {% endif %} + + {% if person.github %} + + {{ person.fullname }} + + {% assign shown_githubs = shown_githubs | append: person.github | append: ',' %} + {% assign avatar_count = avatar_count | plus: 1 %} + {% endif %} + {% endfor %} +
+ + + Meet all contributors + +
diff --git a/content/index.html b/content/index.html index 063b1b4b0a..228101cfb7 100644 --- a/content/index.html +++ b/content/index.html @@ -60,7 +60,7 @@

Latest news

Loading latest news...

- +
+ +{% include community_spotlight.html %} From 8b4c0a3787c3445dd8bc37f209dd4072a6f38394 Mon Sep 17 00:00:00 2001 From: Rehan Haider Date: Fri, 27 Feb 2026 21:56:22 +0500 Subject: [PATCH 2/3] refactor: relocate contributor preview, externalize CSS, update class names --- _includes/community_spotlight.html | 82 +++--------------------------- assets/css/community-preview.css | 32 ++++++++++++ content/community/community.md | 2 + 3 files changed, 42 insertions(+), 74 deletions(-) create mode 100644 assets/css/community-preview.css diff --git a/_includes/community_spotlight.html b/_includes/community_spotlight.html index f561a3b907..6e07ba8632 100644 --- a/_includes/community_spotlight.html +++ b/_includes/community_spotlight.html @@ -1,90 +1,24 @@ - - -
-

Driven by the Community

-

preCICE is developed and maintained by researchers and engineers worldwide.

+ +
{% assign core_team = site.data.developer.leads | concat: site.data.developer.main | concat: site.data.developer['main-inactive'] | concat: site.data.developer.contributors %} {% assign shown_githubs = '' %} {% assign avatar_count = 0 %} - {% assign max_avatars = 14 %} diff --git a/assets/css/community-preview.css b/assets/css/community-preview.css new file mode 100644 index 0000000000..cea8a6f932 --- /dev/null +++ b/assets/css/community-preview.css @@ -0,0 +1,32 @@ +.contributor-preview-container { + padding: 2rem 0; + text-align: center; +} + +.contributor-preview-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); + gap: 1rem; + max-width: 800px; + margin: 1.5rem auto; + justify-items: center; +} + +.contributor-preview-avatar { + width: 60px; + height: 60px; + border-radius: 50%; + object-fit: cover; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + transition: transform 0.2s ease; + border: 2px solid white; +} + +.contributor-preview-avatar:hover { + transform: scale(1.1); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); +} + +.contributor-preview-grid a::after { + display: none !important; +} diff --git a/content/community/community.md b/content/community/community.md index d340619d90..92ecf8fed3 100644 --- a/content/community/community.md +++ b/content/community/community.md @@ -39,4 +39,6 @@ You can find many more use cases on the [community stories page](community-proje ## Contributions to preCICE +{% include community_spotlight.html %} + Since its first commit in 2008, preCICE has been developed by three generations of doctoral students: look at the [list of active and previous developers](community-contributors.html). Your (small or large) [contributions are welcome](community-contribute-to-precice.html). From 3f34e5b7a720063fa0082e89df8f1eae1f07b23e Mon Sep 17 00:00:00 2001 From: Rehan Haider Date: Fri, 27 Feb 2026 21:58:40 +0500 Subject: [PATCH 3/3] fix: remove leftover contributor preview from landing page --- content/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/index.html b/content/index.html index 228101cfb7..2f8b4838a5 100644 --- a/content/index.html +++ b/content/index.html @@ -583,5 +583,3 @@

How does it look like?

- -{% include community_spotlight.html %}