diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-14 13:54:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-15 13:31:53 +0200 |
commit | 6f03f944c34f78b38a68128413b55186e0676949 (patch) | |
tree | 81a0c79184cb5ac800c31f1d5334471ee506ac19 /client/src/app/+signup/+register/custom-stepper.component.html | |
parent | 936ce6e5635f3a52acbc799e1fcba9a948a7e390 (diff) | |
download | PeerTube-6f03f944c34f78b38a68128413b55186e0676949.tar.gz PeerTube-6f03f944c34f78b38a68128413b55186e0676949.tar.zst PeerTube-6f03f944c34f78b38a68128413b55186e0676949.zip |
Redesign register steps
Diffstat (limited to 'client/src/app/+signup/+register/custom-stepper.component.html')
-rw-r--r-- | client/src/app/+signup/+register/custom-stepper.component.html | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/client/src/app/+signup/+register/custom-stepper.component.html b/client/src/app/+signup/+register/custom-stepper.component.html index a07e2fca3..f43a46842 100644 --- a/client/src/app/+signup/+register/custom-stepper.component.html +++ b/client/src/app/+signup/+register/custom-stepper.component.html | |||
@@ -1,24 +1,29 @@ | |||
1 | <section class="container"> | 1 | <section> |
2 | <header *ngIf="steps.length > 2"> | 2 | <header *ngIf="steps.length > 2"> |
3 | <ng-container *ngFor="let step of steps; let i = index; let isLast = last;"> | 3 | <div class="header-steps"> |
4 | <div | 4 | <ng-container *ngFor="let step of steps; let i = index; let isLast = last;"> |
5 | class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step), 'c-hand': isAccessible(i) }" [attr.aria-current]="selectedIndex === i" | 5 | <div |
6 | (click)="onClick(i)" | 6 | class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step), 'c-hand': isAccessible(step) }" [attr.aria-current]="selectedIndex === i" |
7 | > | 7 | (click)="onClick(i)" |
8 | <div class="step-index"> | 8 | > |
9 | <ng-container *ngIf="!isCompleted(step)"><span class="visually-hidden" i18n>Step</span> {{ i + 1 }}</ng-container> | 9 | <div class="step-index"> |
10 | <my-global-icon *ngIf="isCompleted(step)" iconName="tick"></my-global-icon> | 10 | <span class="visually-hidden" i18n>Step</span> {{ i + 1 }} |
11 | </div> | 11 | |
12 | <div class="completed-icon" *ngIf="isCompleted(step)"> | ||
13 | <my-global-icon iconName="tick"></my-global-icon> | ||
14 | </div> | ||
15 | </div> | ||
12 | 16 | ||
13 | <div class="step-label">{{ step.label }}</div> | 17 | <div class="step-label">{{ step.label }}</div> |
14 | </div> | 18 | </div> |
15 | 19 | ||
16 | <!-- Do no display if this is the last child --> | 20 | <!-- Do no display if this is the last child --> |
17 | <div *ngIf="!isLast" class="connector"></div> | 21 | <div *ngIf="!isLast" class="connector"></div> |
18 | </ng-container> | 22 | </ng-container> |
23 | </div> | ||
19 | </header> | 24 | </header> |
20 | 25 | ||
21 | <div [style.display]="selected ? 'block' : 'none'"> | 26 | <div class="margin-content" [style.display]="selected ? 'block' : 'none'"> |
22 | <ng-container [ngTemplateOutlet]="selected.content"></ng-container> | 27 | <ng-container [ngTemplateOutlet]="selected.content"></ng-container> |
23 | </div> | 28 | </div> |
24 | 29 | ||