-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rae Elwell Weather Report #69
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Your code looks pretty solid generally though you rely a little too much on <div>
s containing things for styles. (It's not a big deal, it's just a good habit to start doing a final pass in a project and go "do I need this div?".) Otherwise things look good!
Well done!
<div class = 'widget text' id ='Temperature Title'> | ||
<p>Temperature</p> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's more appropriate to use a heading tag (<h2>
, <h3>
depending on how nested) for something like a <section>
title:
<div class = 'widget text' id ='Temperature Title'> | |
<p>Temperature</p> | |
</div> | |
<h2 class = 'widget text' id ='Temperature Title'> | |
Temperature | |
</h2> |
skyDisplay.textContent = "☀️ ☀️ ☀️ ☀️ ☀️ ☀️ ☀️ ☀️ ☀️"; | ||
groundDisplay.textContent ="🌱 🌱 🌱 🌱 🌱 🌱 🌱 🌱"; | ||
cityInput.textContent = "My Hometown"; | ||
bgDisplay.style.backgroundColor = "orange"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a best practice to avoid directly setting the style of an element in JS. (This is because then we only have one place we need to update styles when we change the theme of the site.)
No description provided.