Skip to content

A Kohl's website clone using React and Chakra UI. Features include user authentication, dynamic routing, real-time password feedback, and cart functionality. It simulates the backend with JSON Server. Clone the repo, install dependencies, start the server, and run the app.

Notifications You must be signed in to change notification settings

shivanipandey5678/Khol-s-website

Repository files navigation

Kohl's Website Clone

This project is a clone of Kohl's website, built using modern web technologies. The application showcases various functionalities including product browsing, adding items to the cart, user authentication, and more.

Tech Stack

  • Frontend: React
  • CSS Framework: Chakra UI
  • HTTP Client: Axios
  • State Management and Storage: LocalStorage
  • Backend: JSON Server (deployed)

Features

  • User Authentication: Sign-in functionality with real-time feedback on password input.
    • Password requirements are enforced and feedback is provided in real time (e.g., red color turns green and cross converts to tick when requirements are met).
  • Routing: Page navigation is handled using React Router DOM.
    • Different pages for Men, Women, Shoes, Kids, Home Shopping.
    • A detailed product page is accessible via the "View Detail" button.
  • Loading and Error Indicators:
    • A loading indicator is displayed while fetching data.
    • Alerts are shown on errors.
  • Cart Functionality:
    • Items can be added to the cart from the product detail page.
    • The cart displays different UI states for empty and non-empty states.
    • Items can be deleted from the cart, and the user is navigated back to the home page.
  • JSON Server: The backend is simulated using JSON Server, which is deployed and accessible.

How to Run the Project

  1. Clone the repository:

    git clone https://github.com/your-username/kohls-clone.git
    cd kohls-clone
  2. Install dependencies:

    npm install
  3. Start the JSON Server:

    json-server --watch db.json --port 5000
  4. Run the React application:

    npm start

Screenshots

Homepage

Homepage

Product Detail Page

Dropdown

Cart - Empty State

Womenpage

Cart - With Items

footer

Men Page

Home Shopping page

Women Page

Womenpage Cards

Shoes Page

Product detail

Sign-in Page

SignUp page

Home Shopping Page

Deleting product from card

Cart - Empty State

empty card ui

slider

slider

Pages

  • Home Page: Provides an overview but is not the main highlight.
  • Men's Page
  • Women's Page
  • Shoes Page
  • Kids' Page
  • Home Shopping Page

Each page features products specific to the category, and users can navigate to detailed product views.

Deployment

The JSON Server is deployed and the React application can be run locally. Follow the steps in "How to Run the Project" to get started.

Additional Information

  • LocalStorage is used for state persistence.
  • Axios is used for making HTTP requests to the JSON Server.
  • Chakra UI provides a responsive and accessible UI framework.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License.

About

A Kohl's website clone using React and Chakra UI. Features include user authentication, dynamic routing, real-time password feedback, and cart functionality. It simulates the backend with JSON Server. Clone the repo, install dependencies, start the server, and run the app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published