Skip to content

Estefanny's weather app PR - #428

Open
FannyEste wants to merge 16 commits into
Technigo:masterfrom
FannyEste:master
Open

FannyEste wants to merge 16 commits into
Technigo:masterfrom
FannyEste:master

Conversation

@FannyEste

Copy link
Copy Markdown

@JennieDalgren JennieDalgren self-assigned this Oct 4, 2024

@JennieDalgren JennieDalgren left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job with this project!

You've nailed most of the functionality that was required this week. However, it seems like the min and max temperatures are showing the same values.
Also I'm wondering what this time (17:40) indicates?
image

HTML and CSS

  • Good use of semantic HTML elements and attributes.
  • Consistent use of font families and sizes.
  • Proper use of flexbox for layout management.
  • Clear separation of styles for different components (search icon, current weather, forecast).

JavaScript

  • Good structure and understandable cide

  • Proper error handling with try/catch blocks.

  • DRY Principle: Refactor to avoid repetition in API URLs.

    const baseUrl = "https://api.openweathermap.org/data/2.5/";
    const city = "Stockholm,Sweden";
    const units = "metric";
    const apiUrl = `${baseUrl}weather?q=${city}&units=${units}&APPID=${apiKey}`;
    const forecastApiUrl = `${baseUrl}forecast?q=${city}&units=${units}&APPID=${apiKey}`;

Things to fix:

  • Make sure to be consistent, use single or double quotes throughout the script.
  • Check the min max temp data so it shows the correct data

@FannyEste

Copy link
Copy Markdown
Author

Good job with this project!

You've nailed most of the functionality that was required this week. However, it seems like the min and max temperatures are showing the same values. Also I'm wondering what this time (17:40) indicates? image

HTML and CSS

  • Good use of semantic HTML elements and attributes.
  • Consistent use of font families and sizes.
  • Proper use of flexbox for layout management.
  • Clear separation of styles for different components (search icon, current weather, forecast).

JavaScript

  • Good structure and understandable cide
  • Proper error handling with try/catch blocks.
  • DRY Principle: Refactor to avoid repetition in API URLs.
    const baseUrl = "https://api.openweathermap.org/data/2.5/";
    const city = "Stockholm,Sweden";
    const units = "metric";
    const apiUrl = `${baseUrl}weather?q=${city}&units=${units}&APPID=${apiKey}`;
    const forecastApiUrl = `${baseUrl}forecast?q=${city}&units=${units}&APPID=${apiKey}`;

Things to fix:

  • Make sure to be consistent, use single or double quotes throughout the script.
  • Check the min max temp data so it shows the correct data

Hi, just to let you know I implemented the requested changes, I was not sure if only implementing was enogh, so Im letting the comment here just in case! thanks

@JennieDalgren JennieDalgren left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants