diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-16 16:10:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-16 16:16:51 +0200 |
commit | c4a051712bc7385967a21895d025962e317c7870 (patch) | |
tree | 59017cae7a6bff45216694dc44a65f72e9ad48c2 /client/src/app/+signup/+verify-account | |
parent | ef2b5520f963deec43abd0a11881473c45965788 (diff) | |
download | PeerTube-c4a051712bc7385967a21895d025962e317c7870.tar.gz PeerTube-c4a051712bc7385967a21895d025962e317c7870.tar.zst PeerTube-c4a051712bc7385967a21895d025962e317c7870.zip |
Cleanup title-page CSS
Diffstat (limited to 'client/src/app/+signup/+verify-account')
3 files changed, 13 insertions, 21 deletions
diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html index ece9d1022..023082f61 100644 --- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html +++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html | |||
@@ -1,21 +1,21 @@ | |||
1 | <div class="margin-content"> | 1 | <div class="margin-content"> |
2 | <div i18n class="title-page title-page-single"> | 2 | <h1 i18n class="title-page">Request email for account verification</h1> |
3 | Request email for account verification | ||
4 | </div> | ||
5 | 3 | ||
6 | <form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" role="form" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form"> | 4 | <form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" role="form" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form"> |
7 | <div class="form-group"> | 5 | <div class="form-group"> |
8 | <label i18n for="verify-email-email">Email</label> | 6 | <label i18n for="verify-email-email">Email</label> |
7 | |||
9 | <input | 8 | <input |
10 | type="email" id="verify-email-email" i18n-placeholder placeholder="Email address" required | 9 | type="email" id="verify-email-email" i18n-placeholder placeholder="Email address" required |
11 | formControlName="verify-email-email" class="form-control" [ngClass]="{ 'input-error': formErrors['verify-email-email'] }" | 10 | formControlName="verify-email-email" class="form-control" [ngClass]="{ 'input-error': formErrors['verify-email-email'] }" |
12 | > | 11 | > |
13 | <div *ngIf="formErrors['verify-email-email']" class="form-error"> | 12 | |
14 | {{ formErrors['verify-email-email'] }} | 13 | <div *ngIf="formErrors['verify-email-email']" class="form-error">{{ formErrors['verify-email-email'] }}</div> |
15 | </div> | ||
16 | </div> | 14 | </div> |
17 | <input type="submit" i18n-value value="Send verification email" [disabled]="!form.valid"> | 15 | |
16 | <input class="peertube-button orange-button" type="submit" i18n-value value="Send verification email" [disabled]="!form.valid"> | ||
18 | </form> | 17 | </form> |
18 | |||
19 | <ng-template #emailVerificationNotRequired> | 19 | <ng-template #emailVerificationNotRequired> |
20 | <div i18n>This instance does not require email verification.</div> | 20 | <div i18n>This instance does not require email verification.</div> |
21 | </ng-template> | 21 | </ng-template> |
diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.scss b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.scss index 5494e29c6..c542f3d8a 100644 --- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.scss +++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.scss | |||
@@ -1,12 +1,8 @@ | |||
1 | @use '_variables' as *; | 1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | input:not([type=submit]) { | 4 | input[type=email] { |
5 | @include peertube-input-text(340px); | 5 | @include peertube-input-text(340px); |
6 | display: block; | ||
7 | } | ||
8 | 6 | ||
9 | input[type=submit] { | 7 | display: block; |
10 | @include peertube-button; | ||
11 | @include orange-button; | ||
12 | } | 8 | } |
diff --git a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.html b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.html index 327e23f3f..122f3c28c 100644 --- a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.html +++ b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.html | |||
@@ -1,18 +1,14 @@ | |||
1 | <div class="margin-content"> | 1 | <div class="margin-content"> |
2 | <div i18n class="title-page title-page-single"> | 2 | <h1 i18n class="title-page">Verify account email confirmation</h1> |
3 | Verify account email confirmation | ||
4 | </div> | ||
5 | 3 | ||
6 | <my-signup-success i18n *ngIf="!isPendingEmail && success" [requiresEmailVerification]="false"> | 4 | <my-signup-success i18n *ngIf="!isPendingEmail && success" [requiresEmailVerification]="false"> |
7 | </my-signup-success> | 5 | </my-signup-success> |
8 | 6 | ||
9 | <div i18n class="alert alert-success" *ngIf="isPendingEmail && success"> | 7 | <div i18n class="alert alert-success" *ngIf="isPendingEmail && success">Email updated.</div> |
10 | Email updated. | ||
11 | </div> | ||
12 | 8 | ||
13 | <div *ngIf="failed"> | 9 | <div class="alert alert-danger" *ngIf="failed"> |
14 | <span i18n>An error occurred.</span> | 10 | <span i18n>An error occurred.</span> |
15 | 11 | ||
16 | <a i18n routerLink="/verify-account/ask-send-email" [queryParams]="{ isPendingEmail: isPendingEmail }">Request new verification email.</a> | 12 | <a i18n class="ms-1 link-orange" routerLink="/verify-account/ask-send-email" [queryParams]="{ isPendingEmail: isPendingEmail }">Request new verification email</a> |
17 | </div> | 13 | </div> |
18 | </div> | 14 | </div> |