Skip to content

usiemeblessing/product-preview-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Product preview card component solution

This is a solution to the Product preview card component challenge on Frontend Mentor.

Table of contents

Overview

The challenge

The challenge was to build a responsive product preview card component based on the provided design. Users should be able to view the layout correctly on mobile and desktop screen sizes and see a hover or active state on the “Add to Cart” button. The goal was to use clean, semantic HTML and modern CSS techniques to closely match the design and ensure accessibility.

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

Desktop view

Mobile view

Links

My process

I began by building the HTML structure with semantic tags, then styled the layout using CSS and Flexbox. I followed a mobile-first approach and used media queries to make the design responsive. I aimed to match the original design closely while keeping the code clean and accessible.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

  • I learnt how to position elements wherever i want on the page using the position property and offset properties
  • I also improved my attention to detail, especially in spacing, typography, and color use.

Continued development

I would love to improve greatly on my knowledge and application of media queries, positioning and use of maximum and minimum values.

Author

About

A challenge to build a responsive product preview card component based on the provided design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors