Skip to content

Conversation

@MarianneArdin
Copy link

No description provided.

Copy link

@tiiliu tiiliu left a comment

Choose a reason for hiding this comment

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

Hey Marianne :) Your code was clean and easy to follow. The Javascript functions were very nicely formed. You've met all the blue level requirements, great job! :) This project was definitely challenging, but you made it 💪 💯 🌟

code/index.html Outdated
<main id="projects"></main>
<header>
<h1>GitHub Tracker</h1>
<h3 id="username"></h3>
Copy link

@tiiliu tiiliu Mar 6, 2022

Choose a reason for hiding this comment

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

I'm not sure what this title or id is referring to? I didn't notice that it would print anything to the page and I didn't see that it was used in the script file either. Maybe it can be removed if unnecessary? :)

code/index.html Outdated
<h1>GitHub Tracker</h1>
<h3 id="username"></h3>
</header>
<section class="profile" id="profile">
Copy link

Choose a reason for hiding this comment

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

I noticed that this section has the same class and id names as you have in your script.js file on row 26, where you are printing information about your profile, inside the userContainer element. Perhaps it is referring to those? If that is the case, it is enough that you have those elements in the script file. Using the DOM selector userContainer and then innerHTML you are printing the data inside the userContainer section (row 26 here in html file) and the content of the innerHTML doesn't need to be added here in html. :)

code/index.html Outdated
<section class="profile" id="profile">
</section>

<main id="projects"></main>
Copy link

Choose a reason for hiding this comment

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

I'm also not sure which element this id is referring to? I wasn't able to find it in the script file. Maybe also removable if not needed? The main tag you could for example use to expand around the main content of your page, semantically it is normally used for specifying the dominant content of a document.

code/index.html Outdated
Comment on lines 29 to 30
<div class="flex-box"></div>
<div class="flex-item"></div>
Copy link

Choose a reason for hiding this comment

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

I think these are also perhaps forgotten not used elements? I wasn't able to find them in the css file and they seem to be empty :)

code/style.css Outdated

}

.flex {
Copy link

Choose a reason for hiding this comment

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

I wasn't able to find an element with this class name, is it used somewhere?

code/style.css Outdated
Comment on lines 52 to 53
margin-left: auto;
margin-right: auto;
Copy link

Choose a reason for hiding this comment

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

I think these two rows you could combine using: margin: x auto. X (insert right number here) referring to top and bottom margin and auto referring to right and left margin :)

Comment on lines 64 to 67
#chart-wrapper {
width: 90%;
margin: 20px auto 40px;
}
Copy link

Choose a reason for hiding this comment

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

You're using the id chartwrapper here, but I couldn't find this id name from the code? You have a class name chart-container created for the element containing the chart (row 34 in html). It is good standard to use class names for styling, so maybe that class name could be used here instead? :)

margin: 20px auto 40px;
}

#chart {
Copy link

Choose a reason for hiding this comment

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

Maybe here also would be better to use the class name instead of the id for the chart?

Comment on lines +26 to +38
<div id="profile" class="profile">
<div class="profile-image">
<a href="${API_URL}">
<img src="${data.avatar_url}" alt="Avatar of ${data.login}">
</a>
</div>
<a href="https://github.com/MarianneArdin"><h1 class="username">${data.login}<h1></a>
<h2>My projects</h2>
</div>
<div>
<p>Public repositories: ${data.public_repos}</p>
</div>
`
Copy link

@tiiliu tiiliu Mar 6, 2022

Choose a reason for hiding this comment

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

Here I noticed that the last div containing the p tag public repositories is outside of the main div (starting from row 26). That means that the styling done with the class name profile isn't included into that div. Perhaps that was meant to be, just wanted to brought this up just in case :)

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