Product Preview Card Component

Solution retrospective
I am proud I finally completed this challenge completing this challenge. It had me for days.
What challenges did you encounter, and how did you overcome them?I found it difficult to display either the desktop image or mobile image based on the viewport width. I initially used state and the useEffect hook in next js but it didn't entirely solve the problem. I also tried the css ::after pseudoclass and that also brought about new issues. I later found out about the html picture element which was just suitable to solve this.
What specific areas of your project would you like help with?I will learn more about how the html picture element is used and best practices.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Eugene Amedior's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord