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

Work card images #13

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

WDaven
Copy link

@WDaven WDaven commented Nov 10, 2022

Hopefully a better formatted pull request. I added images to work-cards that toggles on if the user has entered them in the config. It does require more configuration to enable vs the default one. I added one package to create this feature, react-bootstrap. For an example of a config you can checkout the dormguide card section in my fork. But basically the format would be:
images: [
dormguide1.src,
dormguide2.src,
dormguide3.src,
dormguide4.src,
dormguide5.src,
dormguide6.src,
],
It does require a little more manual import than the original.
One minor bug is that image cards can be significantly taller (does have a max-height) than text only cards and cause the whole row to be taller. Looks best if images on a separate row.

Preview: wesleydavenport.dev

@hashirshoaeb hashirshoaeb linked an issue Nov 14, 2022 that may be closed by this pull request
@hashirshoaeb
Copy link
Owner

Thanks for the PR. I just want to add thumbnail. Not the modal. Can you remove the code you have added for modal? including react-bootstrap?

Not finished yet, still need to add masonry layout
@WDaven
Copy link
Author

WDaven commented Nov 14, 2022

I still need to fix the grid layout. Not ready yet.

@WDaven
Copy link
Author

WDaven commented Nov 14, 2022

Should be cleaned up, and ready to pull now.

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.

Add Preview thumbnails to projects cards
2 participants