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-commerece 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) of by the thumb images below the main image (only screens with >= 992px).

  • The items in the cart are being stored in the user's browsers, 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