Skip to content

Add category filter for organization logos on the landing page#842

Open
Shaurya8425 wants to merge 8 commits intoprecice:masterfrom
Shaurya8425:fix/landing-page-category-filter
Open

Add category filter for organization logos on the landing page#842
Shaurya8425 wants to merge 8 commits intoprecice:masterfrom
Shaurya8425:fix/landing-page-category-filter

Conversation

@Shaurya8425
Copy link
Copy Markdown

@Shaurya8425 Shaurya8425 commented Mar 9, 2026

What

Add category filter buttons (All/Academic/Research/Industry) to the
organization logos section on the landing page.

Why

Makes it easier for visitors to find organizations by type.

Changes

  • Add filter buttons (All/Academic/Research/Industry)
  • Add category metadata to logowall.yml
  • Implement client-side filtering with landing-page.js
  • Style filter buttons with hover and active states

@Shaurya8425 Shaurya8425 force-pushed the fix/landing-page-category-filter branch from 2fe2eeb to 303e8a8 Compare March 9, 2026 19:07
@hanzalahwaheed
Copy link
Copy Markdown
Contributor

@Shaurya8425
hey! if this PR has a change in UI, please add the screenshots as well. a video demo would be even better!

thanks!

@Shaurya8425
Copy link
Copy Markdown
Author

@hanzalahwaheed
I've attached screenshots/video highlighting the changes!!
Video: https://drive.google.com/file/d/1DLFwagc-YwCNHnRoeP9zFGcOwB1QJIHG/view?usp=sharing
Screenshots ⬇️:
Screenshot_10-3-2026_1071_127 0 0 1
Screenshot_10-3-2026_10649_127 0 0 1
Screenshot_10-3-2026_10636_127 0 0 1
Screenshot_10-3-2026_10622_127 0 0 1

@smackcodernight
Copy link
Copy Markdown

pure llm coded poor code pls do as less code changes so it will be helpful for maintainers

@Shaurya8425 Shaurya8425 force-pushed the fix/landing-page-category-filter branch from 303e8a8 to a24f022 Compare March 10, 2026 07:02
@Shaurya8425
Copy link
Copy Markdown
Author

@smackcodernight Thanks for the feedback! I've updated the PR with minimal manual changes — only adding the category field to each entry in logowall.yml and the necessary JS/CSS for the filter. The diff should be much cleaner now.

@pratapsisodiya
Copy link
Copy Markdown
Contributor

@Shaurya8425 The feature looks good. One suggestion: when a field is selected, it could move to the top instead of just being hidden. Also, the selected org logos could appear one after another

@Shaurya8425 Shaurya8425 force-pushed the fix/landing-page-category-filter branch from ce02cfc to a61ff89 Compare March 11, 2026 06:36
@Shaurya8425
Copy link
Copy Markdown
Author

@praaatap Thanks for the suggestions! I’ve pushed the reordering to the top. Kept out stagger animation to stay consistent with the minimal style of the site - happy to add if u think it fits!”

@Shaurya8425 Shaurya8425 force-pushed the fix/landing-page-category-filter branch 2 times, most recently from 655a029 to a36bf90 Compare March 12, 2026 18:01
- Add filter buttons (All/Academic/Research/Industry)
- Add category metadata to logowall.yml
- Implement client-side filtering with landing-page.js
- Style filter buttons with hover and active states
@Shaurya8425 Shaurya8425 force-pushed the fix/landing-page-category-filter branch from a36bf90 to aec5fdd Compare March 12, 2026 18:19
@MakisH MakisH added GSoC Contributed in the context of the Google Summer of Code technical Technical issues on the website labels Mar 13, 2026
@precice-bot
Copy link
Copy Markdown
Contributor

This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/introduction-shaurya-yadav/2832/1

Copy link
Copy Markdown
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing, @Shaurya8425. This is a nice idea! I thought I could directly fix a few issues, and I pushed a few commits, but this still has issues in narrow screens: the logos overlap, and the button at the bottom has no margin from the left, even though it is still inside a container and section, as other parts of the page.

In the current version, each row just gets fewer elements. Why do you need the new logowall-grid class? If you can reuse the same classes as before, there would be no issue.

Image Image

Are you still up for following up on this PR?

@MakisH MakisH changed the title feat(landing-page): add category filter for organization logos Add category filter for organization logos on the landing page May 5, 2026
@Shaurya8425
Copy link
Copy Markdown
Author

Shaurya8425 commented May 8, 2026

Thank you for acknowledging @MakisH. I've pushed changes as per your comment. I'm also attaching a video addressing good responsiveness in smaller screens.
I had to use custom class to achiever reshuffling, to maintain 8/4 per rows logo in desktop/mobile view.
Yeah I'm still following this PR.

Screen.Recording.2026-05-08.220409.mp4

Copy link
Copy Markdown
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, @Shaurya8425! Looks already closer to the current version.

There are still a few unrelated/unmotivated changes, see my inline comments. Overall, I would prefer that this PR only adds what it needs for the feature to work, not change which other classes the code uses (at least not without a clear need to do so).

Comment thread content/index.html
<div class="col-md-3 col-sm-3 col-xs-3 text-center"> <!-- vertical-align -->
<a href="{{logo.link}}" class="logo no-icon">
<div class="logo-holder vertical-align "> <!-- center-block -->
<img class="img-responsive center-block" src="images/logo/{{logo.logo}}" alt="{{logo.name}}, {{logo.country}}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the center-block class?

Comment thread content/index.html
{% for column in row.columns %}
<div class="col-md-6 col-xs-12 no-padding">
{% for logo in column.logos %}
<div class="col-md-3 col-sm-3 col-xs-3 text-center"> <!-- vertical-align -->
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the text-center class?

Comment thread content/index.html

<div class="row logowall-grid">
{% for row in logowall %}
<div class="row no-margin">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the no-margin class?

Comment thread content/index.html
{% for row in logowall %}
<div class="row no-margin">
{% for column in row.columns %}
<div class="col-md-6 col-xs-12 no-padding">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this div layer?

@Shaurya8425
Copy link
Copy Markdown
Author

Hey @MakisH, the answer to most of the changes for which you have left the comments is because they were making the text smudged on choosing smaller screen devices. It's quite visible in production.
Screenshot 2026-05-09 190616

When they're left aligned, given no margin as per the new changes. It doesn't cause such issue.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSoC Contributed in the context of the Google Summer of Code technical Technical issues on the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants