ecommerce-product-page
eCommerce
CSS
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:
- 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 (I don’t do it, sorry).
- 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
- Solution URL: You are here right now!
- Live Site URL: Do you wanna see more? Click Me!
My process
Built with
- Semantic HTML5 markup
- Pure CSS
- Flexbox
- CSS Grid
- Vanilla JavaScript
- Mobile-first workflow
- Normalize.css – For reset styles
What I learned
I learned so much how to simplify my class names for CSS with the BEM Methodology and forced myself to hard work with JS in things like Menus and the Carousel, until i met the Data-Attributes, that helped me so much to do it.
In this project i made some changes to the original one, improvements from my point of view, like some size changes in the design, i’m really proud of that and my CSS skills.
To see how you can add code snippets, see below:
you can see the tutorial for this thing Clicking Here