mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 01:56:55 -07:00
Improved Movie layout !wip
This commit is contained in:
parent
e13f2a28fa
commit
b570d904bf
3 changed files with 144 additions and 137 deletions
|
@ -156,8 +156,8 @@
|
|||
margin-right:10px !important;
|
||||
}
|
||||
|
||||
.btn-spacing-below {
|
||||
margin-bottom: 10px;
|
||||
.spacing-below {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
|
|
|
@ -105,45 +105,32 @@
|
|||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 col-md-3">
|
||||
<button *ngIf="movie.belongsToCollection" mat-raised-button class="btn-spacing-below full-width mat-elevation-z8">{{movie.belongsToCollection.name}}</button>
|
||||
<mat-card class="card-full mat-elevation-z8">
|
||||
<div class="col-12 col-md-2">
|
||||
<button *ngIf="movie.belongsToCollection" mat-raised-button
|
||||
class="spacing-below full-width mat-elevation-z8">{{movie.belongsToCollection.name}}</button>
|
||||
|
||||
<mat-card class="mat-elevation-z8">
|
||||
<mat-card-content class="medium-font">
|
||||
<movie-information-panel [movie]="movie"></movie-information-panel>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-9">
|
||||
<mat-card class="card-full mat-elevation-z8">
|
||||
<div class="col-12 col-md-10">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<mat-card class=" mat-elevation-z8 spacing-below">
|
||||
<mat-card-content>
|
||||
{{movie.overview}}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row card-spacer media-row">
|
||||
<div class="col-12 col-md-3">
|
||||
<mat-card class="mat-elevation-z8 keywords-panel">
|
||||
<mat-card-content>
|
||||
<div>
|
||||
<span>
|
||||
<strong>Keywords/Tags:</strong>
|
||||
<mat-chip-list>
|
||||
<mat-chip *ngFor="let keyword of movie.keywords.keywordsValue">
|
||||
{{keyword.name}}
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</span>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-9">
|
||||
<mat-card class="card-full mat-elevation-z8">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<mat-card class="mat-elevation-z8 spacing-below">
|
||||
<mat-card-header>Cast</mat-card-header>
|
||||
<mat-card-content>
|
||||
<p-carousel [value]="movie.credits.cast" [numVisible]="5" easing="easeOutStrong">
|
||||
|
@ -167,11 +154,10 @@
|
|||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row card-spacer media-row">
|
||||
<div class="col-12 col-md-3"></div>
|
||||
|
||||
<div class="col-12 col-md-9">
|
||||
<mat-accordion>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<mat-accordion class="mat-elevation-z8 spacing-below">
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
|
@ -186,8 +172,8 @@
|
|||
<div class="poster">
|
||||
<a [routerLink]="'/details/movie/'+r.id">
|
||||
<img class="real grow" matTooltip="{{r.title}}"
|
||||
src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" alt="Poster"
|
||||
style="display: block;">
|
||||
src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}"
|
||||
alt="Poster" style="display: block;">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -209,8 +195,8 @@
|
|||
<div class="poster ">
|
||||
<a [routerLink]="'/details/movie/'+r.id">
|
||||
<img class="real grow" matTooltip="{{r.title}}"
|
||||
src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}" alt="Poster"
|
||||
style="display: block;">
|
||||
src="https://image.tmdb.org/t/p/w300/{{r.poster_path}}"
|
||||
alt="Poster" style="display: block;">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -229,7 +215,8 @@
|
|||
|
||||
<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" frameborder="0"
|
||||
[src]="'https://www.youtube.com/embed/' + video.key | safe"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
</div>
|
||||
|
@ -238,6 +225,15 @@
|
|||
</mat-accordion>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,19 @@
|
|||
<div *ngIf="movie.genres">
|
||||
<strong>Genres:</strong>
|
||||
<div>
|
||||
<mat-chip-list>
|
||||
<mat-chip *ngFor="let genre of movie.genres">
|
||||
{{genre.name}}
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<div>
|
||||
<strong>Status:</strong>
|
||||
<div>{{movie.status}}</div>
|
||||
</div>
|
||||
<strong>Theatrical Release:</strong>
|
||||
<div>
|
||||
{{movie.releaseDate | date: 'mediumDate'}}
|
||||
|
@ -22,10 +37,6 @@
|
|||
{{movie.voteCount | thousandShort: 1}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Status:</strong>
|
||||
<div>{{movie.status}}</div>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Runtime:</strong>
|
||||
<div>{{movie.runtime}} Minutes</div>
|
||||
|
@ -39,13 +50,13 @@
|
|||
<div> {{movie.budget | currency: 'USD'}}</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="movie.genres">
|
||||
<strong>Genres:</strong>
|
||||
|
||||
<br />
|
||||
<div>
|
||||
<strong>Keywords/Tags:</strong>
|
||||
<mat-chip-list>
|
||||
<mat-chip *ngFor="let genre of movie.genres">
|
||||
{{genre.name}}
|
||||
<mat-chip *ngFor="let keyword of movie.keywords.keywordsValue">
|
||||
{{keyword.name}}
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue