A modern web application that displays NASA's Astronomy Picture of the Day (APOD) images with an elegant interface and rich features. Browse through the cosmos with our intuitive gallery viewer!
- 🖼️ Fetch and display NASA's Astronomy Picture of the Day (APOD) images
- 📅 Select custom date ranges to view images from specific periods
- 🔍 View images in full screen with double-click
- 📱 Responsive and mobile-friendly design
- ♾️ Infinite scroll for seamless browsing
- ❤️ Save favorite images locally
- 🔄 Share images on social media
- ⬇️ Download images directly
- 🏷️ Auto-generated image tags
- 🌓 Dark mode support
- 🔔 Toast notifications for user feedback
- 📊 Loading state indicators
- ⚡ Lazy loading for better performance
- HTML5
- CSS3 with Modern Features
- Flexbox & Grid
- CSS Variables
- Animations & Transitions
- JavaScript (ES6+)
- Async/Await
- Local Storage
- Intersection Observer
- NASA APOD API
- Font Awesome Icons
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Internet connection
- NASA API key (optional)
- Clone the repository:
git clone https://github.com/oop7/nasa-apod-gallery.git
- Open
index.html
in your browser - Start exploring the cosmos! 🌠
The project uses NASA's APOD API. While the default API key works, you can replace it with your own:
- Get your API key from NASA API Portal
- Open
script.js
- Replace the API key:
const apiKey = 'GW79mC0zansrxxmlzORH5et1G4D7R6kbhgOOsrQw';
- Select a date range using the date pickers
- Click "Fetch Pictures" to load images
- Scroll through the gallery
- Double-click any image for full-screen view
- ❤️ Click heart icon to save to favorites
- 📤 Use share button for social media sharing
- ⬇️ Download images directly to your device
- 🖱️ Scroll down for infinite loading
- ⌨️ Use ESC key to exit full-screen view
- 🔄 Clear results with the clear button
The app supports both light and dark modes, automatically matching your system preferences. To modify the color scheme, edit the CSS variables in style.css
:
:root {
--primary-color: #4299e1;
--background-color: #f6f9fc;
/* ... other variables */
}
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/AmazingFeature
- Commit changes:
git commit -m 'Add AmazingFeature'
- Push to branch:
git push origin feature/AmazingFeature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- NASA for providing the APOD API
- Font Awesome for icons
- All contributors and users of this project
Project Link: https://github.com/oop7/nasa-apod-gallery
Made with ❤️ by [Muhamed]