Weather Report- [Link]
Interactive weather app that returns an illustration of a landscape based on user input.
Showcases Front-end expertise and strong sense of aesthetics.
This project was created with vanilla JavaScript
A numeric temperature is displayed. This temperature can be in either Fahrenheit or Celsius degrees. Increase and Decrease Temperature
1.Button that increases the temperature by one degree on click
2.Button that decreases the temperature by one degree on click
3.Drop down menu that allows you to switch the icons on the weather display
4.Allows user to switch the title based on user input
Depending on what temperature it is, either:
- the temperature number changes color
- the background of the temperature changes color
Temperature (F) | Color |
---|---|
80+ | Red |
70-79 | Orange |
60-69 | Yellow |
50-59 | Green |
49 or below | Teal |
Depending on what temperature it is, a different landscape appears on the page.
Changing landscapes should replace the existing landscape. There should only be one visible landscape at a time.
Temperature (F) | Landscape |
---|---|
80+ | "π΅__π_π¦_π΅π΅__π_π_π¦" |
70-79 | "πΈπΏπΌ__π·π»πΏ_βοΈπ±_π»π·" |
60-69 | "πΎπΎ_π_πͺ¨__π€_πΎπΎπΎ_π" |
59 or below | "π²π²βοΈπ²βοΈππ²ππ²π²βοΈππ²" |
When a user selects an option from the dropdown element, the appropriate sky appears on the page.
S| Option | Sky |
| ------ | ----------------------------- |
| Sunny | "βοΈ βοΈ βοΈ βοΈ βοΈ βοΈ"
|
| Cloudy | "βοΈβοΈ βοΈ βοΈβοΈ βοΈ π€ βοΈ βοΈβοΈ"
|
| Rainy | "π§πβπ§π§π§βπ§π¦π§π§π§π§"
|
| Snowy | "π¨βοΈπ¨π¨βοΈβοΈπ¨βοΈπ¨βοΈβοΈπ¨π¨"
|