Skip to content

Conversation

@Thereese
Copy link

No description provided.

Copy link

@vanhaj vanhaj left a comment

Choose a reason for hiding this comment

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

I'm really impressed with your work, week 7 was a tough week!

Love that you stuck to one type of color, makes it look neater.
I really enjoyed looking at your solutions!
Your code looks really clean and it is easy to follow.

Keep up the good work! :)

`<img class="user-image" src=${data.avatar_url}/>`
userInfo.innerHTML=
`<h1>${data.name}</h1>
<h3> | ${data.login}</h3>`
Copy link

Choose a reason for hiding this comment

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

Great job with fetching the img and username!
A tip to make it even more clever is to wrap the <h3> in <a> tag and add ${data.html_url} to link the username to your github profile.

fetch (API_URL, options)
.then((res) => res.json())
.then((data) => {
const filterTechnigoProjects = data.filter((repo) => repo.fork && repo.name.startsWith("project"))
Copy link

Choose a reason for hiding this comment

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

Nice solution with filtering only those that starts with "project"!

`<div class="repocard" id=${projectID}>
<a href=${repo.html_url}><h3> ${repo.name}</h3></a>
<p> Default branch: ${repo.default_branch}</p>
<p> Latest push: ${new Date(repo.pushed_at).toDateString()}</p>
Copy link

Choose a reason for hiding this comment

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

Awsome job with .toDateString I will use that the next time!

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