Frontend Mentor - Product Preview Card Component Solution

This is my solution to the Product Preview Card Component challenge on Frontend Mentor. Frontend Mentor challenges help me improve my coding skills by building realistic projects.

Table of Contents

Overview

The Challenge

The challenge was to create a product preview card component with the following features:

  • Users should be able to view the optimal layout depending on their device's screen size.
  • Users should see hover and focus states for interactive elements.

Screenshot

  • Desktop View Desktop View

  • Mobile View Mobile View

Links

My Process

Built With

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • React - JS library
  • Styled Components - For styles