This PR addresses the following issues and implements several key features for the Giphy Explorer project:
Bug Fix: Fixed the modal close button functionality, which was previously not working. Now, users can properly close the "Share GIF" modal using the cross button.
Feature Addition: Added the ability to upload GIFs directly through the file upload option, and ensured only GIF files are accepted.
Changes Made
Modal Close Button:
Fixed the close button functionality by adding an event listener that removes the modal from view when the button is clicked.
File Upload Handling:
Implemented an event listener that allows users to upload GIF files.
Restricted the file type to only accept .gif images.
Favorites Management:
Added functionality to remove GIFs from favorites, both in the modal and the main list.
How to Test
GIF Upload:
Click on the "Upload GIF" button and choose a .gif file from your system.
Ensure that non-GIF files are rejected.
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.
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.
Fixes #83
Summary
This PR addresses the following issues and implements several key features for the Giphy Explorer project:
Changes Made
Modal Close Button:
File Upload Handling:
.gif
images.Favorites Management:
How to Test
GIF Upload:
.gif
file from your system.Sharing and Removing GIFs:
Close Button:
Let me know if you'd like to see any further changes, or if you encounter any issues while testing this PR.