Product Preview Card Component

Solution retrospective
I had some challenges with setting different sources for <img/> in different screen sizes. I searched a little and I used <picture> element to reach the goal. Additionally, I found out that @font-face only works with actual .woff or .ttf font files. So, when you want to link a font file to your project with its url, you must use <link> in the html file
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Shakiba'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