Skip to content

Oluwafemi21/sneakers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Tailwindcss Framework

What I learned

Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.

To see how you can add code snippets, see below:

// Checking if a button is active
thumbBtns.forEach(thumb => {
    thumb.addEventListener('click',()=>{
        thumbBtns.forEach(btn => btn.classList.remove('active-thumbnail'));
        thumb.classList.add('active-thumbnail');
    }
}

Useful resources

  • Tailwind CSS - Tailwind Docs. I really like the documentation of the tailwind css framework.

Author

Acknowledgments

Special thanks to my friends who assisted my javascript implementation KeneNwogu and AjukaDavid.

Releases

No releases published

Packages

No packages published