From d2cc03aaad62fa6cf1c64622229bcc83f24fccb6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Dec 2017 11:04:08 +0100 Subject: Design account videos --- .../account-videos/account-videos.component.html | 12 +++++- .../account-videos/account-videos.component.scss | 44 ++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) (limited to 'client/src/app/account') diff --git a/client/src/app/account/account-videos/account-videos.component.html b/client/src/app/account/account-videos/account-videos.component.html index 6c8ac4508..94b976869 100644 --- a/client/src/app/account/account-videos/account-videos.component.html +++ b/client/src/app/account/account-videos/account-videos.component.html @@ -3,7 +3,17 @@ [infiniteScrollDistance]="0.5" (scrolled)="onNearOfBottom()" > -
+
+ +
+
{{ video.name }}
+ {{ video.createdAt | fromNow }} - {{ video.views | numberFormatter }} views +
+ + + + Edit +
diff --git a/client/src/app/account/account-videos/account-videos.component.scss b/client/src/app/account/account-videos/account-videos.component.scss index e69de29bb..b26933d22 100644 --- a/client/src/app/account/account-videos/account-videos.component.scss +++ b/client/src/app/account/account-videos/account-videos.component.scss @@ -0,0 +1,44 @@ +.video { + display: flex; + height: 130px; + padding-bottom: 20px; + margin-bottom: 20px; + border-bottom: 1px solid #C6C6C6; + + my-video-thumbnail { + margin-right: 10px; + } + + .video-info { + flex-grow: 1; + + .video-info-name { + font-size: 16px; + font-weight: $font-semibold; + } + + .video-info-date-views { + font-size: 13px; + } + } + + .edit-button { + @include peertube-button-link; + + font-size: 15px; + font-weight: $font-semibold; + color: #585858; + background-color: #E5E5E5; + + .icon.icon-edit { + display: inline-block; + background: url('../../../assets/images/account/edit.svg') no-repeat; + background-size: contain; + width: 21px; + height: 21px; + vertical-align: middle; + position: relative; + top: -2px; + } + } +} -- cgit v1.2.3