|
|
@@ -0,0 +1,48 @@ |
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'app-collections', |
|
|
|
templateUrl: './collections.page.html', |
|
|
|
styleUrls: ['./collections.page.scss'], |
|
|
|
}) |
|
|
|
export class CollectionsPage implements OnInit { |
|
|
|
|
|
|
|
slideOpts = { |
|
|
|
slidesPerView: 1, |
|
|
|
spaceBetween: 0, |
|
|
|
initialSlide: 0, |
|
|
|
centeredSlides: true, |
|
|
|
simulateTouch: false, |
|
|
|
followFinger: false, |
|
|
|
loop: true, |
|
|
|
}; |
|
|
|
|
|
|
|
collections: Array<{ |
|
|
|
name: string, |
|
|
|
details: string, |
|
|
|
image: string, |
|
|
|
type: 'BAT' | 'BALL' | 'INVERTED BAT' |
|
|
|
}> |
|
|
|
|
|
|
|
constructor() { } |
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
this.collections = [{ |
|
|
|
name: 'Wooden Bat', |
|
|
|
details: 'Signed by Sehwag', |
|
|
|
image: 'assets/collections/bat.png', |
|
|
|
type: 'BAT' |
|
|
|
}, { |
|
|
|
name: 'Leather Ball', |
|
|
|
details: 'Signed by Sehwag', |
|
|
|
image: 'assets/collections/ball.png', |
|
|
|
type: 'BALL' |
|
|
|
}, { |
|
|
|
name: 'Golden Bat', |
|
|
|
details: 'Oracle of IPL award', |
|
|
|
image: 'assets/collections/golden-bat.png', |
|
|
|
type: 'INVERTED BAT' |
|
|
|
}]; |
|
|
|
} |
|
|
|
|
|
|
|
} |