-
-
Notifications
You must be signed in to change notification settings - Fork 135
Add a community spotlight to the community page #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MakisH
merged 12 commits into
precice:master
from
AmazingDude:gsoc-entry-community-spotlight
Mar 14, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e008e5d
feat: add modular community spotlight component for GSoC entry test
AmazingDude 02623cd
Merge branch 'master' into gsoc-entry-community-spotlight
AmazingDude 8b4c0a3
refactor: relocate contributor preview, externalize CSS, update class…
AmazingDude 3f34e5b
fix: remove leftover contributor preview from landing page
AmazingDude 515bdb9
Merge branch 'gsoc-entry-community-spotlight' of https://github.com/A…
AmazingDude 9d6f514
Merge branch 'master' into gsoc-entry-community-spotlight
MakisH c23fba1
Remove unrelated changes
MakisH 97fcccd
Increase the number of avatars allowed
MakisH ca3b19f
Remove deleted github profile gilbertolem
MakisH 4cafdd1
Reorder community_spotlight and text
MakisH 342c987
Move CSS file
MakisH 14687ec
Fix markdown-lint issues
MakisH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <link rel="stylesheet" href="{{ '/css/community-spotlight.css' | relative_url }}"> | ||
|
|
||
| <div class="contributor-preview-container"> | ||
| {% 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 = 99 %} | ||
|
|
||
| <div class="contributor-preview-grid"> | ||
| {% 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 %} | ||
| <a href="https://github.com/{{ person.github }}" target="_blank" rel="noopener noreferrer" title="{{ person.fullname }}"> | ||
| <img class="contributor-preview-avatar" src="https://github.com/{{ person.github }}.png?size=120" alt="{{ person.fullname }}" loading="lazy"> | ||
| </a> | ||
| {% assign shown_githubs = shown_githubs | append: person.github | append: ',' %} | ||
| {% assign avatar_count = avatar_count | plus: 1 %} | ||
| {% endif %} | ||
| {% endfor %} | ||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.