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.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- View the optimal layout depending on their device's screen size
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- I started with the mobile design first. I tested out the layout using divs with background colors first.
- I then inserted the content into the divs. I used CSS Grid for the image and text containers so that they resized accordingly with the screen size.
- I then started working on the desktop design. Using Grid made it easy to change the layout of the containers. I still had to go back and forth a few times to get the spacing of items correct.
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Mobile-first workflow
- It was my first time trying out mobile-first workflow. I gained a lot of experience from this and understood the importance of media queries.
- I also gained experience in using CSS Grid.
- I learnt about using background images more.
- Frontend Mentor - @riverCodes
Thanks to frontend mentor as always.