π‘ 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. π
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.