-
Notifications
You must be signed in to change notification settings - Fork 131
GitHub tracker #116
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
base: main
Are you sure you want to change the base?
GitHub tracker #116
Conversation
vanhaj
left a comment
There was a problem hiding this 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>` |
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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!
No description provided.