From 592c735c19b25e9b38f82d90d15a81307902ed62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 3 Sep 2019 11:23:20 +0200 Subject: [PATCH] Better welcome modal --- ...stance-config-warning-modal.component.html | 7 +- ...stance-config-warning-modal.component.scss | 2 + ...instance-config-warning-modal.component.ts | 5 ++ .../app/modal/welcome-modal.component.html | 65 +++++++++---------- .../app/modal/welcome-modal.component.scss | 29 +++++++++ 5 files changed, 73 insertions(+), 35 deletions(-) diff --git a/client/src/app/modal/instance-config-warning-modal.component.html b/client/src/app/modal/instance-config-warning-modal.component.html index f9e07333a..64f14e69b 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.html +++ b/client/src/app/modal/instance-config-warning-modal.component.html @@ -10,7 +10,7 @@ -

Please consider to configure these fields to help people to choose the appropriate instance.

+

+ Please consider to configure these fields to help people to choose the appropriate instance. + Without them, your instance may not be referenced on JoinPeerTube website. +

Configure these fields diff --git a/client/src/app/modal/instance-config-warning-modal.component.scss b/client/src/app/modal/instance-config-warning-modal.component.scss index 5888736c1..ff62a1b9c 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.scss +++ b/client/src/app/modal/instance-config-warning-modal.component.scss @@ -17,4 +17,6 @@ li { text-align: center; font-weight: 600; font-size: 18px; + margin-top: 40px; + margin-bottom: 10px; } diff --git a/client/src/app/modal/instance-config-warning-modal.component.ts b/client/src/app/modal/instance-config-warning-modal.component.ts index 08d83f383..742a7dd41 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.ts +++ b/client/src/app/modal/instance-config-warning-modal.component.ts @@ -31,6 +31,11 @@ export class InstanceConfigWarningModalComponent { }) } + isDefaultShortDescription (description: string) { + return description === 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly ' + + 'in the web browser with WebTorrent and Angular.' + } + private doNotOpenAgain () { this.userService.updateMyProfile({ noInstanceConfigWarningModal: true }) .subscribe( diff --git a/client/src/app/modal/welcome-modal.component.html b/client/src/app/modal/welcome-modal.component.html index 79e6d4667..09ff2163b 100644 --- a/client/src/app/modal/welcome-modal.component.html +++ b/client/src/app/modal/welcome-modal.component.html @@ -6,44 +6,42 @@