Weather Cards
A minimal weather web app built with raw HTML/CSS/JavaScript.
Weather Cards
Live Demo
Click here to try the weather app.
Design Choices
- Should a there a title/heading in the website?
- I chose no, because the website is relatively simple and a title/heading would take up quite a bit of space making the overall website feel unbalanced. In addition, I hope the feel and functionaility of the website explain itself well.
- How to handle not revealing the API-key to public?
- Why is
form
chosen over anotherdiv
?- It works when also pressing the
Enter
key, instead of solely just working when clicking a button.
- It works when also pressing the
- How to choose the order of temperature, weather icon, and weather description to be shown?
- Why specifically choose to display cloud percentage and wind speed, but not say himidity.
- How should we choose the colors for the weather details (cloud percanta, wind speed, etc.)?
- How many forecasts should be shown?
To-Do
- Make the foreground (
main
) expand first, then show the content (results-container
). - Dark mode.
- Mobile view.
- Autocomplete/suggestions of bad city names.
- Phrases for locations in placeholder.
- Figure out how to handle typing during transition/animation.
- Figure out how to handle inputs during transition/animation.
- Make it embeddable.
- Be able to read user location.
- Make the transitions/animations cleaner, some elements are changing during animation.
- Fix overlapping animations.
Bootstrap or another UI framework.(Not needed for this scale)- Add weather forecasts.
- Icons for weather.
- Better error for wrong city names.
This post is licensed under CC BY 4.0 by the author.