Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

E-commerce product page with ReactJs(ViteJS)

react, redux, tailwind-css
Javid Ismayıl•120
@thejavidev
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Detailed Description:

This sophisticated shopping cart application has been meticulously crafted using cutting-edge technologies such as React, ViteJS, Tailwind CSS, and Redux Toolkit. It offers a comprehensive set of features that empower users to efficiently manage their online shopping experience.

User-Friendly Interface: The application boasts an intuitive and user-friendly interface designed to enhance the overall shopping experience. Users can effortlessly navigate through the catalog of products and interact with the cart.

Add to Cart Functionality: One of the core functionalities is the "Add to Cart" feature. When a user selects a product and clicks the dedicated button, the chosen item is seamlessly added to their shopping cart. The current count of items in the cart is dynamically displayed within a designated span element, ensuring users have immediate visibility into their selections.

Persistent Cart Data: The application takes advantage of local storage to persistently store the contents of the shopping cart. This means that even if a user refreshes the page or returns to the website at a later time, their cart contents remain intact, providing a seamless and convenient shopping experience.

Remove from Cart: Users have the flexibility to remove items from their cart with ease. When a product is removed, both the cart's visual representation and the local storage data are promptly updated to reflect the change.

Real-Time Notifications: To enhance user interaction and feedback, the application includes a real-time notification system. When a product is successfully added to the cart, a non-intrusive notification message appears, informing the user that their selection has been added. This feature adds a delightful touch to the shopping journey.

Technology Stack: The application leverages React for building a dynamic and responsive user interface. ViteJS, a next-generation build tool, ensures speedy development and performance optimization. Tailwind CSS provides a flexible and customizable styling framework, resulting in a visually appealing design. Redux Toolkit is employed for state management, enabling efficient data flow and cart manipulation.

In summary, this shopping cart application is a testament to modern web development practices, offering a feature-rich, responsive, and user-centric platform for online shopping. Users can seamlessly explore products, add and remove items from their cart, receive real-time feedback, and enjoy a persistent shopping experience—all thanks to the integration of state-of-the-art technologies.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Javid Ismayıl's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.