Skip to content

Sea Turtles-Jenny C#79

Open
jennycodingnow wants to merge 3 commits into
ada-c17:mainfrom
jennycodingnow:main
Open

Sea Turtles-Jenny C#79
jennycodingnow wants to merge 3 commits into
ada-c17:mainfrom
jennycodingnow:main

Conversation

@jennycodingnow

Copy link
Copy Markdown

No description provided.

@tgoslee tgoslee left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job Jenny! Your code was functional and I was able to do all of the required tasks in your weather app! I left some comments and shared some resources. Please let me know if you have any questions.

Comment thread index.html
<h1>Weather Report</h1>
</header>
<main>
<div class="grid-display">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Most of your code in HTML is semantic. I think in this particular place you could've used something else besides a div. Here is a document you can use to walk through when to use particular tags:
html_flowchart
html_flowchart

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you so much Trenisha.

Comment thread index.html
Comment on lines +52 to +53
<footer>
</footer>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you don't need the footer tag if you do not have a footer

Comment thread index.html
Comment on lines +52 to +53
<footer>
</footer>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you don't need the footer tag if you do not have a footer

Comment thread src/index.js
@@ -0,0 +1,139 @@
'use strict';

const state = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍🏽

Comment thread src/index.js
@@ -0,0 +1,139 @@
'use strict';

const state = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍🏽

Comment thread src/index.js
Comment on lines +36 to +46
const increaseTemp = () => {
state.temperature += 1;
updateTempLabel();
console.log('increase temp');
};

const decreaseTemp = () => {
state.temperature -= 1;
updateTempLabel();
console.log('decrease 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.

functions look good but remove your console logs

Comment thread src/index.js

document.addEventListener('DOMContentLoaded', registerEventHandlers);

const getLatAndLong = () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

small note. I would move this function and the function below this before you register the event handlers. Just to make the code more readable.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ok, got it. I thought line 103 was only for all the events so I put it before the API calls. I see now that I put it at the end of index. Thank you

Comment thread src/index.js

document.addEventListener('DOMContentLoaded', registerEventHandlers);

const getLatAndLong = () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

small note. I would move this function and the function below this before you register the event handlers. Just to make the code more readable.

Comment thread styles/index.css Outdated
Comment on lines +30 to +31


Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can remove this white space and any other place that has extra white space to make your code more readable

Comment thread styles/index.css Outdated
Comment on lines +30 to +31


Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can remove this white space and any other place that has extra white space to make your code more readable

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