add show title and overview

This commit is contained in:
Diabltica
2021-07-30 21:25:06 +02:00
parent f0f7d62dd2
commit fce217ac8c
3 changed files with 31 additions and 8 deletions
+11 -1
View File
@@ -1,2 +1,12 @@
<div class="backdrop"> <img id="backdrop" [src]="this.show.backdrop" alt="backdrop" /></div>
<div>
<div class="containerBox">
<div class="textBox">
<h2 class="show-title">{{this.show.title}}</h2>
<h6 class="show-overview">{{this.show.overview}}</h6>
</div>
<div class="backdrop">
<img id="backdrop" [src]="this.show.backdrop" alt="backdrop" />
</div>
</div>
</div>
+17 -7
View File
@@ -3,13 +3,6 @@
@import "~bootstrap/scss/mixins/breakpoints";
@import "variables";
//.recommendation{
// margin: auto;
// width: 90%;
// border: 2px solid #e23c00;
// padding-bottom: 30%;
// text-align: center;
//}
.backdrop
{
margin-top: -68px;
@@ -45,3 +38,20 @@
}
}
.textBox
{
position: absolute;
top:45%;
left:1.5%;
right: 70%;
text-align: justify;
}
.containerBox {
position: relative;
}
.show-title
{
font-size: xxx-large;
}
@@ -78,4 +78,7 @@ export class HomepageComponent implements AfterViewInit, OnDestroy
this.scrollZone.style.marginTop = null;
this.scrollZone.style.maxHeight = null;
}
scroll(): void {
const opacity: number = 2 * this.scrollZone.scrollTop / this.backdrop.clientHeight;
}
}