pennapps / pennapps.com

The PennApps Main Website
https://pennapps.com
1 stars 0 forks source link

Need to use Gatsby plugins and GraphQL to load images into the index page rather than importing them as components #26

Closed MechaJoe closed 1 year ago

MechaJoe commented 2 years ago

Currently, we import all the Exec board's pictures into the index page as components (in a sort-of-jank way). Gatsby, however, has a better way to import a bunch of images (and import them quickly).

Ideally, we want a way to import images such that:

See the docs on how to import images the Gatsby way. The DynamicImage component is probably the key, though you'll probably want to get familiar with the basics of GraphQL and Gatsby first.