Skip to content

Commit

Permalink
feat(package): enhanced the animations of the auth providers component
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Aug 18, 2019
1 parent 27b7704 commit 708b3a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/module/components/providers/auth.providers.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
Microsoft
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Yahoo)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-button
[ngClass.xs]="{'space-full-xs':true}"
(click)="authProcess.signInWith(authProvider.Yahoo)">
Expand Down Expand Up @@ -230,36 +231,42 @@
[fxLayout]="layout"
[fxLayoutAlign]="layout == 'row' ? 'space-around center' : 'stretch'">
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Google)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="google-raised"
(click)="authProcess.signInWith(authProvider.Google)">
<mat-icon svgIcon="google"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Facebook)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="facebook-raised"
(click)="authProcess.signInWith(authProvider.Facebook)">
<mat-icon svgIcon="facebook"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Twitter)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="twitter-raised"
(click)="authProcess.signInWith(authProvider.Twitter)">
<mat-icon svgIcon="twitter"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Github)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="github-raised"
(click)="authProcess.signInWith(authProvider.Github)">
<mat-icon svgIcon="github"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Microsoft)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="microsoft"
(click)="authProcess.signInWith(authProvider.Microsoft)">
<mat-icon svgIcon="microsoft"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Yahoo)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-fab
class="yahoo-raised"
(click)="authProcess.signInWith(authProvider.Yahoo)">
Expand All @@ -274,37 +281,43 @@
fxLayoutAlign.xs="center center"
[fxLayoutAlign]="layout == 'row' ? 'space-around center' : 'stretch'">
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Google)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="google-raised"
fxFlexAlign="center"
(click)="authProcess.signInWith(authProvider.Google)">
<mat-icon svgIcon="google"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Facebook)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="facebook-raised"
(click)="authProcess.signInWith(authProvider.Facebook)">
<mat-icon svgIcon="facebook"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Twitter)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="twitter-raised"
(click)="authProcess.signInWith(authProvider.Twitter)">
<mat-icon svgIcon="twitter" class="icon-white"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Github)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="github-raised"
(click)="authProcess.signInWith(authProvider.Github)">
<mat-icon svgIcon="github"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Microsoft)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="microsoft"
(click)="authProcess.signInWith(authProvider.Microsoft)">
<mat-icon svgIcon="microsoft"></mat-icon>
</button>
<button *ngIf="providers === authProvider.ALL || providers.includes(authProvider.Yahoo)"
[@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"
mat-mini-fab
class="yahoo-raised"
(click)="authProcess.signInWith(authProvider.Yahoo)">
Expand Down

0 comments on commit 708b3a2

Please sign in to comment.