Frontend Mentor - E-commerce product page solution

This is a solution to the E-commerce product page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

This is a product page that can be used in ecommerces, it's builted on React JS and i made some use of styled components that i having learning on react native.

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Open a lightbox gallery by clicking on the large product image
  • Switch the large product image by clicking on the small thumbnail images
  • Add items to the cart
  • View the cart and remove items from it

Screenshot

desktop

mobile

Links

My process

So, i first started by the concept of mobile first, it helps a lot to the responsives states. Besides that, i worked on the general components, and its inviduals. Applying some functionalities and worrying about the relation of components. It really can be improve more, if i have to do this project again, i will do diferent, but it really helps a lot to improve my skills

Built with

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

What I learned

I had the oportunity to improve more how to work the styled-components, that i have learning on react native course. More than that, i can improve more how to work the interactive elements on react

Author