/E-commerce-product-page

An e-commerce product webpage builted according to Frontend mentor challenge. Mobile first workflow, responsive, HTML - CSS & JS.

Primary LanguageCSS

Frontend Mentor - E-commerce product page solution

desktop-preview

This is a solution to the E-commerce product page challenge on Frontend Mentor.

Table of contents 📜

Overview

The challenge 🎯

The challenge was to build a responsive e-commerce product web page for mobile and desktop devices, following the design files and trying to keep as close as possible to them.

The 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 ✔️

About the app built

It's an e-commerce product web page, you can add the item (autumn sneakers) to the cart how many times you want, see all the images about the product by clicking on the arrow buttons (mobile & lightbox opened) or by the thumb images below the main image (only screens with >= 992px).

  • The items in the cart are being stored in the user's browser, in session storage, which means they will only be available while the browser section is opened

🛠️ How to run the project

  • You can download or clone the project, once you have the files you'll need a server to run the application. You can use the live server from visual studio code, for example. The main file is the index.html
  • You can access the live site

Screenshots - Mobile 📱

Design

App built

Home screen

Home screen

Cart empty

Cart empty

Cart filled

Cart filled

Menu opened

Menu opened

Screenshots - Desktop 🖥️

Home screen design

Home screen app built

Cart empty design

Cart empty app built

Cart filled design

Cart filled app built

Lightbox opened design

Lightbox opened app built

Built with

  • Semantic HTML5 markup
  • CSS & JS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Session storage