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

Import Winners Carousel Images Dynamically #468

Open
hannahkendall04 opened this issue Jan 24, 2025 · 0 comments
Open

Import Winners Carousel Images Dynamically #468

hannahkendall04 opened this issue Jan 24, 2025 · 0 comments
Labels
gallery The gallery page

Comments

@hannahkendall04
Copy link
Collaborator

Currently, in the Winners Photo Carousel on the Gallery page, all of the photos are imported statically. I believe it should be possible to use the year prop that is passed to the component to dynamically import the images inside the Gallery/PhotoCarousel function. This would make the Carousel easier to update in future years, as it would not require static imports of every winners image, and it would make the file less cluttered.

As a starting point, refer to the dynamic import of the Winner's project image in the Winner.jsx file.

@hannahkendall04 hannahkendall04 added the gallery The gallery page label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gallery The gallery page
Projects
None yet
Development

No branches or pull requests

1 participant