Skip to content

pine sierra #73

Open
heysierra wants to merge 1 commit intoAda-C16:mainfrom
heysierra:main
Open

pine sierra #73
heysierra wants to merge 1 commit intoAda-C16:mainfrom
heysierra:main

Conversation

@heysierra
Copy link
Copy Markdown

yikes

Copy link
Copy Markdown

@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.

🔴

Comment thread styles/index.css
gap: 15px;
height: 100vh;
width: 100vw;
grid-template-columns: (2, 1fr);
Copy link
Copy Markdown

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;

Comment thread styles/index.css
height: 100vh;
width: 100vw;
grid-template-columns: (2, 1fr);
grid-template-rows: (4, 1fr);
Copy link
Copy Markdown

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;

Comment thread styles/index.css
background: transparent;
border: none;
display: flex;
align-items: vertical;
Copy link
Copy Markdown

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.

Comment thread index.html
<button id="increment">⬆️</button>
<button id="decrement">⬇️</button>

<temperature id="temp">
Copy link
Copy Markdown

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

Comment thread index.html
<div class="garden"><h2>Garden</h2></div>

</div>
</div>
Copy link
Copy Markdown

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>

Comment thread src/index.js
textHolder.innerHTML = state.count;

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

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;

Comment thread src/index.js
// : 'black';
// };

tempCounter()
Copy link
Copy Markdown

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