This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- Solution URL: Github
- Live Site URL: Stats Card
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
I learned about how to use the picture tag in order to change the picture based on screen size. I also learned how to make the image work responsively and not stretch by using the object fit property.
I want to continue working with images that need to change based on screen size because it is currently challenging for me. I also want to improve on writing accessible and semantic code.
- Example resource 1 - This helped me for learn how to use the object fit property.
- Frontend Mentor - @AdamElitzur
- Twitter - @adamcandoit
Tyrell Curry was very helpful in the Slack channel, he helped me with the image and how to change the color. He showed me how to use filters, which did the trick!