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

COSMIC LENS!

  • 10 Devlogs
  • 13 Total hours

im gonna fetch all nasa’s data mwahaha…

Ship #2

I made Cosmic Lens using the guide of “ give your website a pulse “ provided by Stardance and I really wanted to make it awesome but I am a complete newbie to coding but even though I tried really hard for this and I am satisfied with the result.
My website draws images from NASA’s APOD so you can view them in my style and it has a random button that lets you view a cosmic picture taken on any random day in case you don’t know what date to search for , I also added a custom greeting for the visitors .I look forward to adding more cool features to the site when I am able to grasp the concepts of coding more well.
The main issue I ran into while making the website fully functional was the API issues that some images were showing 404 error only for specific dates then I learned that they were not images but videos or sonification audio that was why there was the error so I fixed it by providing external links for those specific dates as well as fallback for the error. Then I ran into another problem that some older dates were also showing the error then I learned it was because the images of older dates had different URLs so I fixed it by providing an external link directly for NASA’s APOD and fallback for error for it as well so you can view it directly.
I learned so much from doing this project I really learned a lot about JavaScript and styles CSS.
Thanks to Hack Club for giving me this chance I am looking forward to make more cool projects in the future!!

  • 4 devlogs
  • 9h
  • 5.11x multiplier
  • 46 Stardust
Try project → See source code →
Open comments for this post

1h 50m 53s logged

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.

0
0
26
Open comments for this post

3h 27m 20s logged

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.

0
0
65
Open comments for this post

1h 40m 55s logged

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. 💫

0
0
49
Open comments for this post

2h 3m 5s logged

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!

0
0
27
Ship #1

I built Cosmic Lens, a custom space picture viewer using vanilla JavaScript and VITE that fetches data directly from NASA’s Astronomy Picture of the Day (APOD) API. The most challenging part was managing dynamic API fetching, handling edge cases like YouTube video embeds versus regular image renders, and resolving scope bugs with the date selector variable. I’m most proud of designing the space-themed UI with custom CSS stars and smooth interactive controls. To test it, open the live link and select any past date from the date picker to load that day’s official NASA space photo with explanation! If you can’t think of a date , use the random button and have fun !!!

  • 6 devlogs
  • 4h
  • 8.39x multiplier
  • 32 Stardust
Try project → See source code →
Open comments for this post

39m 27s logged

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. 🌠

0
0
65
Open comments for this post

1h 14m 41s logged

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.

0
0
68
Open comments for this post

35m 3s logged

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 .

0
0
30
Open comments for this post

35m 23s logged

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

0
0
70
Open comments for this post

23m 1s logged

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!!!

0
0
83

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…