added the cast to the movie info page !wip

pull/3895/head
tidusjar 6 years ago
parent 8230980e88
commit bcb22c6bec

@ -21,7 +21,7 @@
</section> </section>
<section id="info-wrapper"> <section id="info-wrapper">
<div class="container"> <div class="small-middle-container">
<div class="row"> <div class="row">
<div class="col-md-2 col-sm-3 hidden-xs"> <div class="col-md-2 col-sm-3 hidden-xs">
<div class="sidebar sidebar-poster affixable affix-top" style="width: 173px;"> <div class="sidebar sidebar-poster affixable affix-top" style="width: 173px;">
@ -35,31 +35,33 @@
</div> </div>
<!--Next to poster--> <!--Next to poster-->
<div class="col-6 media-row"> <div class="col-lg-12 col-xl-6 media-row">
<a *ngIf="movie.homepage" class="media-icons" h href="{{movie.homepage}}" target="_blank"> <a *ngIf="movie.homepage" class="media-icons" h href="{{movie.homepage}}" target="_blank">
<i matTooltip="Homepage" class="fa fa-home fa-2x grow"></i> <i matTooltip="Homepage" class="fa fa-home fa-2x grow"></i>
</a> </a>
<a *ngIf="movie.id" href="https://www.themoviedb.org/movie/{{movie.id}}" class="media-icons" target="_blank"> <a *ngIf="movie.id" href="https://www.themoviedb.org/movie/{{movie.id}}" class="media-icons"
target="_blank">
<i matTooltip="The Movie DB" class="fa fa-film fa-2x grow"></i> <i matTooltip="The Movie DB" class="fa fa-film fa-2x grow"></i>
</a> </a>
<a *ngIf="movie.videos.results.length > 0" class="media-icons" (click)="openDialog()"><i matTooltip="Trailer" <a *ngIf="movie.videos.results.length > 0" class="media-icons" (click)="openDialog()"><i
class="fa fa-youtube-play fa-2x grow"></i></a> matTooltip="Trailer" class="fa fa-youtube-play fa-2x grow"></i></a>
<a *ngIf="movie.imdbId" class="media-icons" href="https://imdb.com/title/{{movie.imdbId}}" target="_blank"> <a *ngIf="movie.imdbId" class="media-icons" href="https://imdb.com/title/{{movie.imdbId}}"
target="_blank">
<i matTooltip="Imdb" class="fa fa-imdb fa-2x grow"></i> <i matTooltip="Imdb" class="fa fa-imdb fa-2x grow"></i>
</a> </a>
<a *ngIf="movie.externalIds.twitterId" class="media-icons" href="https://twitter.com/{{movie.externalIds.twitterId}}" <a *ngIf="movie.externalIds.twitterId" class="media-icons"
target="_blank"> href="https://twitter.com/{{movie.externalIds.twitterId}}" target="_blank">
<i matTooltip="Twitter" class="fa fa-twitter fa-2x grow"></i> <i matTooltip="Twitter" class="fa fa-twitter fa-2x grow"></i>
</a> </a>
<a *ngIf="movie.externalIds.facebookId" class="media-icons" href="https://facebook.com/{{movie.externalIds.facebookId}}" <a *ngIf="movie.externalIds.facebookId" class="media-icons"
target="_blank"> href="https://facebook.com/{{movie.externalIds.facebookId}}" target="_blank">
<i matTooltip="Facebook" class="fa fa-facebook fa-2x grow"></i> <i matTooltip="Facebook" class="fa fa-facebook fa-2x grow"></i>
</a> <a *ngIf="movie.externalIds.instagramId" class="media-icons" href="https://instagram.com/{{movie.externalIds.instagramId}}" </a> <a *ngIf="movie.externalIds.instagramId" class="media-icons"
target="_blank"> href="https://instagram.com/{{movie.externalIds.instagramId}}" target="_blank">
<i matTooltip="Instagram" class="fa fa-instagram fa-2x grow"></i> <i matTooltip="Instagram" class="fa fa-instagram fa-2x grow"></i>
</a> </a>
@ -68,12 +70,13 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-3 "> <div class="col-12 col-md-3 ">
<mat-card class="card-full mat-elevation-z8"> <mat-card class="card-full mat-elevation-z8">
<mat-card-content> <mat-card-content>
<div> <div>
<small><strong>Theatrical Release:</strong> {{movie.releaseDate | date: 'mediumDate'}}</small></div> <small><strong>Theatrical Release:</strong>
{{movie.releaseDate | date: 'mediumDate'}}</small></div>
<div> <div>
<small *ngIf="movie.digitalReleaseDate"><strong>Digital Release:</strong> <small *ngIf="movie.digitalReleaseDate"><strong>Digital Release:</strong>
{{movie.digitalReleaseDate | date: {{movie.digitalReleaseDate | date:
@ -98,7 +101,8 @@
'USD'}}</small> 'USD'}}</small>
</div> </div>
<div> <div>
<small *ngIf="movie.budget"><strong>Budget:</strong> {{movie.budget | currency: 'USD'}}</small> <small *ngIf="movie.budget"><strong>Budget:</strong>
{{movie.budget | currency: 'USD'}}</small>
</div> </div>
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
@ -106,21 +110,22 @@
</div> </div>
<div class="col-md-7"> <div class="col-12 col-md-7">
<mat-card class="card-full mat-elevation-z8"> <mat-card class="card-full mat-elevation-z8">
<mat-card-content> <mat-card-content>
{{movie.overview}} {{movie.overview}}
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
</div> </div>
<div class="col-md-2 card-full"> <div class="col-12 col-md-2 card-full">
<div><button mat-raised-button class="btn-green btn-spacing" *ngIf="movie.available"> {{ <div><button mat-raised-button class="btn-green btn-spacing" *ngIf="movie.available"> {{
'Common.Available' | translate }}</button></div> 'Common.Available' | translate }}</button></div>
<div *ngIf="!movie.available"> <div *ngIf="!movie.available">
<div *ngIf="movie.requested || movie.approved; then requestedBtn else notRequestedBtn"></div> <div *ngIf="movie.requested || movie.approved; then requestedBtn else notRequestedBtn"></div>
<ng-template #requestedBtn> <ng-template #requestedBtn>
<button mat-raised-button class="btn-spacing btn-orange" [disabled]><i class="fa fa-check"></i> <button mat-raised-button class="btn-spacing btn-orange" [disabled]><i
class="fa fa-check"></i>
{{ 'Common.Requested' | translate }}</button> {{ 'Common.Requested' | translate }}</button>
</ng-template> </ng-template>
<ng-template #notRequestedBtn> <ng-template #notRequestedBtn>
@ -133,25 +138,26 @@
</div> </div>
<div><button mat-raised-button class="btn-spacing" color="warn">Deny</button></div> <div><button mat-raised-button class="btn-spacing" color="warn">Deny</button></div>
<div *ngIf="movie.available"> <div *ngIf="movie.available">
<a *ngIf="movie.plexUrl" mat-raised-button style="text-align: right" class="btn-spacing btn-greem" <a *ngIf="movie.plexUrl" mat-raised-button style="text-align: right"
href="{{movie.plexUrl}}" target="_blank"><i class="fa fa-eye"></i> {{'Search.ViewOnPlex' | class="btn-spacing btn-greem" href="{{movie.plexUrl}}" target="_blank"><i
class="fa fa-eye"></i> {{'Search.ViewOnPlex' |
translate}}</a> translate}}</a>
<a *ngIf="movie.embyUrl" mat-raised-button class="btn-green btn-spacing" href="{{movie.embyUrl}}" <a *ngIf="movie.embyUrl" mat-raised-button class="btn-green btn-spacing"
target="_blank"><i class="fa fa-eye"></i> {{'Search.ViewOnEmby' | href="{{movie.embyUrl}}" target="_blank"><i class="fa fa-eye"></i> {{'Search.ViewOnEmby' |
translate}}</a> translate}}</a>
</div> </div>
</div> </div>
</div> </div>
<div class="row card-spacer"> <div class="row card-spacer">
<div class="col-md-2"> <div class="col-12 col-md-2">
</div> </div>
</div> </div>
<div class="row card-spacer"> <div class="row card-spacer">
<div class="col-12"> <div class="col-12 col-md-10">
<mat-accordion> <mat-accordion>
<mat-expansion-panel> <mat-expansion-panel>
<mat-expansion-panel-header> <mat-expansion-panel-header>
@ -166,8 +172,9 @@
<div class="sidebar affixable affix-top preview-poster"> <div class="sidebar affixable affix-top preview-poster">
<div class="poster"> <div class="poster">
<a [routerLink]="'/details/movie/'+r.id"> <a [routerLink]="'/details/movie/'+r.id">
<img class="real grow" matTooltip="{{r.title}}" src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" <img class="real grow" matTooltip="{{r.title}}"
alt="Poster" style="display: block;"> src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" alt="Poster"
style="display: block;">
</a> </a>
</div> </div>
</div> </div>
@ -188,8 +195,9 @@
<div class="sidebar affixable affix-top preview-poster"> <div class="sidebar affixable affix-top preview-poster">
<div class="poster "> <div class="poster ">
<a [routerLink]="'/details/movie/'+r.id"> <a [routerLink]="'/details/movie/'+r.id">
<img class="real grow" matTooltip="{{r.title}}" src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" <img class="real grow" matTooltip="{{r.title}}"
alt="Poster" style="display: block;"> src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" alt="Poster"
style="display: block;">
</a> </a>
</div> </div>
</div> </div>
@ -207,14 +215,36 @@
<div class="row card-spacer" *ngIf="movie.videos.results.length > 0"> <div class="row card-spacer" *ngIf="movie.videos.results.length > 0">
<div class="col-md-6" *ngFor="let video of movie.videos.results"> <div class="col-md-6" *ngFor="let video of movie.videos.results">
<iframe width="100%" height="315px" [src]="'https://www.youtube.com/embed/' + video.key | safe" <iframe width="100%" height="315px"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" [src]="'https://www.youtube.com/embed/' + video.key | safe" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe> allowfullscreen></iframe>
</div> </div>
</div> </div>
</mat-expansion-panel> </mat-expansion-panel>
</mat-accordion> </mat-accordion>
</div> </div>
<div class="col-12 col-md-2">
<div *ngFor="let castIndex of [0,1,2,3,4]" class="row align-items-center cast-row ">
<div class="col-4">
<img src="https://image.tmdb.org/t/p/w300/{{movie.credits.cast[castIndex].profile_path}}"
class="cast-profile-img mat-elevation-z8" />
</div>
<div class="col-8">
<div class="row cast-names">
<div class="col-12">
<div><small>{{movie.credits.cast[castIndex].character}}</small></div>
</div>
<div class="col-12 cast-name">
<div><small>{{movie.credits.cast[castIndex].name}}</small></div>
</div>
</div>
</div>
</div>
</div>
</div> </div>
@ -223,13 +253,6 @@
</div> </div>
</section> </section>
<!-- THIS IS THE YOUTUBE VIDEOS
<div *ngFor="let video of movie.videos.results">
<iframe width="560" height="315" [src]="'https://www.youtube.com/embed/' + video.key | safe" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div> -->

@ -179,3 +179,24 @@ section {
.media-row { .media-row {
padding-top: 2%; padding-top: 2%;
} }
.cast-profile-img {
width: 65px;
border-radius: 25%;
}
.cast-names {
margin-left:0;
}
.cast-name {
padding-top:15%;
}
.cast-row {
margin-top: 10%;
}
.small-middle-container{
margin: auto;
width: 86%;
}

Loading…
Cancel
Save