Skip to content

Sarah Mottram - project-github-tracker#10

Open
Smelbows wants to merge 12 commits into
Technigo:mainfrom
Smelbows:main
Open

Sarah Mottram - project-github-tracker#10
Smelbows wants to merge 12 commits into
Technigo:mainfrom
Smelbows:main

Conversation

@Smelbows

@Smelbows Smelbows commented Oct 1, 2021

Copy link
Copy Markdown

I've just focussed on the blue requirements for this week. I found it quite challenging to 'forget' about the CSS and try some of the red/black goals, so I might come back to these at a later date, but for now I'm happy with how far I got with this project.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sara's code for github-tracker project was very clean and easy to read, really honing in that 'write it like a children's book' principle. I learned some new techniques such as !important property in CSS and how to make the if or else statement clean and easy to read. Thanks Sara!

Comment thread code/script.js
return pullsData.find((pull) => pull.user.login === "anndimi");
} else {
return pullsData.find((pull) => pull.user.login === username);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Clever way to distinguish the repos that were forked from certain id's repository!

Comment thread code/script.js

const createHTMLForRepo = (repo) => {
return `<a target="blank" href="${repo.html_url}" class="repo-container ${
repo.language

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can I ask what does this <repo. language> do in the code? Maybe I am missing something that is actually quite obvious, but was curious what this code means.

Comment thread code/script.js
"<p>No pull request made yet</p>";
} else {
fetchCommits(myPullRequest.commits_url, repo.name);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your 'if/ else' code usage throughout the whole code is so clear and easy to read, thanks! I get really clumsy when I write if or else statement, so I find these so satisfying and skillful.

Comment thread code/script.js
).innerHTML += `<p>Number of commits: ${
data.length
}</p><p>Last commit message: ${data[data.length - 1].commit.message}</p>`;
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

But why is it index number -1?

Comment thread code/style.css
.hero-image {
background: linear-gradient(rgba(0, 0, 0, 0.342), rgba(0, 0, 0, 0.774)),
url("./Images/GitHub-headpic.jpeg");
height: 50vh;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am curious what is the benefit of using vh units instead of px or em! Any reasons you preferred this?

Comment thread code/style.css
main {
grid-template-columns: repeat(3, 1fr);
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very clean and efficient responsive css code!

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.

1 participant