lcrojano / Giphy_Explorer

Search any gif from Giphy API
https://lcrojano.github.io/Giphy_Explorer/
MIT License
10 stars 37 forks source link

Fixed the remove from favourites issue #84

Closed AdityaGahukar closed 1 month ago

AdityaGahukar commented 1 month ago

Fixes #83

Summary

This PR addresses the following issues and implements several key features for the Giphy Explorer project:

Changes Made

  1. Modal Close Button:

    • Fixed the close button functionality by adding an event listener that removes the modal from view when the button is clicked.
  2. File Upload Handling:

    • Implemented an event listener that allows users to upload GIF files.
    • Restricted the file type to only accept .gif images.
  3. Favorites Management:

    • Added functionality to remove GIFs from favorites, both in the modal and the main list.

How to Test

  1. GIF Upload:

    • Click on the "Upload GIF" button and choose a .gif file from your system.
    • Ensure that non-GIF files are rejected.
  2. Sharing and Removing GIFs:

    • Click on a GIF to open the modal.
    • Test the share buttons for Facebook, Twitter, and Pinterest.
    • Test the "Copy Link" button and ensure the URL is copied.
    • Click on "Remove" to remove the GIF from your favorites list.
  3. Close Button:

    • Open the modal by clicking on a GIF and close it using the cross button (top-right corner).

Let me know if you'd like to see any further changes, or if you encounter any issues while testing this PR.