Skip to content

My solution for the Frontend Mentor Challenge Ecommerce Product Page built with React

Notifications You must be signed in to change notification settings

basitkorai/ecommerce-product-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • 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

Links

My process

Built with

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

What I learned

Whenever you're using images or any asset in your React app, be sure to import them or else your application will break in production mode.

import avatar from './src/assets/images/avatar.jpg'

<img src={avatar} alt="avatar">

Custom Features

  1. Automatic Dark Mode
  2. Sticky navbar on mobile

Continued development

[] - Notifications on performing actions

Useful resources

Author

Acknowledgments

I truly want to thank John Smilga for his free courses that have been teaching me web development.

About

My solution for the Frontend Mentor Challenge Ecommerce Product Page built with React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published