Skip to content

Commit 6fcefbe

Browse files
Add new API token
1 parent 59ea914 commit 6fcefbe

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/javascript/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const displayChart = (projects) => {
99
const data = {
1010
labels: labels,
1111
datasets: [{
12-
label: 'My First Dataset',
12+
label: 'My Projects at Technigo',
1313
data: [projects, 19 - projects],
1414
backgroundColor: [
1515
'rgb(142, 85, 255)',

src/javascript/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const footer = document.getElementById("footer");
44

55
const username = "savannah-hayes";
66
const USER_URL = `https://api.github.com/users/${username}`;
7-
const API_TOKEN = TOKEN || process.env.API_KEY
7+
const API_TOKEN = TOKEN || process.env.API_KEY;
88

99
const options = {
1010
method: "GET",
@@ -21,7 +21,7 @@ const displayHtml = () => {
2121
<span class="hamburger"></span>
2222
</div>
2323
<h1>GitHub Tracker</h1>
24-
<img src="./images/me.png" class="header__image" alt="image of savannah hayes">
24+
<img src="./images/me.png" class="header__image" alt="small image of savannah hayes">
2525
`
2626

2727
footer.innerHTML = `
@@ -51,10 +51,13 @@ const displayProfileData = (profileData) => {
5151
<section class="aside-content">
5252
<p class="aside-content__paragraph aside-content__paragraph--top">${bio}</p>
5353
<p class="aside-content__paragraph aside-content__paragraph--grey">
54-
<img class="icons icons-left" src="./images/group.png">
54+
<img class="icons icons-left" src="./images/group.png" alt="three people icon">
5555
<span class="aside-content__paragraph--bold">${followers}</span> followers ·
5656
<span class="aside-content__paragraph--bold">${following}</span> following</p>
57-
<p class="aside-content__paragraph"><img class="icons icons-left" src="./images/location.png"></img> ${location}</p>
57+
<p class="aside-content__paragraph">
58+
<img class="icons icons-left" src="./images/location.png" alt="location pin icon">
59+
</img> ${location}
60+
</p>
5861
</section>
5962
`;
6063
}

src/javascript/repos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const projectsSection = document.getElementById("projects");
2-
const searchForm = document.getElementById("searchForm")
2+
const searchForm = document.getElementById("searchForm");
33

44
const REPOS_URL = `https://api.github.com/users/${username}/repos`;
55

0 commit comments

Comments
 (0)