update responsive design
This commit is contained in:
parent
e49820af4a
commit
3453f42ad5
5 changed files with 25 additions and 5 deletions
|
|
@ -3,16 +3,25 @@
|
||||||
<!-- If at least one film has been uploaded -->
|
<!-- If at least one film has been uploaded -->
|
||||||
@if (playMovie === "") {
|
@if (playMovie === "") {
|
||||||
<app-header [browse]="true"></app-header>
|
<app-header [browse]="true"></app-header>
|
||||||
@if (this.checkScreenWidth()) {
|
<!-- Hero Banner -->
|
||||||
<app-hero-banner
|
<app-hero-banner
|
||||||
|
*ngIf="
|
||||||
|
currentMovie.length === 1 ||
|
||||||
|
(this.checkScreenWidth() && currentMovie.length > 1)
|
||||||
|
"
|
||||||
|
[screenWidth]="checkScreenWidth()"
|
||||||
[currentMovie]="currentMovie"
|
[currentMovie]="currentMovie"
|
||||||
(playMovie)="playVideo($event)"
|
(playMovie)="playVideo($event)"
|
||||||
(movieIsUploadedChange)="onMovieIsUploadedChange($event)"
|
(movieIsUploadedChange)="onMovieIsUploadedChange($event)"
|
||||||
></app-hero-banner>
|
></app-hero-banner>
|
||||||
} @else {
|
<!-- Spacer -->
|
||||||
<div class="spacer"></div>
|
<div *ngIf="!this.checkScreenWidth()" class="spacer"></div>
|
||||||
}
|
<!-- Movie Categories -->
|
||||||
<app-categories
|
<app-categories
|
||||||
|
*ngIf="
|
||||||
|
this.checkScreenWidth() ||
|
||||||
|
(!this.checkScreenWidth() && currentMovie.length === 0)
|
||||||
|
"
|
||||||
[movies]="movies"
|
[movies]="movies"
|
||||||
[currentMovie]="currentMovie[0]?.id"
|
[currentMovie]="currentMovie[0]?.id"
|
||||||
(currentMovieId)="currentMovieId($event)"
|
(currentMovieId)="currentMovieId($event)"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@
|
||||||
'_1080p.jpg' +
|
'_1080p.jpg' +
|
||||||
')'
|
')'
|
||||||
}"
|
}"
|
||||||
|
[ngClass]="{
|
||||||
|
fullVh: !screenWidth
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
@if (currentMovie.length > 0) {
|
@if (currentMovie.length > 0) {
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,13 @@ section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fullVh {
|
||||||
|
height: 100vh;
|
||||||
|
&::after {
|
||||||
|
height: 0%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ import { environment } from '../../../../environments/environment';
|
||||||
})
|
})
|
||||||
export class HeroBannerComponent {
|
export class HeroBannerComponent {
|
||||||
@Input() currentMovie: any[] = [];
|
@Input() currentMovie: any[] = [];
|
||||||
|
@Input() screenWidth: boolean = false;
|
||||||
@Output() playMovie = new EventEmitter<string>();
|
@Output() playMovie = new EventEmitter<string>();
|
||||||
@Output() movieIsUploadedChange = new EventEmitter<{
|
@Output() movieIsUploadedChange = new EventEmitter<{
|
||||||
[resolution: string]: boolean;
|
[resolution: string]: boolean;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<header>
|
<header>
|
||||||
@if (browse) {
|
@if (browse) {
|
||||||
<div class="logo" routerLink="/">
|
<div class="logo" routerLink="/browse/">
|
||||||
<img src="./../../../../assets/img/logo_ci.svg" alt="" />
|
<img src="./../../../../assets/img/logo_ci.svg" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue