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.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- See hover states for interactive elements
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
The Order Summary Component challenge ended up being a pretty straightforward challenge. There were a couple of aspects I had to think on and that was primarily with the background image positioning. Once I got that figured out (see below snippet), I was able to breeze through the rest of the project. I am finding that working in vanilla CSS is very referring back and fourth and I found that this made me make a couple of mistakes. I will stick with using Vanilla CSS a bit more just so I can demonstrate that I’m not reliant on Sass, but honestly who wouldn’t use Sass!
body {
background: var(--body-bg) var(--body-bg-img) repeat-x top / contain;
}
- GitHub - @frontendstu
- Frontend Mentor - @frontendstu