Skip to content

Orchi1904/FrontendMentor3-ProductCard

Repository files navigation

Frontend Mentor - Product preview card component solution

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

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover and focus states for interactive elements

Screenshot

Here is a screenshot of my solution:

Links

My process

Built with

  • HTML
  • CSS
  • JavaScript
  • React - JS library

What I learned

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.

Author