Skip to content

Commit f080aad

Browse files
committed
finished styling
1 parent 3d4a3c3 commit f080aad

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

code/script.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
const REPOS_URL = "https://api.github.com/users/themisk84/repos";
2-
const NEWS_SITE_COMMITS =
3-
"https://api.github.com/repos/Technigo/project-news-site/pulls/214/commits";
42
const projects = document.getElementById("projects");
53
const profileImage = document.getElementById("profileImage");
64
const userName = document.getElementById("userName");
@@ -36,7 +34,8 @@ const getRepos = () => {
3634
<h5 class="repo-item4">${language}</h5>
3735
</div>
3836
`;
39-
});
37+
})
38+
.catch((err) => console.log(err));
4039
});
4140

4241
drawChart(forkedRepos.length);
@@ -48,7 +47,6 @@ const getRepos = () => {
4847
);
4948

5049
getPullRequest(forkedRepos);
51-
// getLanguages(languageURL);
5250
});
5351
};
5452

@@ -70,7 +68,8 @@ const getPullRequest = (forkedRepos) => {
7068
document.getElementById(
7169
`${repo.name}`
7270
).innerHTML += `<h4 class="repo-item5">Group assignment or not yet pulled</h4>`;
73-
});
71+
})
72+
.catch((err) => console.log(err));
7473
});
7574
};
7675

@@ -82,8 +81,7 @@ const getCommits = (commitsURL, repo) => {
8281
document.getElementById(
8382
`${repo.name}`
8483
).innerHTML += `<h4 class="repo-item5"> Number of commits: ${data.length}</h4>`;
85-
});
84+
})
85+
.catch((err) => console.log(err));
8686
};
8787
getRepos();
88-
89-
/* <h5 class="repo-item4">${data.language}</h5> */

code/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ a:hover {
101101
}
102102
.profile-container {
103103
width: 85%;
104+
align-items: center;
104105
}
105106
.profile-image {
106107
width: 100%;

0 commit comments

Comments
 (0)