This is a solution to the Order summary card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See hover states for interactive elements
- Solution URL: GitHub
- Live Site URL: Order Summary Component
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
Through this challenge, I was able to learn the following:
- When to use anchors vs buttons
- Media queries
- How to add background images
This challenge was also very helpful in understanding how Flexbox works. I was also able to use it in this challenge to add spacing between flex items using the gap
property instead of adding margins to individual components.
For future challenges, I'd like to be able to learn and utilize the following:
- Use of
clamp()
- Follow better CSS naming conventions (ex. BEM)
A lot of community members recommended watching videos by Kevin Powell, and for this challenge the following proved to be very useful:
- "Learn flexbox the easy way" - This was a really good introduction to Flexbox, its behavior and properties and the different scenarios on how to use it
- "You can do that with margins?"" - While not Flexbox-related, this helped me understand the behavior of the
margin
property. I was able to apply themargin-left: auto
property in this challenge
- Frontend Mentor - @mbdelarosa