COSMIC LENS!
- 10 Devlogs
- 13 Total hours
im gonna fetch all nasa’s data mwahaha…
im gonna fetch all nasa’s data mwahaha…
Worked on the API integration today so it handles both new and old space data smoothly. Ran into a weird bug where older dates kept showing random NASA logo placeholders instead of actual pictures. Added some validation logic to catch those placeholders before they break the image tags. Set up clean fallback links too, so if a record doesn’t have a direct image file, it just sends you straight to the original NASA page.
Spent today polishing up the stylesheet to ensure the starry background animation and button hover effects render smoothly. Fixed a couple of small typos in the CSS properties that were stopping image scaling from working properly. Switched over to main.js to track down a trick variable capitalization bug that broke the random date generator. Cleaned up the API fetch logic to handle 404 errors gracefully without crashing the UI. Finally tested everything locally and pushed the clean code to GitHub Pages.
Today I fixed the audio and non-YouTube videos which were glitching out because my conditional logic lumped them together incorrectly.
Fixed it by cleaning up the tags, swapping the colon, and splitting videos into their own separate condition.
Booted it up on localhost and everything is finally rendering clean cards and working media links. Hope this is the final ship for this project. 💫
Added a custom greetings popup to give Cosmic Lens a warm, personal touch! Fixed a CSS bug where the popup styling was trapped inside a mobile media query. I also resolved a JavaScript selector typo and removed it from JavaScript so the popup only depended on index.HTML so the close button works smoothly. Also cleaned up robotic AI comments and removed divider lines from the code. Finally ready to reship with a personalized README and an authentic codebase!
Cosmic Lens is LIVE!
And… we’re done! 🚀
Today I gave Cosmic Lens its final touches, cleaned up the project, added the README, pushed everything to GitHub, and made sure the live deployment was working properly.
The best part? The site is actually LIVE now!
I also tested the date picker and Random NASA Image feature one last time, and everything is working as it should.
From debugging API issues to fighting with Git and deployment 😭, this project definitely had its moments — but seeing it running online makes it all worth it.
🔗 Live: https://wizard21-sudo.github.io/cosmic-lens/ I’m officially calling it SHIPPED! 🚀
Keep looking up. 🌠
Redesigned the UI with twinkling CSS stars and neon space elements. Formatted theme colors and input controls to match the cosmic dark look. Fixed index.html font imports and CSS pathing for VITE compatibility. Added DEMO-KEY fallback for live NASA APOD fetches on GitHub Pages. This alone took almost 1 hours and the basic site isn’t even working properly, still got a long way to go . P.S can’t find the emojis so upside down smiley face at the end.
Today built a responsive dark-mode layout with smooth flexbox centering. Added custom zig-zag side borders using CSS pseudo-elements. Styled typography using Google Fonts ( Oswald and Black Ops One ). Used @media queries to hide side accents on mobile screens. Although having fun, the progress is so slow .
Today, I fetched live space data using custom API requests for my NASA APOD web. I also built smart media logic that automatically detects images YouTube embeds, or video players. To keep the app smooth and reliable, I added safe loading states and a catch-block for error handling. I debugged JavaScript syntax issues as well. Finally, I completed almost all the steps of the guide and I am satisfied by my progress. <3
Finished setting up environment variables for NASA API and secured sensitive keys using GitHub secrets. Also resolved a GitHub Actions build failure caused by placing my directory under the wrong folder. Also fixed a syntax error in vite.config.js . Learned so much by fixing my mistakes. Finally published the app to GitHub pages!!!
Started new project. Just finished linking my repository to VS JavaScript and CSS. <3