-
Notifications
You must be signed in to change notification settings - Fork 131
Project Github Tracker #99
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?
Conversation
id4h4lling
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.
Good job on this project, and a loud high five on completing the token! ✋
Nicely structured code, good looking color scheme and all the why true informative comments that explain each function. You gonna go far! ⭐️⭐️⭐️⭐️⭐️ or maybe 👩💻👩💻👩💻👩💻👩💻 out of 5.
|
|
||
| const options = { | ||
| method: 'GET', | ||
| headers: { | ||
| Authorization: `token ${API_TOKEN}` | ||
| } | ||
| } |
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.
U solved token! Nicely done! 👏
| const getIntro = () => { | ||
| fetch(API_URL_ID, options).then(res => res.json()).then(data => { | ||
| userInfo.innerHTML = `<h2>${data.name}</h2><a href=${data.html_url}> <h2> <img class="logo"src="./GitHubMark.png"> ${data.login} </h2></a>` | ||
| avatar.src = data.avatar_url |
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.
U could write <img class="profile-img" src="${user.avatar_url}"> inside of the backticks, instead of declaring a variable above. Since you should be able to fetch that from the API: API_URL_ID. Or at least it did for me.
| console.log(forkedRepos) | ||
| forkedRepos.forEach((repo) => projects.innerHTML += ` | ||
| <div class="repo"> | ||
| <img class="logo"src="./GitHubMark.png"> |
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.
Extra points for adding logo! 🙌
| getRepos() | ||
| }) | ||
| } | ||
| //second function, fetches my repos and filters the ones that are forked and stars with project. Displays info. |
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.
Good comments all the way through, makes it easy to understand. ⭐️
| @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300&family=Roboto:wght@300&display=swap'); | ||
| @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap'); |
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.
A, you put fonts in the css instead of the html! Is that better in some way? Curious!
No description provided.