Welcome to the Joke Generator! This React application fetches random jokes from an API, allows users to save their favorite jokes, share jokes on social media, switch between dark and light themes, and select different joke categories.
Random Joke Fetching: Fetch random jokes from an external API. Favorite Jokes: Save and delete your favorite jokes. Dark Mode: Toggle between dark and light themes. Joke Categories: Select different categories of jokes (e.g., programming, general). Social Media Sharing: Share jokes on Facebook and Twitter. Accessibility: Improved accessibility with ARIA labels, keyboard navigation, and color contrast adjustments.
- React
- Redux-React
- Redux
- React-Share
- CSS
Make sure you have the following installed on your system:
- Node.js
- npm (Node Package Manager)
-
Clone the Repository:
https://github.com/rijughosh01/joke-generator
cd joke-generator
-
Install Dependencies: npm install
To start the development server, run:
npm start
Fetch Jokes: Click the "Fetch a new joke" button to get a random joke.
Save Favorite Jokes: Click the "Save as Favorite" button to save the current joke to your favorites.
Delete Favorite Jokes: Click the "Delete" button next to a favorite joke to remove it from the list.
Toggle Dark Mode: Click the "Switch to Light/Dark Mode" button to toggle between themes.
Select Categories: Use the dropdown to select different categories of jokes.
Share Jokes: Use the social media buttons to share jokes on Facebook and Twitter.
This project is licensed under the MIT License.
For any inquiries or feedback, please contact [email protected].
Enjoy generating jokes! 😊