|
1 | | -<h1 class="section-title">{{'topHeroes' | translate}}</h1> |
2 | | -<mat-progress-spinner *ngIf="!heroes" |
3 | | - class="progress-spinner" |
4 | | - [color]="'primary'" |
5 | | - [mode]="'indeterminate'"> |
6 | | -</mat-progress-spinner> |
7 | | -<div id="heroes-list" *ngIf="heroes"> |
8 | | - <ng-container *ngFor="let hero of heroes"> |
9 | | - <mat-card class="hero-card"> |
10 | | - <mat-card-header> |
11 | | - <div mat-card-avatar class="hero-header-image" |
12 | | - [ngStyle]="{'background-image': 'url(https://github.com/assets/images/heroes/'%20+%20hero.id%20+%20'-thumbnail.jpg)'}"></div> |
13 | | - <mat-card-title>{{hero.name}}</mat-card-title> |
14 | | - <mat-card-subtitle>{{hero.alterEgo}}</mat-card-subtitle> |
15 | | - <div class="flex-spacer"></div> |
16 | | - <div class="hero-actions"> |
17 | | - {{hero.likes}} |
18 | | - <mat-icon matTooltip="{{(canVote ? 'canVote' : 'cannotVote') | translate}}" |
19 | | - [matTooltipPosition]="'above'" |
20 | | - class="like-icon" (click)="like(hero)">favorite |
21 | | - </mat-icon> |
22 | | - </div> |
23 | | - </mat-card-header> |
24 | | - <img mat-card-image src="assets/images/heroes/{{hero.id}}.jpg"> |
25 | | - </mat-card> |
26 | | - </ng-container> |
| 1 | +<div fxLayout="row"> |
| 2 | + <div fxFlex="10" fxFlex.gt-sm="20"></div> |
| 3 | + <div fxFlex="90" fxFlex.gt-sm="80"> |
| 4 | + <h1 class="section-title">{{'topHeroes' | translate}}</h1> |
| 5 | + <mat-progress-spinner *ngIf="!heroes" |
| 6 | + class="progress-spinner" |
| 7 | + [color]="'primary'" |
| 8 | + [mode]="'indeterminate'"> |
| 9 | + </mat-progress-spinner> |
| 10 | + <div id="heroes-list" *ngIf="heroes"> |
| 11 | + <ng-container *ngFor="let hero of heroes"> |
| 12 | + <mat-card class="hero-card"> |
| 13 | + <mat-card-header> |
| 14 | + <div mat-card-avatar class="hero-header-image" |
| 15 | + [ngStyle]="{'background-image': 'url(https://github.com/assets/images/heroes/'%20+%20hero.id%20+%20'-thumbnail.jpg)'}"></div> |
| 16 | + <mat-card-title>{{hero.name}}</mat-card-title> |
| 17 | + <mat-card-subtitle>{{hero.alterEgo}}</mat-card-subtitle> |
| 18 | + <div class="flex-spacer"></div> |
| 19 | + <div class="hero-actions"> |
| 20 | + {{hero.likes}} |
| 21 | + <mat-icon matTooltip="{{(canVote ? 'canVote' : 'cannotVote') | translate}}" |
| 22 | + [matTooltipPosition]="'above'" |
| 23 | + class="like-icon" (click)="like(hero)">favorite |
| 24 | + </mat-icon> |
| 25 | + </div> |
| 26 | + </mat-card-header> |
| 27 | + <img mat-card-image src="assets/images/heroes/{{hero.id}}.jpg"> |
| 28 | + </mat-card> |
| 29 | + </ng-container> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + <div fxFlex="10" fxFlex.gt-sm="20"></div> |
27 | 33 | </div> |
0 commit comments