This is a solution to the Product 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
- See hover and focus states for interactive elements
You'll find a screenshot of the finished project in
- [desktop-screenshot](screenshot/Screenshot 2023-12-27 at 20-49-44 Frontend Mentor Product preview card component.png)
- [mobile-screenshot](screenshot/Screenshot 2023-12-27 at 20-50-06 Frontend Mentor Product preview card component.png)
both mobile and desktop are avalabile they might be a bit heavy as i didn't optimize them X_X
- HTML5 markup
- css3
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- desktop workflow
It was my first time putting my svg (the cart icon) in my css as i always happed to be adding it inline in my html or using fontawsome icons ^ ^ but I can't say much about my html as is only 30 lines of code but you could see the picture tag.
.button[data-icon="trolley"]::before{
content: "";
background-image: url(images/icon-cart.svg);
width: 15px;
height: 16px;
}
- Name - [maryam]
- Frontend Mentor - [@code-inks]
- Find me on github @code-inks
- Telegram [@code_ink]