Skip to content

Final project for the SheCodes Plus workshop for which I developped a weather application using the OpenWeatherMap API

Notifications You must be signed in to change notification settings

meerens/shecodes-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Greetings 👋

My name is Marian and this repository contains the code for my final project for the SheCodes Plus workshop for which I developed a weather application using the OpenWeatherMap API.

This is my first attempt at better documenting my progress and capturing lessons learnt, so I ask that you be kind and keep in mind that I'm still learning 👩🏼‍💻😀

The application is responsive but not perfect. We haven't covered all the content but I managed to create something that should display nicely on your desktop/laptop and most mobile devices 🤞🏼

🔗 Link to application 🔗 Link to course certificate

Languages & tools

bootstrap css3 html5 javascript figma

🎨 Creative Credits
Icons via Dmitry Ochakov and edited in Figma.

Items to be completed/fixed/updated

📌 = temp solution, to be investigated further 🍏 = IOS related 🔚 = decomissioned feature 🔜 = to be added

To Do

PLANNING FINAL WEEK

  • Add HTML and CSS for 5-day Forecast (using fake data) ✅

  • Create JS forecast template ✅

  • Add the API call to get the Forecast data ✅

  • Replace dummy content with real data in JS ✅

  • Revisit font hierarchy ✅

  • Revisit colour scheme (to work with new icons) ✅

  • Add country code to output ✅

  • Add alt text (including image icons) 🔜

Fixes / Solutions

Temperature & Units Today

  • Styling of units upon click (C in darker colour | F in lighter colour > Temp displayed is in C). How to change CSS styling from JS?

    🔚 SOLVED by Element.Classlist (MDN Web Docs > Element:classList || Codegrepper > Adding a class to an element )

  • Behaviour unit conversion, need to test different scenarios to identify rootcause

    🔚 SOLVED by positioning the global variable 'celsiusTemperature' which can be called upon within the different functions (freeCodeCamp > Global variables in Javascript explained || W3Schools > JS Scope explained)

  • Fix colour when hovering over the C/F units, is set to blue?

    🔚 SOLVED by adding the :hover pseudo class and fixing the colour (MDN Web Docs > :hover)

  • Fix alignment of units (ok in browsers, not on mobile)?

    🔚 📌 SOLVED by wrapping the | in an anchor element. Found no clear answer on why vertical-align doesn't work on mobile (appears to be the device size being below a certain threshold), putting line-height to 1 for both classes gave the best solution for now.

  • Fix autozoom on mobile (IOS) when the search-bar is in focus

    🍏📌 SOLVED by updating the fontsize to 16px. Apparently IOS will zoom the page if the fontsize of the input field is below 16px and changing the fontsize appears to be the simplest solution. (Webflow Forums > Prevent zoom in on form focus state for mobile (IOS))

Search Bar

Weather Icons (API)

Graphics & Final Styling

  • Create own weather icons (seperate set for day/night) > to match the condition codes. ‼ use PNG (2x) instead of SVG

  • Update Bootstrap to be responsive

    Was able to find a workable solution after reading this blog "How the Bootstrap 4 Grid works"

About

Final project for the SheCodes Plus workshop for which I developped a weather application using the OpenWeatherMap API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published