Skip to content

Work card images#13

Open
WDaven wants to merge 9 commits into
hashirshoaeb:mainfrom
WDaven:work-card-images
Open

Work card images#13
WDaven wants to merge 9 commits into
hashirshoaeb:mainfrom
WDaven:work-card-images

Conversation

@WDaven

@WDaven WDaven commented Nov 10, 2022

Copy link
Copy Markdown

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
Copy Markdown
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

WDaven commented Nov 14, 2022

Copy link
Copy Markdown
Author

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

@WDaven

WDaven commented Nov 14, 2022

Copy link
Copy Markdown
Author

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