Skip to content

The Weather app was implemented using free weather API with pure vanilla Javascript, HTML and CSS/SASS. The App has four areas: 1) header includes search input, weather widget and background image changes depends on current time; 2) includes 5 cards latest checked cities; 3) FAQ includes four accordeons; 4) footer includes fullname of author

Notifications You must be signed in to change notification settings

vlasiuk-anatolii/appWeather

Repository files navigation

Weather app

Description

Weather app was implemented using a provided layout and free weather API with pure vanilla Javascript, HTML and CSS/SASS.

Design.

Free Weather API

Implemented Tasks

  • Implemented layout with HTML/CSS/JS (without frameworks and libraries).
  • App has four areas:
    • header includes search input, weather widget and background image changes depends on current time;
    • "Recently you checked weather in the cities" includes 5 cards latest checked cities;
    • "Frequently Asked Questions" includes four accordeons were created with smooth opening/closing;
    • footer includes fullname of author and dynamically changed year;

Apearance

Features

  • The user enters their city name in the search box at the top of the page and press Enter / Click search button.
  • The user can see a dropdown with the list of found cities or notice "City not found!".
  • When the user clicks on the found city - user can see selected city weather data in the main weather widget.
  • When the user clicks on the card with the checked city - user can see selected city weather data in the main weather widget.
  • FAQ dropdowns work. (Open / close)
  • The app is responsive for all modern devices.
  • The App has “day” and “night” mode. If user time is between 21:00 and 06:00 - app uses “night” layout, in the other case (from 06:00 to 21:00) it uses “day” layout.

Day layout

Night layout

  • App shows not more than 5 latest cities with success checked weather in the "Recently you checked weather in the cities"(even if user refreshes the page)
  • If cities are two and more then app throws dropdown with list of cities.

Search dropdown

Development environment

  • VS Code

devDependencies

  • JS
  • HTML
  • SCSS
  • ESlint
  • stylelint
  • Node v14.18.2 and higher
  • NPM v6.14.12 and higher

Installing

  • Fork and clone this repository
  • Run npm install in your terminal
  • Run npm start

About

The Weather app was implemented using free weather API with pure vanilla Javascript, HTML and CSS/SASS. The App has four areas: 1) header includes search input, weather widget and background image changes depends on current time; 2) includes 5 cards latest checked cities; 3) FAQ includes four accordeons; 4) footer includes fullname of author

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published