Welcome to the modernized Dad Jokes Central, a fun and interactive web application for all your cheesy humor needs. Now featuring a sleek glassmorphism UI, dark mode, and social sharing!
- Random Joke Generator: Instantly fetch a fresh dad joke with one click.
- Curated Categories: Browse jokes by topic—Computers, Dogs, Cats, Food, Work, and Dad.
- Smart Search: Find specific jokes by keyword.
- Interactive Actions:
- Copy: One-click copy with celebratory confetti 🎉
- Share: Direct sharing to Twitter and WhatsApp.
- React: Upvote/Downvote/Meh buttons.
- Modern UX:
- Dark Mode: Fully supported dark theme for late-night laughs 🌙
- Animations: Smooth entry transitions and loading skeletons.
- Responsive: Looks great on mobile, tablet, and desktop.
- React (v18)
- TypeScript
- Vite - Fast build tool
- Tailwind CSS - Styling & Design System
- Framer Motion - Animations
- Lucide React - Icons
- Canvas Confetti - Fun visual effects
To run the app locally:
-
Clone the repository:
git clone https://github.com/sagarneeli/dad-jokes-central.git cd dad-jokes-central -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser: Navigate to
http://localhost:5173
src/components: UI components (JokeDisplay,Controls,Actions)src/components/ui: Reusable design system (Button,Card)src/hooks: Custom hooks (useJoke,useDarkMode)src/api.ts: API integration logic
This project is licensed under the MIT License.
- Jokes provided by the icanhazdadjoke API.
- Inspired by the need for more groans in the world.
