Skip to content

Conversation

@Katarina821
Copy link

No description provided.

Copy link

@id4h4lling id4h4lling left a 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.

Comment on lines 12 to 18

const options = {
method: 'GET',
headers: {
Authorization: `token ${API_TOKEN}`
}
}

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

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">

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.

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. ⭐️

Comment on lines +1 to +2
@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');

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!

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