How hot is it? And what should you wear?
This applicaiton sets out to solve the age old dilemma of what to wear today.
Provide users with clothing suggestions based on the weather in a location that they search for.
This project has been deployed to GitHub pages. To access this project click the deployement link below:
https://dgourley84.github.io/Hot-or-Not/
Or, download the source files to use as a template.
This project has been deployed to GitHub Pages. To access this project click the deployment link below. Or, download the sources files to use this as a template.
If you wish to use this as a template you will need a text editor. Visual Studio Code was used to create this project and is the recomended application.
To install this code, download the zip file, or use GitHub's guidelines to clone the repository.
This project utilises javaScript, jquery, tailwind CSS & moment.js to create a weather app that allows user to input a city in the world, and then present be presented with the following elements:
It also logs the users search into a list of cities searched so that the user is able to simply click a prior searched city and be presented with the results.
Upon opening the app the user is presented with the following landing page:
This project has the following features:
As part of the function the user is presented with an input box in which to type a city name to search
When a search is complete it logs the item into local storage to be accessed in the below section
The user is also presented with a list of historically searched cities with the most recent search at the top:
This section access local storage gets the historical searched city and presents as a list.
The results of the searched city are presented in these sections. It presents the conditions as well as images of suggested outfits.
In order to create the above features the code performs as follows:
Upon clicking "search" in the city button the following happens:
If a user clicks on a previously searched city button the above functionality is performed, however the code will pull the previously searched city using the following code:
this will then replace the first API call with this previous value and recycle step 2. It will not perform steps 3 and 4 since the city will be in the list already. It will also fire the value to the images API to call the values for that.
Open in brower and either click on a searched city item or type a city name and search.
Thanks to Evan Woods and James Brown for guidence and inspiration.