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 (playMovie === "") {
|
||||
<app-header [browse]="true"></app-header>
|
||||
@if (this.checkScreenWidth()) {
|
||||
<!-- Hero Banner -->
|
||||
<app-hero-banner
|
||||
*ngIf="
|
||||
currentMovie.length === 1 ||
|
||||
(this.checkScreenWidth() && currentMovie.length > 1)
|
||||
"
|
||||
[screenWidth]="checkScreenWidth()"
|
||||
[currentMovie]="currentMovie"
|
||||
(playMovie)="playVideo($event)"
|
||||
(movieIsUploadedChange)="onMovieIsUploadedChange($event)"
|
||||
></app-hero-banner>
|
||||
} @else {
|
||||
<div class="spacer"></div>
|
||||
}
|
||||
<!-- Spacer -->
|
||||
<div *ngIf="!this.checkScreenWidth()" class="spacer"></div>
|
||||
<!-- Movie Categories -->
|
||||
<app-categories
|
||||
*ngIf="
|
||||
this.checkScreenWidth() ||
|
||||
(!this.checkScreenWidth() && currentMovie.length === 0)
|
||||
"
|
||||
[movies]="movies"
|
||||
[currentMovie]="currentMovie[0]?.id"
|
||||
(currentMovieId)="currentMovieId($event)"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
'_1080p.jpg' +
|
||||
')'
|
||||
}"
|
||||
[ngClass]="{
|
||||
fullVh: !screenWidth
|
||||
}"
|
||||
>
|
||||
@if (currentMovie.length > 0) {
|
||||
<div class="content">
|
||||
|
|
|
|||
|
|
@ -27,6 +27,13 @@ section {
|
|||
}
|
||||
}
|
||||
|
||||
.fullVh {
|
||||
height: 100vh;
|
||||
&::after {
|
||||
height: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
width: 50%;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import { environment } from '../../../../environments/environment';
|
|||
})
|
||||
export class HeroBannerComponent {
|
||||
@Input() currentMovie: any[] = [];
|
||||
@Input() screenWidth: boolean = false;
|
||||
@Output() playMovie = new EventEmitter<string>();
|
||||
@Output() movieIsUploadedChange = new EventEmitter<{
|
||||
[resolution: string]: boolean;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<header>
|
||||
@if (browse) {
|
||||
<div class="logo" routerLink="/">
|
||||
<div class="logo" routerLink="/browse/">
|
||||
<img src="./../../../../assets/img/logo_ci.svg" alt="" />
|
||||
</div>
|
||||
<div class="btn">
|
||||
|
|
|
|||
Loading…
Reference in a new issue