fix(aio): fix linting issues
This commit is contained in:
parent
6e89f0bf8d
commit
baecb553a6
@ -6,7 +6,7 @@ import { Contributor } from './contributors.model';
|
|||||||
selector: 'aio-contributor',
|
selector: 'aio-contributor',
|
||||||
template: `
|
template: `
|
||||||
<div [ngClass]="{ 'flipped': person.isFlipped }" class="contributor-card">
|
<div [ngClass]="{ 'flipped': person.isFlipped }" class="contributor-card">
|
||||||
|
|
||||||
<div class="card-front" (click)="flipCard(person)">
|
<div class="card-front" (click)="flipCard(person)">
|
||||||
<div *ngIf="person.picture" class="contributor-image" [style.background-image]="'url('+pictureBase+person.picture+')'">
|
<div *ngIf="person.picture" class="contributor-image" [style.background-image]="'url('+pictureBase+person.picture+')'">
|
||||||
</div>
|
</div>
|
||||||
@ -35,17 +35,11 @@ import { Contributor } from './contributors.model';
|
|||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class ContributorComponent {
|
export class ContributorComponent {
|
||||||
@Input() person: Contributor;
|
@Input() person: Contributor;
|
||||||
noPicture = '_no-one.png';
|
noPicture = '_no-one.png';
|
||||||
pictureBase = 'content/images/bios/';
|
pictureBase = 'content/images/bios/';
|
||||||
|
|
||||||
flipCard(person){
|
|
||||||
if(person.isFlipped==true){
|
|
||||||
person.isFlipped=false;
|
|
||||||
}else{
|
|
||||||
person.isFlipped=true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
flipCard(person) {
|
||||||
|
person.isFlipped = !person.isFlipped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,5 +11,5 @@ export class Contributor {
|
|||||||
website?: string;
|
website?: string;
|
||||||
twitter?: string;
|
twitter?: string;
|
||||||
bio?: string;
|
bio?: string;
|
||||||
isFlipped?: boolean = false;
|
isFlipped? = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user