Closed mssiegel closed 5 months ago
This is less an issue with our implementation and more a problem with Next.js Image component... here are several links detailing the issue and various solutions.
https://www.peterlunch.com/snippets/next-image-styling https://github.com/vercel/next.js/discussions/18312 https://upmostly.com/next-js/how-to-style-images-in-next-js https://meje.dev/blog/styling-nextjs-image-component https://stackoverflow.com/questions/65527407/next-image-not-taking-class-properties
Options in summary:
<img />
Image
Component and target the next/image wrappers using nested selectors/next/future/image
Thanks @zachlankton!! Those links and summary are very well detailed! The option to upgrade/migrate to Next.js 13 is the best option in my eyes. Its always good to upgrade to the latest versions of the frameworks we use so we become better prepared for any future changes. Documentation for the Next.js 13 Image component: https://nextjs.org/blog/next-13#nextimage
Our Homepage uses
<Image/>
components to display a screenshot of the Students Chat and also a screenshot of the Teachers Page. However, our implementation of the<Image/>
components on our Homepage isn't easily editable. Some examples:We should make sure we're correctly implementing the
<Image/>
component according to its documentation.