-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete WEB-5319 preloader for articles
- Loading branch information
1 parent
96ba51d
commit 32592b7
Showing
10 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './loader.component'; | ||
export * from './loader.module'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="gc-flex gc-flex-h-center gc-p-section-vertical"> | ||
<div class="dot-flashing"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@import '../../../scss/variables.scss'; | ||
|
||
/** | ||
* ============================================== | ||
* Dot Flashing https://codepen.io/nzbin/pen/GGrXbp | ||
* ============================================== | ||
*/ | ||
.dot-flashing { | ||
position: relative; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 5px; | ||
background-color: $contentLink; | ||
color: $contentLink; | ||
animation: dotFlashing 1s infinite linear alternate; | ||
animation-delay: 0.5s; | ||
} | ||
|
||
.dot-flashing::before, | ||
.dot-flashing::after { | ||
content: ''; | ||
display: inline-block; | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
||
.dot-flashing::before { | ||
left: -15px; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 5px; | ||
background-color: $contentLink; | ||
color: $contentLink; | ||
animation: dotFlashing 1s infinite alternate; | ||
animation-delay: 0s; | ||
} | ||
|
||
.dot-flashing::after { | ||
left: 15px; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 5px; | ||
background-color: $contentLink; | ||
color: $contentLink; | ||
animation: dotFlashing 1s infinite alternate; | ||
animation-delay: 1s; | ||
} | ||
|
||
@keyframes dotFlashing { | ||
0% { | ||
background-color: $contentLink; | ||
} | ||
50%, | ||
100% { | ||
background-color: #fff; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { LoaderComponent } from './loader.component'; | ||
|
||
describe('LoaderComponent', () => { | ||
let component: LoaderComponent; | ||
let fixture: ComponentFixture<LoaderComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [LoaderComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(LoaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'gcore-loader', | ||
templateUrl: './loader.component.html', | ||
styleUrls: ['./loader.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class LoaderComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { LoaderComponent } from './loader.component'; | ||
|
||
@NgModule({ | ||
declarations: [LoaderComponent], | ||
imports: [CommonModule], | ||
exports: [LoaderComponent], | ||
}) | ||
export class LoaderModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters