Skip to content

Commit

Permalink
Merge pull request #84 from DSACMS/nat/fe_fixes
Browse files Browse the repository at this point in the history
Minor UI Fixes for V1
  • Loading branch information
IsaacMilarky authored Feb 15, 2024
2 parents 584a3e1 + 56fc53c commit ff065e9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ app/node_modules
app/dist
app/.env
app/site/img/*
app/site/_includes
!app/site/img/.keep
.vscode/
scripts/metricsLib/__pycache__
Expand Down
14 changes: 12 additions & 2 deletions app/site/_includes/banner.liquid
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<div class="bg-orange text-white text-center font-sans-lg">
<div class="grid-container padding-2">Work in progress. Not an official government site.</div>
<div class="bg-primary-lighter text-ink text-center">
<div class="grid-container padding-1">
<p class="usa-banner__header-text">Work in progress. We welcome questions and suggestions —
<a
class="usa-link usa-link--external"
rel="noreferrer"
target="_blank"
href="https://github.com/DSACMS/metrics/issues/new"
>give us feedback.</a
>
</p>
</div>
</div>
<section
class="usa-banner"
Expand Down
4 changes: 2 additions & 2 deletions app/site/_layouts/org-report.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ layout: base
<div class="stat-container" id="projects">
<div class="projects-heading">
<h4>
Repositories
<span>
<svg
class="usa-icon"
Expand All @@ -33,14 +32,14 @@ layout: base
{% lucide "folder-git-2" %}
</svg>
</span>
Repositories
</h4>
</div>
<p>{{ organization.repo_count }}</p>
</div>
<div class="stat-container" id="followers">
<div class="followers-heading">
<h4>
Followers
<span>
<svg
class="usa-icon"
Expand All @@ -50,6 +49,7 @@ layout: base
{% lucide "users-2" %}
</svg>
</span>
Followers
</h4>
</div>
<p>{{ organization.followers_count }}</p>
Expand Down
10 changes: 5 additions & 5 deletions app/site/_layouts/repo-report.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ layout: base
<div class="stat-container" id="stars">
<div class="stars-heading">
<h4>
Stars
<span>
<svg
class="usa-icon"
Expand All @@ -28,14 +27,14 @@ layout: base
{% lucide "star" %}
</svg>
</span>
Stars
</h4>
</div>
<p>{{ project.stargazers_count }}</p>
</div>
<div class="stat-container" id="forks">
<div class="forks-heading">
<h4>
Forks
<span>
<svg
class="usa-icon"
Expand All @@ -45,14 +44,14 @@ layout: base
{% lucide "git-fork" %}
</svg>
</span>
Forks
</h4>
</div>
<p>{{ project.forks_count }}</p>
</div>
<div class="stat-container" id="issues">
<div class="issues-heading">
<h4>
Issues
<span>
<svg
class="usa-icon"
Expand All @@ -62,14 +61,14 @@ layout: base
{% lucide "circle-dot" %}
</svg>
</span>
Issues
</h4>
</div>
<p>{{ project.issues_count }}</p>
</div>
<div class="stat-container" id="watchers">
<div class="watchers-heading">
<h4>
Watchers
<span>
<svg
class="usa-icon"
Expand All @@ -79,14 +78,14 @@ layout: base
{% lucide "eye" %}
</svg>
</span>
Watchers
</h4>
</div>
<p>{{ project.watchers_count }}</p>
</div>
<div class="stat-container" id="pull-requests">
<div class="pull-requests-heading">
<h4>
Pull Requests
<span>
<svg
class="usa-icon"
Expand All @@ -96,6 +95,7 @@ layout: base
{% lucide "git-pull-request" %}
</svg>
</span>
Pull Requests
</h4>
</div>
<p>{{ project.pull_requests_count }}</p>
Expand Down
4 changes: 2 additions & 2 deletions app/site/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ layout: base
>Organizations
<span class="chevrons-right">
<svg class="usa-icon usa-icon--size-2" aria-hidden="true" focusable="false" role="img">
<use xlink:href="/assets/img/sprite.svg#navigate_far_next"></use>
<use xlink:href= {{ "/assets/img/sprite.svg#navigate_far_next" | url }}></use>
</svg>
</span>
</a>
Expand All @@ -43,7 +43,7 @@ layout: base
>Projects
<span class="chevrons-right">
<svg class="usa-icon usa-icon--size-2" aria-hidden="true" focusable="false" role="img">
<use xlink:href="/assets/img/sprite.svg#navigate_far_next"></use>
<use xlink:href={{ "/assets/img/sprite.svg#navigate_far_next" | url }} ></use>
</svg>
</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion app/site/organizations.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ layout: base
<title id="github-{{org.name}}-title"> Follower Count</title>
{% lucide "users-2" %}
</svg>
<span> {{ org.stargazers_count }} </span>
<span> {{ org.followers_count }} </span>
</span>
</div>
</div>
Expand Down

0 comments on commit ff065e9

Please sign in to comment.