In this project you will create a weather forecast site using the weather API from the previous topic. You should be able to search for a specific location and toggle displaying the data in Fahrenheit or Celsius.
In addition, you should change the look of the page based on the data. You can either change the the color of the background or you can use the Giphy API to find appropriate weather-related gifs and display them.
Feel free to use promises or async/await in your code. However it is important to try to become comfortable with both.
Set up a blank HTML document with the appropriate links to your JavaScript and CSS files.
Write the functions that hit the API. You’re going to want functions that can take a location and return the weather data for that location. For now, just console.log()
the information.
Write the functions that process the JSON data you’re getting from the API and return an object with only the data you require for your app.
Set up a simple form that will let users input their location and will fetch the weather info (still just console.log() it).
Display the information on your webpage!
Add any styling you like!
Optional: add a ‘loading’ component that displays from the time the form is submitted until the information comes back from the API.
Push your solution to Github and submit the URL in the Quiz below.