Skip to content
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

feat: improved cards for bodies, companies, and jobs #1934

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

tomudding
Copy link
Member

Description

Started out as a rewrite for the broken cards used to display BM and GMM bodies. I believe I broke their spacing many years ago when refactoring something else, but I never had the need to fix it (as people stopped complaining).

The cards for companies always worked but looking back at the Sass code, they were just interfering with each other in which the body overview lost.

Cards are now unified and follow the newer Boostrap styling more closely.


Intention was to fix the styling for BM/GMM bodies where the abbreviation of the body was not visible due to the usage of picture with a white(-ish) background. This has been resolved by moving all text back into the body of the card instead of on top of the cover image. Sizing and grid layout are handled through CSS.

If there is no cover image, the GEWIS logo is now shown (similar to how this is done in the Photo module).


Before:
image

After:
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

Started out as a rewrite for the broken cards used to display BM and GMM bodies.
I believe I broke their spacing many years ago when refactoring something else,
but I never had the need to fix it (as people stopped complaining).

The cards for companies always worked but looking back at the Sass code, they
were just interfering with each other in which the body overview lost.

Cards are now unified and follow the newer Boostrap styling more closely.

---

Intention was to fix the styling for BM/GMM bodies where the abbreviation of the
body was not visible due to the usage of picture with a white(-ish) background.
This has been resolved by moving all text back into the body of the card instead
of on top of the cover image. Sizing and grid layout are handled through CSS.

If there is no cover image, the GEWIS logo is now shown (similar to how this is
done in the Photo module).
@tomudding
Copy link
Member Author

This was supposed to be part of GH-1903; however, since that is taking longer than expected, I am moving this forward (note: these changes were never on that branch, only in my head up to a few hours ago).

@tomudding tomudding merged commit d45f10a into GEWIS:main Dec 7, 2024
4 checks passed
github-actions bot added a commit to tomudding/gewisweb that referenced this pull request Dec 7, 2024
Tom Udding: Merge pull request GEWIS#1934 from tomudding/feature/improved-list-cards

feat: improved cards for bodies, companies, and jobs

Co-authored-by: tomudding <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant