Skip to content

Commit

Permalink
add new progress bar to our app
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar-Nabil committed Aug 18, 2024
1 parent 3430188 commit 180a863
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/app/clients/clients.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
</div>

<div [hidden]="!existsClientsToFilter">
<mat-progress-bar mode="indeterminate" *ngIf="isLoading"></mat-progress-bar>
<div *ngIf="isLoading">
<div class="loading"></div>
</div>
<table mat-table [dataSource]="dataSource" matSort (matSortChange)="sortChanged($event)">

<!-- Name Column -->
Expand Down
78 changes: 78 additions & 0 deletions src/app/clients/clients.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,81 @@ table {
color : black;
}
}

$bar: 150px;
$foo: $bar * 8;
$color: #e2e4ec;


.loading {
position: absolute;
width: $bar;
height: 8px;
background: linear-gradient(125deg, rgb(255, 255, 255), #c4d2e9, rgb(255, 255, 255));
animation: grow 4s linear infinite, move 4s linear infinite;
top: 75px;
}

.sidenav {
overflow-x: hidden;
}

@keyframes move {
0% {
left: 0;
}

16.7% {
left: 0;
}

33.3% {
left: $foo / 2;
}

50% {
left: $foo - $bar;
}

66.7% {
left: $foo / 2;
}

83.3% {
left: 0;
}

100% {
left: 0;
}
}

@keyframes grow {
0% {
width: $bar;
}

16.7% {
width: $foo / 2;
}

33.3% {
width: $foo / 2;
}

50% {
width: $bar;
}

66.7% {
width: $foo / 2;
}

83.3% {
width: $foo / 2;
}

100% {
width: $bar;
}
}
5 changes: 3 additions & 2 deletions src/app/organization/investors/investors.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
</div>

<div class="mat-elevation-z8 container m-t-20">
<mat-progress-bar mode="indeterminate" *ngIf="isLoading"></mat-progress-bar>

<div *ngIf="isLoading" class="loader">
<div class="loading"></div>
</div>
<mat-accordion *ngIf="existsDataToFilter">
<mat-expansion-panel *ngFor="let record of searchResults;index as i" class="record">
<mat-expansion-panel-header>
Expand Down
80 changes: 80 additions & 0 deletions src/app/organization/investors/investors.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,83 @@
}
}

$bar: 140px;
$foo: $bar * 8;
$color: #e2e4ec;

.loader {
margin-bottom: 39px;
}

.loading {
position: absolute;
width: $bar;
height: 8px;
background: linear-gradient(125deg, rgb(255, 255, 255), #c4d2e9, rgb(255, 255, 255));
animation: grow 4s linear infinite, move 4s linear infinite;
top: 154px;
}

.sidenav {
overflow-x: hidden;
}

@keyframes move {
0% {
left: 0;
}

16.7% {
left: 0;
}

33.3% {
left: $foo / 2;
}

50% {
left: $foo - $bar;
}

66.7% {
left: $foo / 2;
}

83.3% {
left: 0;
}

100% {
left: 0;
}
}

@keyframes grow {
0% {
width: $bar;
}

16.7% {
width: $foo / 2;
}

33.3% {
width: $foo / 2;
}

50% {
width: $bar;
}

66.7% {
width: $foo / 2;
}

83.3% {
width: $foo / 2;
}

100% {
width: $bar;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
</div>
</div>

<div class="table-output" *ngIf="hideOutput">
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
<div *ngIf="hideOutput" class="loader">
<div class="loading"></div>
</div>

<div class="back-button" *ngIf="!hideOutput">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.table-output {
overflow: auto;
}

.select-row:hover {
cursor: pointer;
}
Expand All @@ -18,3 +14,85 @@
max-height: 2%;
margin-bottom: 2%;
}

$bar: 140px;
$foo: $bar * 8;
$color: #e2e4ec;

.loader {
margin-bottom: 39px;
overflow: auto;
}

.loading {
position: absolute;
width: $bar;
height: 8px;
background: linear-gradient(125deg, rgb(255, 255, 255), #c4d2e9, rgb(255, 255, 255));
animation: grow 4s linear infinite, move 4s linear infinite;
top: 82px;
}

.sidenav {
overflow-x: hidden;
}

@keyframes move {
0% {
left: 0;
}

16.7% {
left: 0;
}

33.3% {
left: $foo / 2;
}

50% {
left: $foo - $bar;
}

66.7% {
left: $foo / 2;
}

83.3% {
left: 0;
}

100% {
left: 0;
}
}

@keyframes grow {
0% {
width: $bar;
}

16.7% {
width: $foo / 2;
}

33.3% {
width: $foo / 2;
}

50% {
width: $bar;
}

66.7% {
width: $foo / 2;
}

83.3% {
width: $foo / 2;
}

100% {
width: $bar;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

<mat-progress-bar mode="indeterminate" *ngIf="isLoading"></mat-progress-bar>
<div *ngIf="isLoading" class="loader">
<div class="loading"></div>
</div>

<div class="savings-account-tables" fxLayout="row" fxLayoutGap="2%" *ngIf="!isLoading">

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
$bar: 160px;
$foo: $bar * 8;
$color: #e2e4ec;

.loader {
margin-bottom: 39px;
overflow: auto;
}

.loading {
position: absolute;
width: $bar;
height: 8px;
background: linear-gradient(125deg, rgb(255, 255, 255), #c4d2e9, rgb(255, 255, 255));
animation: grow 4s linear infinite, move 4s linear infinite;
top: 169px;
}

.sidenav {
overflow-x: hidden;
}

@keyframes move {
0% {
left: 0;
}

16.7% {
left: 0;
}

33.3% {
left: $foo / 2;
}

50% {
left: $foo - $bar;
}

66.7% {
left: $foo / 2;
}

83.3% {
left: 0;
}

100% {
left: 0;
}
}

@keyframes grow {
0% {
width: $bar;
}

16.7% {
width: $foo / 2;
}

33.3% {
width: $foo / 2;
}

50% {
width: $bar;
}

66.7% {
width: $foo / 2;
}

83.3% {
width: $foo / 2;
}

100% {
width: $bar;
}
}

0 comments on commit 180a863

Please sign in to comment.