Skip to content

Commit 2bc2e21

Browse files
committed
fix: added more space to the cards
1 parent 072dcff commit 2bc2e21

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The aim of this project was to build a GitHUb tracker of my projects submitted thus far to Technigop, using fetch and API technologies from the GitHub database
44
## The problem
55

6-
I approached the problem in 2 main steps: first extracting data from a -filtered-API fetch of all of my forked projects from Technigo. I was then able to hard-code a crad to present this data. I secondly then performed another fetch to extract the pull-requests from the Technigo repositories, to FIND all of my commit message for each submitted project. I then used dynamic-ids to input this data into my pre-coded index-card. Using Chart.js, I compiled a doughnut chart to illustrate the percentage of projects completed thus far. I have fulfilled all blue requirements, if I had more time I would like to show the last commit message and maybe a few comments.
6+
I approached the problem in 2 main steps: first extracting data from a -filtered-API fetch of all of my forked projects from Technigo. I was then able to hard-code a card to present this data. I secondly then performed another fetch to extract the pull-requests from the Technigo repositories, to FIND all of my commit message for each submitted project. I then used dynamic-ids to input this data into my pre-coded index-card. Using Chart.js, I compiled a doughnut chart to illustrate the percentage of projects completed thus far. I have fulfilled all blue requirements, if I had more time I would like to show the last commit message and maybe a few comments.
77

88

99
## View it live

code/script.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ const getRepos = ()=>{
4444
forkedProjects.forEach(repo => cardsContainer.innerHTML += `
4545
<section class="js-card">
4646
<div class="card-projectname" id="cardProjectName">
47-
Project Name: <span class="space">${repo.name}</span></div>
47+
<span class="space">Project Name:<span> <span class="space">${repo.name}</span></div>
4848
<div class="updated" id="cardUpdated">
49-
Most recent update:<span class="space"> ${new Date(repo.pushed_at).toDateString()}</span>
49+
<span class="space">Most recent update:<span><span class="space"> ${new Date(repo.pushed_at).toDateString()}</span>
5050
</div>
5151
<div class= "branch" id="cardBranch">
52-
Name of default branch:<span class="space">${repo.default_branch}</span>
52+
<span class="space">Name of default branch:<span><span class="space">${repo.default_branch}</span>
5353
</div>
5454
<div class= "URL" id="cardURL">
55-
URL: <span class="space"><a href="${repo.html_url} ">Clicky</span></a>
55+
<span class="space">URL:<span> <span class="space"><a href="${repo.html_url} ">Clicky</span></a>
5656
</div>
5757
<div class= "number-commits" id="commit-${repo.name}">
58-
Number of Commits:
58+
<span class="space">Number of commits:<span>
5959
</div>
6060
<div class= "times-forked" id="cardForked">
61-
Number of times forked:<span class="space">${repo.forks}</span>
61+
<span class="space">Number of times forked:<span><span class="space">${repo.forks}</span>
6262
</div>
6363
</section>`
6464
)

code/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ body {
131131

132132
/* This is the span styling*/
133133
.space {
134-
margin-left: 8px;
134+
margin-left: 18px;
135135
color: #87bee7;
136136
}
137137

0 commit comments

Comments
 (0)