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
The challenge
Users should be able to:
- 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
Links
- Solution 1 (desktop only using vannilajs): here
- Solution 2 (React full version): here
My process
Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Javascript
- React
What I learned
This was the prject that I’ve learned lot doing it until now bulding this project i learned:
- How to make lightboxes
- Cool hover effects
- How to make my own inputs
- How to work with svgs and fontawesome
- How to conditionally render components based on viewport
- First React Project on frontendmentor
Author