-
+
+
-
- {{video0.title}}
+
+
{{video0.title}}
+
+
+ {{video.views | number: '1.0-0'}} vues
+
+
+ Publiée le {{ video.publishedAt | date:'dd/LL/YYYY à HH:mm:ss' }}
+
@@ -216,9 +223,11 @@
+
diff --git a/src/app/user/watching/page-watching-video/page-watching-video.component.scss b/src/app/user/watching/page-watching-video/page-watching-video.component.scss
index 52a8508..fa8de70 100644
--- a/src/app/user/watching/page-watching-video/page-watching-video.component.scss
+++ b/src/app/user/watching/page-watching-video/page-watching-video.component.scss
@@ -29,6 +29,8 @@
.playlistContainer {
border: solid 1px black;
width: 98%;
+ border-top-right-radius: 10px;
+ border-top-left-radius: 10px;
}
.topBorder {
@@ -37,6 +39,8 @@
text-align: left;
padding: 5px 0px 5px 5px;
border-bottom: solid 1px black;
+ border-top-right-radius: 10px;
+ border-top-left-radius: 10px;
}
.listVideoContainer {
@@ -49,7 +53,19 @@
margin: 0px 0px 0px 0px;
padding: 10px 0px 10px 10px;
border-bottom: solid 1px black;
+ cursor: pointer;
}
+.videoCell:hover {
+ background-color: #f0f0f0;
+}
+
+.videoCellFocus {
+ background-color: #e6e6e6;
+}
+.videoCellFocus:hover {
+ background-color: #e6e6e6;
+}
+
// ----
@@ -76,14 +92,40 @@
padding: 0px 0px 0px 0px;
}
-.titleContainer {
+// ----
+
+.infoContainer {
display: table-cell;
margin-left: 13vw;
height: 10vh;
- padding-left: 2px;
+ padding-left: 5px;
vertical-align: middle;
}
+.titleContainer {
+ font-weight: bold;
+ text-align: left;
+}
+
+.viewsContainer {
+ text-align: left;
+ display: flex;
+ align-items: center;
+ font-size: x-small;
+ color: grey;
+}
+mat-icon {
+ vertical-align: middle;
+ //font-size: x-small;
+}
+
+.publishedAtContainer {
+ text-align: left;
+ font-size: x-small;
+ color: grey;
+}
+
+
// ----
.bottomBorder {
diff --git a/src/app/user/watching/page-watching-video/page-watching-video.component.ts b/src/app/user/watching/page-watching-video/page-watching-video.component.ts
index 5f4235e..8306531 100644
--- a/src/app/user/watching/page-watching-video/page-watching-video.component.ts
+++ b/src/app/user/watching/page-watching-video/page-watching-video.component.ts
@@ -117,4 +117,13 @@ export class PageWatchingVideoComponent implements OnInit
else if(source === 'dailymotion') videoUrl = "https://www.dailymotion.com/embed/video/" + videoId;
return this._sanitizer.bypassSecurityTrustResourceUrl(videoUrl);
}
+
+
+ // retourne la classe CSS de videoCell
+ getClassOfVideoCell(video0: VideoAll): string
+ {
+ if(video0 === this.video) return "videoCell videoCellFocus" ;
+ else return "videoCell" ;
+ }
+
}