You are browsing as a guest. Sign up (or log in) to start making projects!

22m 30s logged

πŸ“‘ Devlog #2 – First Contact with the NASA APOD API πŸš€πŸŒŒ

Today was the day my website finally reached out to space! πŸŒβž‘οΈπŸ›°οΈ I replaced the default Vite page with a clean layout featuring a media section on the left and the APOD title, date, and explanation on the right. ✨ Using fetch() and my VITE_NASA_API_KEY, I connected to NASA’s Astronomy Picture of the Day API and displayed either a stunning πŸ–ΌοΈ image or an πŸŽ₯ video based on the response. I also added a πŸ“… date picker and a β€œFetch APOD” button so I can travel back in time and explore older space discoveries, while limiting the maximum date to today to prevent invalid requests. Seeing real NASA content appear inside my own website for the first time felt like making first contact with the universe. πŸŒ πŸ’™ Next up: transforming it into a polished, futuristic space dashboard. πŸš€

0
1

Comments 0

No comments yet. Be the first!