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.
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://www.frontendmentor.io/solutions/ecommerce-product-page-htmlcsssass-splidejs-js-6Fgk70OarO
- Live Site URL: https://p4bloxx.github.io/E-commerce-product-page/
- Semantic HTML5 markup
- CSS custom properties
- CSS Flexbox
- Mobile-first workflow
- Sass (Preprocessor) for CSS [https://sass-lang.com/]
- Splide (for slider) [https://splidejs.com/]
- SCSS syntax
- SASS variables
- Javascript
In this challenge I learned to manage some interesting components, such as a slider (different between the mobile and tablet/desktop version) and a lightbox within a dialog.
for the photo slider I used a dedicated JS library, which was a little easier to implement to customize it according to the specific design required, but overall everything worked out quite well.
I will always continue on this path, on the one hand different and increasingly complicated challenges regarding design, on the other hand learning to manage different JS scenarios in order to be able to create the different situations proposed more manually ;)