A delightful website that displays random kitten pictures with fun cat facts! Perfect for sharing with friends and family who love cats.
- πΌοΈ Random Kitten Images - Fresh adorable kittens from The Cat API
- π‘ Fun Cat Facts - Learn something new with each kitten!
- π¨ Cute Design - Playful pastel colors and smooth animations
- π± Responsive - Works great on desktop and mobile
- π’ Kitten Counter - Track how many kittens you've viewed (saved locally!)
- β¨οΈ Keyboard Support - Press Space for more kittens!
Simply open index.html in your web browser!
# macOS
open index.html
# Windows
start index.html
# Linux
xdg-open index.htmlFor the best experience, run a local server:
# Using Python 3
python3 -m http.server 8000
# Using Node.js (if you have npx)
npx serve
# Using PHP
php -S localhost:8000Then visit http://localhost:8000 in your browser.
purrfect-kittens/
βββ index.html # Main HTML file
βββ css/
β βββ styles.css # All styling
βββ js/
β βββ app.js # JavaScript logic
βββ README.md # This file
βββ PLAN.md # Project requirements & plan
The website features a cute and playful design with:
- Colors: Soft pink, lavender, mint green on cream background
- Fonts: Fredoka One (headings) + Nunito (body)
- Animations: Bouncing paws, floating decorations, smooth transitions
- Accessibility: Keyboard navigation, reduced motion support
- HTML5 - Semantic markup
- CSS3 - Custom properties, flexbox, animations
- Vanilla JavaScript - ES6+, Fetch API, localStorage
- The Cat API - Random cat images
- Create a new repository on GitHub
- Push this project to the repository:
git init git add . git commit -m "Initial commit: Purrfect Kittens π±" git branch -M main git remote add origin https://github.com/YOUR_USERNAME/purrfect-kittens.git git push -u origin main
- Go to repository Settings β Pages
- Under "Source", select main branch
- Click Save
- Your site will be live at
https://YOUR_USERNAME.github.io/purrfect-kittens/
- Click the button or press Space to see a new kitten
- Your kitten view count is saved in your browser
- Works offline after the first load (images are cached)
- Kitten Images: The Cat API - Free tier
- Fallback Images: placekitten
Feel free to fork this project and make it your own! Some ideas:
- Add a favorites feature
- Include more cat facts
- Add sound effects
- Create a dark mode
MIT License - Feel free to use this project however you'd like!
Made with π for kitten lovers everywhere
Meow! π±