Skip to content

For the challenge of freeCodeCamp's "Show the Local Weather", and for fun of playing with something cool.

License

Notifications You must be signed in to change notification settings

meyu/exercise-freecodecamp-show-the-local-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purpose

For the challenge of freeCodeCamp's "Show the Local Weather", and for fun of playing with something cool.

build by

Dark Sky API

  • Dark Sky API is pretty good, though it needs to register before using it.
  • use CORS Anywhere for avoiding the CORS problem, but thought there must be a better way.
  • Hourly forecast is too detailed when I tried to show the information of next 24 hours later, so I hide the not-so-different-weather hour. Think it will be easier to understand.

Google Maps API

  • pick up the JavaScript API for showing a interactive map of user's location.
  • pick up the Geocoding API for showing the name of user's location. But there's a CORS problem when I trying to use Google API key to restrict the usage of this API, cause it was trigger by the client side. Luckly, Geocoding API can use without key, so the solution is still in the air.

ipinfo.io

  • ipinfo.io is great for lookup user's IP, and get a approximate location.
  • use it as a alternative plan when Geolocation API fails.

Bootstrap v4.0.0-alpha.6

  • design a screen-center layout with mulitple component was not so easy, but I got through and have lots of fun with the Flexbox feature.
  • Popovers is lovely, but I met trouble when trying to inject a Google Map into it. So I trigger the Google Maps API after the Popover shown, and patch a function to make the Popover disapear when click outside the Popover.

Skycons & Weather Icons v2.0.9 & Font Awesome v4.7.0

  • Skycons can pair perfectly with Dark Sky's forecast icon, and kinda cute.
  • Weather Icons has bunch of useful symbol for weather, it's a pity that it's no longer maintained.
  • Font Awesome is awesome, it benefit me this time for making a full screen loader without doing much css trick.

Google Fonts

  • Bubbler One is thin, concise,and not so formal. So that being a Flat-Design I can try .
  • tried to find a Chinese Web Font to pair with, but so hard to get one.

uiGradients

  • use uiGradients to pick up a calm background.
  • it's enjoyable when browsing the their website, so colorful and inspiring.

Toggle Switch

  • Switching between Fahrenheit and Celsius is needed, but found no style-I-like component in HTML 5 and Bootstrap 4.
  • Found Toggle Switch on w3schools, and customized it to fit my style. Now it looks so unique.

GitHub Gist

  • export this CodePen to my GitHub Gist for another way of code demonstration.

About

For the challenge of freeCodeCamp's "Show the Local Weather", and for fun of playing with something cool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published