diff options
| author | Ab30657 <amar_ronaldo30657@yahoo.com> | 2021-04-11 15:59:53 +0545 |
|---|---|---|
| committer | Ab30657 <amar_ronaldo30657@yahoo.com> | 2021-04-11 15:59:53 +0545 |
| commit | eacca54ef20e34a8fff5353bd0854ab9cf882883 (patch) | |
| tree | 64d5a7d2e0ba42c158136634ce972e1125a10cd7 /src | |
| parent | 8fbfca8e160141a893c2e30e0e5f36cca4864051 (diff) | |
| download | StreamFinder-eacca54ef20e34a8fff5353bd0854ab9cf882883.tar.xz StreamFinder-eacca54ef20e34a8fff5353bd0854ab9cf882883.zip | |
update on image cards -css
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/app/film/film.component.html | 6 | ||||
| -rw-r--r-- | src/web/src/app/film/film.component.ts | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/web/src/app/film/film.component.html b/src/web/src/app/film/film.component.html index 273dab1..0619f72 100644 --- a/src/web/src/app/film/film.component.html +++ b/src/web/src/app/film/film.component.html @@ -43,7 +43,11 @@ <div class="card-img"> <img class="p-3" - src=" '../../assets/'+'movies pic' " + [src]=" + '../../assets/img/platforms/' + + getProviderImage(i) + + '.png' + " /> </div> <div class="card_title title-white"> diff --git a/src/web/src/app/film/film.component.ts b/src/web/src/app/film/film.component.ts index 6dac982..26dd507 100644 --- a/src/web/src/app/film/film.component.ts +++ b/src/web/src/app/film/film.component.ts @@ -52,4 +52,11 @@ export class FilmComponent implements OnInit { getPrice(i: number) { return this.prices[i]; } + + getProviderImage(i: number) { + console.log( + (this.providers[i] as string).toLowerCase().replace(/ /g, '') + ); + return (this.providers[i] as string).toLowerCase().replace(/ /g, ''); + } } |
