-
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
pine sierra #73
base: main
Are you sure you want to change the base?
pine sierra #73
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.
You have the basic event listeners for the buttons working with a few minor errors. It looks like you didn't have time to get the other features done.
For now I suggest focusing on React material and if you have time during a break week reviewing managing plain JS event handling.
🔴
gap: 15px; | ||
height: 100vh; | ||
width: 100vw; | ||
grid-template-columns: (2, 1fr); |
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.
No () and no commas here.
grid-template-columns: (2, 1fr); | |
grid-template-columns: 2 1fr; |
height: 100vh; | ||
width: 100vw; | ||
grid-template-columns: (2, 1fr); | ||
grid-template-rows: (4, 1fr); |
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.
grid-template-rows: (4, 1fr); | |
grid-template-rows: 4 1fr; |
background: transparent; | ||
border: none; | ||
display: flex; | ||
align-items: vertical; |
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.
vertical isn't a valid value here.
<button id="increment">⬆️</button> | ||
<button id="decrement">⬇️</button> | ||
|
||
<temperature id="temp"> |
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.
temperature
isn't a valid html element type?
Instead maybe make it a section
and then give it the class temperature
<div class="garden"><h2>Garden</h2></div> | ||
|
||
</div> | ||
</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.
Extra end div
tag
</div> |
textHolder.innerHTML = state.count; | ||
|
||
tempUp.addEventListener("click", function() { | ||
textHolder.innerHTML = ++state.count; |
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.
Just suggested indentation. This works except that you have a temperature
tag in the HTML doc which isn't valid HTML.
textHolder.innerHTML = ++state.count; | |
textHolder.innerHTML = ++state.count; |
// : 'black'; | ||
// }; | ||
|
||
tempCounter() |
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.
This works, but it's best practice to put it in an event handler like this to prevent it from being called before the HTML doc finishes loading.
tempCounter() | |
document.addEventListener('DOMContentLoaded', tempCounter); |
yikes