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.
Note: Delete this note and update the table of contents based on what sections you keep.
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
- Solution URL: https://github.com/james-work-account/ecommerce-product-page
- Live Site URL: https://ecommerce-product-page.vercel.app/
- Semantic HTML5 markup
- CSS custom properties
- Tailwind CSS
- Deployed with Vercel
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 😳).
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...).
- Tailwind docs - The "Quick search for anything" feature basically saved me in this project.
- nekoCalc's PX to REM converter - for converting the Figma file's px values into rem units to use with Tailwind classes.
- I'm in a band
- Frontend Mentor - @james-work-account