Skip to content

Commit

Permalink
Removed watchers count
Browse files Browse the repository at this point in the history
Removed watchers count as it was not getting fetched correctly
  • Loading branch information
madhurimarawat authored Aug 4, 2024
1 parent 01ee307 commit 81e490b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
30 changes: 24 additions & 6 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,33 @@ h3 {
/* Add space between grid items */
}

/* Styling for updated information */
.updated {
margin-top: 5px;
/* Margin above */
margin-bottom: 5px;
/* Margin below */
display: block;
/* Ensure it behaves as a block element */
width: 100%;
/* Ensure it takes the full width of its container */
box-sizing: border-box;
/* Include padding and border in the element's total width and height */
}

@media (min-width: 768px) {

/* Adjust breakpoint as needed */
.repo-actions {
grid-template-columns: 1fr 1fr;
/* Two columns for larger screens */
}

/* Styling for updated information */
.updated {
text-align: center;
/* Center align text inside the block element */
}
}

/* Media query for smaller devices */
Expand Down Expand Up @@ -327,12 +347,6 @@ h3 {
box-sizing: border-box;
}

.repo-actions {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
}

.repo-actions p {
margin: 0;
/* Removes margin between paragraphs */
Expand All @@ -342,6 +356,10 @@ h3 {
/* Removes padding inside paragraphs */
}

.updated {
text-align: left;
}

.centered-td img {
display: block;
margin: 0 auto;
Expand Down
3 changes: 1 addition & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,8 @@ function displayRepositories(page) {
<p id="commits-${name}">📊 Commits: Fetching...</p>
<p id="deployments-${name}">🚀 Deployments: Fetching...</p>
<p>🍴 Forks: ${forks_count}</p>
<p>👁️ Watchers: ${watchers_count}</p>
<p>📅 Updated: ${new Date(updated_at).toLocaleDateString()}</p>
</div>
<p class = "updated">📅 Updated: ${new Date(updated_at).toLocaleDateString()}</p>
<a href="${html_url}" target="_blank" class="btn btn-primary">View on GitHub</a>
</div>
</div>
Expand Down

0 comments on commit 81e490b

Please sign in to comment.