GithubHelp home page GithubHelp logo

project-weather-app's Introduction

Weather App

A site to display the weather of e few cities in Sweden.

The problem

I worked in branches for the sunrise/sunset-display, the forecast-display, the main styling and the display of the main text.

Then, after merging, I decided to do a drop-down menu with the choice of a couple of different cities. This was the hardest part, since I ended up having five weather forecast showing at the same time. I had to go through my code thoroughly - I put in more consolog-logs and commented out different rows to try to isolate the problem, until I found out that the functions for all of the cities executed at the same time (as if I had pressed all of the options at once). With this in mind I restructured the functions and made a different one for each city instead of passing the city as an argument through the whole site. That solved my problem.

Since we only had icons for three weather types to begin with, I had to find new ones for each new weather type that I made a styling for. I decided to use Font Awesome for this.

If I had more time I would put in more cities to choose from. I would also like to work more with the styling to make the colors work better together (and maybe change the background of the dropdown menu, when your hovering over an option).

View it live

https://serene-fairy-e9079b.netlify.app/

project-weather-app's People

Contributors

tejpex avatar hannapettersson avatar hippiekick avatar antonellamorittu avatar jenniedalgren avatar idlefingers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.