Skip to content

Emelie Lindblom - Github tracker#32

Open
waliem wants to merge 9 commits intoTechnigo:mainfrom
waliem:main
Open

Emelie Lindblom - Github tracker#32
waliem wants to merge 9 commits intoTechnigo:mainfrom
waliem:main

Conversation

@waliem
Copy link
Copy Markdown

@waliem waliem commented Oct 3, 2021

No description provided.

Copy link
Copy Markdown

@brunsant brunsant left a comment

Choose a reason for hiding this comment

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

The page works perfectly fetching all the required information through the API and updating the website automatically. The design is also responsive and well thought for the different devices/sizes.
The code itself is very clean and easy to understand, with comments on the JavaScript part that separate and identify the different functions.
The classes names are something I want to single out. They are really descriptive and easy to understand even at first sight. It was clear their functions even when looking only at the CSS. Great job with those!!!

I got really inspired by your project!! AMAZING job Emelie!!!!

datasets: [
{
label: "My First Dataset",
data: [amount, 20 - 6],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since the page will continue to update constantly, you can change the code to:
data: [amount, 20 - amount],
so the graph updates also automatically.

## View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
https://waliem-github-tracker.netlify.app/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job with the responsiveness! The layout for all different sizes looks really nice and clean. Loved also your icon and color palette.

Comment on lines +19 to +32
<body>
<header>
<h1>GITHUB TRACKER</h1>
<img class="github-icon" src="./octocat.png" />
</header>

<section id="user-info"></section>

<main id="projects"></main>

<div class="chart-box"><canvas id="chart"></canvas></div>

<script src="./script.js"></script>
<script src="./chart.js"></script>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Super clean HTML!

.then((data) => {
userContainer.innerHTML += `
<img class="profile-img" src="https://avatars.githubusercontent.com/u/84201089?v=4" alt="User profile picture">
<span id="profile-name"> <a class="usr-name" href="https://github.com/waliem"><h2>${data.login}</h2></a> <h3>Front end developer student</h3><h3>Based in Gothenburg</h3></span>`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You could also fetch this info (the ones you have on your GitHub) through the API - ex. data.html_url for the profile link.

<a style="font-weight:bold" href="${repo.html_url}"> ${
repo.name
} </a> <p>Default branch: ${repo.default_branch}</p>
<p>Most recent push: ${new Date(repo.pushed_at).toDateString()}</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.

Great that you used the new Date approach! Looks really clean and easy to understand.

.then((res) => res.json())
.then((data) => {
document.getElementById(`commit-${myRepoName}`).innerHTML += data.length
console.log("my commits!", data)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have a console.log survivor haha. I saw you probably erased the other ones and this escaped.

Comment on lines +32 to +35
.github-icon {
width: 20%;
height: auto;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This icon is super cute!!! Really loved it.


#projects {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 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.

This is a solution that would have solved all my grid issues for the project. Will save it for my next ones!

Comment on lines +69 to +76
.project-box:hover {
background-color: #bf3d39;
-webkit-transition: 0.3s ease-in-out;
transition: 0.3s ease-in-out;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great hover effect on the boxes!


.usr-name:hover {
color: #ff5c58;
text-transform: lowercase;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This lowercase effect was mind blowing for me! It's such a delicate and nice touch!!!

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