diff --git a/_includes/community_spotlight.html b/_includes/community_spotlight.html new file mode 100644 index 0000000000..6e07ba8632 --- /dev/null +++ b/_includes/community_spotlight.html @@ -0,0 +1,24 @@ + + +
+ {% 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 = 12 %} + +
+ {% 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 %} +
+
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). diff --git a/content/index.html b/content/index.html index 063b1b4b0a..2f8b4838a5 100644 --- a/content/index.html +++ b/content/index.html @@ -60,7 +60,7 @@

Latest news

Loading latest news...

- +