Skip to content

Commit

Permalink
overview font color change (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored May 11, 2021
1 parent d47e4d4 commit 3a5f94f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
7 changes: 6 additions & 1 deletion src/app/dashboard/dashboard.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,17 @@ tbody tr:hover {
}

.stats-body {
color: #316d94;
padding-top: 0px;
padding-bottom: 0px;
padding-right: 0px;

}

.stats {
margin-bottom: 20px;
}

.card-title {
font-weight: 600;
color: #4b7cf3;
}
24 changes: 12 additions & 12 deletions src/app/item-detail/item-detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<div class="col-sm">
<div class="card">
<div class="card-body overview-body">
<h2 class="card-title text-amethyst">{{itemData.overview.maxVu}}</h2>
<h2 class="card-title">{{itemData.overview.maxVu}}</h2>
</div>
<div class="card-footer bg-transparent card-footer-overview">Virtual Users</div>

Expand All @@ -89,7 +89,7 @@ <h2 class="card-title text-amethyst">{{itemData.overview.maxVu}}</h2>
<div class="col-sm">
<div class="card">
<div class="card-body overview-body">
<h2 class="card-title text-belize">{{itemData.overview.throughput > 1000 ?
<h2 class="card-title">{{itemData.overview.throughput > 1000 ?
Math.round(itemData.overview.throughput) : itemData.overview.throughput}} <span
class="unit-desc">hits/s</span>
</h2>
Expand All @@ -105,10 +105,10 @@ <h2 class="card-title text-belize">{{itemData.overview.throughput > 1000 ?
<div class="col-sm">
<div class="card">
<div class="card-body overview-body">
<h2 *ngIf="itemData.overview.percentil >= 1000" class="card-title text-percentil">{{
<h2 *ngIf="itemData.overview.percentil >= 1000" class="card-title">{{
Math.round((itemData.overview.percentil / 1000) * 100) / 100}} <span class="unit-desc">s</span>
</h2>
<h2 *ngIf="itemData.overview.percentil < 1000" class="card-title text-percentil">{{
<h2 *ngIf="itemData.overview.percentil < 1000" class="card-title">{{
itemData.overview.percentil}} <span class="unit-desc">ms</span>
</h2>
</div>
Expand All @@ -120,14 +120,14 @@ <h2 *ngIf="itemData.overview.percentil < 1000" class="card-title text-percentil"
<div class="card">
<div class="card-body overview-body">
<!-- locust does not provide this metrics-->
<h2 *ngIf="itemData.overview.avgLatency == 0" class="card-title text-na">
<h2 *ngIf="itemData.overview.avgLatency == 0" class="card-title">
n/a
</h2>
<h2 *ngIf="itemData.overview.avgLatency >= 1000" class="card-title text-latency">{{
<h2 *ngIf="itemData.overview.avgLatency >= 1000" class="card-title">{{
Math.round((itemData.overview.avgLatency / 1000) * 100) / 100}} <span class="unit-desc">s</span>
</h2>
<h2 *ngIf="itemData.overview.avgLatency < 1000 && itemData.overview.avgLatency > 0"
class="card-title text-latency">{{
class="card-title">{{
itemData.overview.avgLatency}} <span class="unit-desc">ms</span>
</h2>
</div>
Expand All @@ -142,14 +142,14 @@ <h2 *ngIf="itemData.overview.avgLatency < 1000 && itemData.overview.avgLatency
<div class="card">
<div class="card-body overview-body">
<!-- locust does not provide this metrics-->
<h2 *ngIf="itemData.overview.avgConnect == 0" class="card-title text-na">
<h2 *ngIf="itemData.overview.avgConnect == 0" class="card-title">
n/a
</h2>
<h2 *ngIf="itemData.overview.avgConnect >= 1000" class="card-title text-latency">{{
<h2 *ngIf="itemData.overview.avgConnect >= 1000" class="card-title">{{
Math.round((itemData.overview.avgConnect / 1000) * 100) / 100}} <span class="unit-desc">s</span>
</h2>
<h2 *ngIf="itemData.overview.avgConnect < 1000 && itemData.overview.avgConnect > 0"
class="card-title text-latency">{{
class="card-title">{{
itemData.overview.avgConnect}} <span class="unit-desc">ms</span>
</h2>
</div>
Expand All @@ -164,7 +164,7 @@ <h2 *ngIf="itemData.overview.avgConnect < 1000 && itemData.overview.avgConnect >
*ngIf="itemData.overview.bytesPerSecond && itemData.overview.bytesSentPerSecond && itemData.overview.bytesPerSecond !== 0">
<div class="card">
<div class="card-body overview-body">
<h2 class="card-title text-latency">{{convertBytesToMbps(itemData.overview.bytesPerSecond +
<h2 class="card-title">{{convertBytesToMbps(itemData.overview.bytesPerSecond +
itemData.overview.bytesSentPerSecond)}} <span class="unit-desc">Mbps</span>
</h2>
</div>
Expand All @@ -175,7 +175,7 @@ <h2 class="card-title text-latency">{{convertBytesToMbps(itemData.overview.bytes
<div class="col-sm">
<div class="card">
<div class="card-body overview-body">
<h2 class="card-title text-alizarin">{{itemData.overview.errorRate}} <span
<h2 class="card-title">{{itemData.overview.errorRate}} <span
class="unit-desc">%</span></h2>
</div>
<div class="card-footer bg-transparent card-footer-overview">Error rate</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/item-detail/item-detail.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ thead .hd {

.overview-info .card-title {
font-size: 2.1rem;
font-weight: 600;
color: #4b7cf3;
}

.overview-card {
Expand Down

0 comments on commit 3a5f94f

Please sign in to comment.