diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-08 09:13:42 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-04-08 10:07:53 +0200 |
commit | 02dd4f3c65536699cec47c7d4054889fd81b5cd4 (patch) | |
tree | 8ffdd7efec33c52aa5aa1e0f323e902dac28cfeb /client/src/app/+video-channels | |
parent | cdeddff142fd20f8cb8bb346625909d61c596603 (diff) | |
download | PeerTube-02dd4f3c65536699cec47c7d4054889fd81b5cd4.tar.gz PeerTube-02dd4f3c65536699cec47c7d4054889fd81b5cd4.tar.zst PeerTube-02dd4f3c65536699cec47c7d4054889fd81b5cd4.zip |
Display banner on channel page
Diffstat (limited to 'client/src/app/+video-channels')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.html | 4 | ||||
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.scss | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index 87e1b294b..1312a1b3c 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html | |||
@@ -1,4 +1,8 @@ | |||
1 | <div class="root" *ngIf="videoChannel"> | 1 | <div class="root" *ngIf="videoChannel"> |
2 | <div class="banner" *ngIf="videoChannel.bannerUrl"> | ||
3 | <img [src]="videoChannel.bannerUrl" alt="Channel banner"> | ||
4 | </div> | ||
5 | |||
2 | <div class="channel-info"> | 6 | <div class="channel-info"> |
3 | 7 | ||
4 | <ng-template #buttonsTemplate> | 8 | <ng-template #buttonsTemplate> |
diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index 12f5b9f3e..b19b4c81b 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss | |||
@@ -11,6 +11,10 @@ | |||
11 | --myGreyOwnerFontSize: 14px; | 11 | --myGreyOwnerFontSize: 14px; |
12 | } | 12 | } |
13 | 13 | ||
14 | .banner { | ||
15 | @include block-ratio('img', $banner-inverted-ratio); | ||
16 | } | ||
17 | |||
14 | .section-label { | 18 | .section-label { |
15 | @include section-label-responsive; | 19 | @include section-label-responsive; |
16 | } | 20 | } |