The Savage Tab
- 7 Devlogs
- 11 Total hours
A cool styled website for you to view NASA's Picture of the day, but with an interesting surprise: view the NASA picture of the day from the day you were born.
A cool styled website for you to view NASA's Picture of the day, but with an interesting surprise: view the NASA picture of the day from the day you were born.
I worked primarily on three things
getting a website deployment issue sorted (using Codex) due to a name mismatch in the local vite.config.js file and the remote github repo name.
Updating the README with complete project description, demo image, and website URL.
Finally the website is deployed at: here
I just did re-implement the final feature for it to be more visually appealing, but another thing is that I observed that the website took more time to reload and even had a few failed attempts to load the APOD. IDK why it’s happening, if any of you might please lemme know.
Now I only have to complete the project info and ship it.
Here’s how the new feature looks:
This took a little bit of time as I had to figure out how to add forms in HTML, how to connect them to my JS logic so that I can access their data, and write the event logic.
I was able to do it without using any tutorial just using Google AI mode and Copilot. (I didn’t use them to write code for me)
TLDR; added a small form you can fill out on the website to view the APOD for your birthdate.
btw here’s the APOD for my birthdate:
I styled my website using clip-path: property and added custom fonts for the explanation as well as the title.
I then started the work on the feature and soon realized after a bit of experimenting I have to watch a JS learning tutorial to learn how to add forms/fields to my website and use the collected data.
Majorly I worked on modifying main.js logic in order to handle occasional youtube video urls in the response and handle errors during the process using .error(...)
After that I worked on styling my website: adding pseudo-elements and styling them.
Now the website kinda looks like this:
I implemented the logic to fetch APOD data from NASA api then convert it into a JS object and then display the Title, Image and Explanation of the APOD on the website.
Along the way I learnt to use the fetch(...) function, .then(...) methods and creating conditionals in JS as well as constructing strings with placeholders ${...}.
TLDR; I worked primarily on writing the logic of my website in main.js.
I am following the mission guide (Website Pulse) for this project.
TLDR; This session was about setting up Vite in the project and automating the deployment and build workflow
In the first session I worked on creating Vite in my project repo, setting up a remote github repo, and creating a deploy.yml file in the project root specifying the deployment workflow.
Now whenever I push to the main branch of the repo, the workflow will be automatically triggered and the website will be built and deployed live.
I also create and securely added the NASA API key in a .env file.