This is my solution to the Product preview card component challenge on Frontend Mentor. It is my third Frontend Mentor challenge! Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Challenge Level: 1 -> Newbie 🟢
🕒 Estimated time: 3h
🕑 Time taken: 2h
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover and focus states for interactive elements
Here is a screenshot of my solution:
- Link to the solution: Product card challenge
- Live Site URL: See solution on my live site
- HTML
- CSS
- JavaScript
- React - JS library
It was pretty similar to the QR code challenge (my first challenge), except that this challenge had to be responsive. So it was nice to review how to use media queries again. It is funny that I used text-decoration: line-through;
for the first time because I`d never had to use it before :) I had to use it here to cross out the old price in the Product Card.
Also, this time I finished the project one hour earlier than expected because I had nearly no problems, unlike my last project where I had some troubles with the JSON file icons.
- Frontend Mentor - @Orchi1904
- LinkedIn - Alexej Kunz