Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

pine sierra #73

wants to merge 1 commit into from

Conversation

heysierra
Copy link

yikes

Copy link

@CheezItMan CheezItMan left a 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);

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.

Suggested change
grid-template-columns: (2, 1fr);
grid-template-columns: 2 1fr;

height: 100vh;
width: 100vw;
grid-template-columns: (2, 1fr);
grid-template-rows: (4, 1fr);

Choose a reason for hiding this comment

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

Suggested change
grid-template-rows: (4, 1fr);
grid-template-rows: 4 1fr;

background: transparent;
border: none;
display: flex;
align-items: vertical;

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">

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>

Choose a reason for hiding this comment

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

Extra end div tag

Suggested change
</div>

textHolder.innerHTML = state.count;

tempUp.addEventListener("click", function() {
textHolder.innerHTML = ++state.count;

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.

Suggested change
textHolder.innerHTML = ++state.count;
textHolder.innerHTML = ++state.count;

// : 'black';
// };

tempCounter()

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.

Suggested change
tempCounter()
document.addEventListener('DOMContentLoaded', tempCounter);

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