Skip to content

AbdurRahman-Khalil/cartify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›’ Cartify: Shopping Cart Web App

This is a simple ๐Ÿ›’ Shopping Cart application built using modern web technologies. It allows users to seamlessly add and remove items from their cart. The project demonstrates practical use of Jotai for state management, TailwindCSS for styling, and TailwindCSS Motion for animations.

๐Ÿ› ๏ธ Tech Stack

ReactJS For Dynamic UI for smooth user interaction.

Tailwind CSS For Sleek, responsive, and customizable design.

Jotai For Simple and atomic state management with minimalistic API.

TailwindCSS Motion For Easy and efficient animations with TailwindCSS integration.

๐ŸŒŸ Features

  • Add and remove items from the cart with ease.
  • Fully responsive design for optimal viewing on all devices.
  • Smooth animations for an enhanced user experience.

๐Ÿ›‘ Installation

  1. Clone the repository:

    git clone https://github.com/AbdurRahman-Khalil/cartify.git
  2. Navigate to the project directory:

    cd cartify
  3. Install dependencies:

    npm install

โ–ถ๏ธ Usage

  1. Start the development server:

    npm run dev
  2. Open your browser and go to:

    http://localhost:5173/cartify/
    
  3. Interact with the application by adding or removing items from the cart.

๐Ÿง  State Management with Jotai

Jotai is utilized for managing the global state of the shopping cart. Key aspects include:

  • Cart Items: The list of items in the cart.
  • Item Count: Quantity of an item in the cart and its price based on quantity.
  • Cart Total: The cumulative price of all items in the cart.

๐ŸŽจ Animations with TailwindCSS Motion

Smooth and responsive animations are implemented using TailwindCSS Motion. Examples include:

  • Product Entry Animation: Items smoothly appear when displayed on the product list.
  • Cart Products Enter Animation: Items animate into view when added to the cart.
  • Cart Page Enter Animation: The cart page animates when navigated to.

โœจ Styling with TailwindCSS

TailwindCSS provides utility-based styling, making it easy to build responsive designs. Custom configurations are managed in the tailwind.config.js file.

๐Ÿค Contributing

Contributions are encouraged! Follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Make your changes and commit them:
    git commit -m "Add feature-name"
  4. Push your branch:
    git push origin feature-name
  5. Submit a pull request for review.

๐Ÿ“š Acknowledgments