Skip to content

james-frontend-mentor-projects/ecommerce-product-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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

Note: Delete this note and update the table of contents based on what sections you keep.

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

Screenshots

Desktop screenshot

Screenshot of desktop view

Desktop screenshot with cart open

Screenshot of desktop view with cart open

Mobile screenshot

Screenshot of mobile view

Mobile screenshot with cart open

Screenshot of mobile view with cart open

Links

My process

Built with

What I learned

This was my first time using Tailwind for a full project, which was exciting. I still rely heavily on the docs but I've found my development speed vastly increase as I was building this project.

Starting mobile-first was key when building with Tailwind - it avoided me having to write a whole bunch of bodgey workarounds down the line. Tailwind's JIT compiler and purge options made re-compiling my code very fast (before I discovered this I was waiting a couple of seconds with every save before being able to see my progress in the browser 😳).

Continued development

I've been documenting known bugs in my Issues tab - if you find any others please feel free to raise a new Issue on there! Going forward I'd like to address these bugs and optimise my Tailwind class usage (I've still got a lot of reused code and as a React fanboy I like my reuseable components...).

Useful resources

Author