|
1 | 1 | <div class="logo-header w-100 border-bottom fx-row-full-cent"> |
2 | 2 | <img ngSrc="assets/images/logo/logo-text.svg" height="40" width="136"/> |
3 | 3 | </div> |
4 | | -<div class="data-wrapper flex-column flex-around align-center"> |
5 | | - <div class="header flex-column align-center pl-10 pr-10 text-center mb-16"> |
6 | | - <div class="loading-webnode f-500"> |
7 | | - Produce blocks, |
8 | | - <span>right in your browser</span> |
9 | | - </div> |
| 4 | +<div class="data-wrapper flex-column w-100 overflow-auto align-center"> |
| 5 | + <div class="loading-content h-100 flex-column flex-around align-center"> |
| 6 | + <div class="header flex-column align-center pl-10 pr-10 text-center mb-16"> |
| 7 | + <div class="loading-webnode f-500 mb-8"> |
| 8 | + Produce blocks, |
| 9 | + <span>right in your browser</span> |
| 10 | + </div> |
10 | 11 |
|
11 | | - <div class="font-16 tertiary mt-16 font-16 f-300"> |
12 | | - @if (!loading[loading.length - 1].loaded) { |
13 | | - @if (loading[0].status === WebNodeStepStatus.LOADING) { |
14 | | - Downloading... |
15 | | - } @else { |
16 | | - ~7 seconds left |
17 | | - } |
18 | | - } @else { |
19 | | - Web Node is ready |
20 | | - } |
| 12 | + <div class="font-16 tertiary f-300">{{ loadingMessage }}</div> |
21 | 13 | </div> |
22 | | - </div> |
23 | 14 |
|
24 | | - <div #progress class="progress w-100 fx-row-full-cent"></div> |
| 15 | + <div #progress class="progress w-100 fx-row-full-cent"></div> |
25 | 16 |
|
26 | | - <div class="mt-16 flex-column w-100 pl-10 pr-10"> |
27 | | - @for (item of loading; track $index) { |
28 | | - <div class="fx-row-vert-cent h-xl font-16"> |
29 | | - @if (item.status === WebNodeStepStatus.LOADING) { |
30 | | - <mina-loading-spinner [size]="20" [borderWidth]="2"></mina-loading-spinner> |
31 | | - } @else { |
32 | | - <span [ngClass]="item.status === WebNodeStepStatus.DONE ? 'success-primary' : 'tertiary'" |
33 | | - class="circle-check mina-icon icon-200">check_circle</span> |
34 | | - } |
35 | | - <div [ngClass]="item.status === WebNodeStepStatus.PENDING ? 'tertiary' : 'primary'" |
36 | | - class="ml-8 f-400">{{ item.name }} |
37 | | - </div> |
38 | | - @if (item.data) { |
39 | | - @if (item.data.total) { |
40 | | - <span class="tertiary ml-5">{{ item.data.downloaded }} of {{ item.data.total }} MB</span> |
| 17 | + <div class="mt-16 flex-column pl-10 pr-10"> |
| 18 | + @for (item of loading; track $index) { |
| 19 | + <div class="fx-row-vert-cent h-xl font-16"> |
| 20 | + @if (item.status === WebNodeStepStatus.LOADING) { |
| 21 | + <mina-loading-spinner [size]="20" [borderWidth]="2"></mina-loading-spinner> |
41 | 22 | } @else { |
42 | | - <span class="tertiary ml-5">{{ item.data.est }}</span> |
| 23 | + <span [ngClass]="item.status === WebNodeStepStatus.DONE ? 'success-primary' : 'tertiary'" |
| 24 | + class="circle-check mina-icon icon-200">check_circle</span> |
43 | 25 | } |
44 | | - } |
45 | | - </div> |
46 | | - } |
| 26 | + <div [ngClass]="item.status === WebNodeStepStatus.PENDING ? 'tertiary' : 'primary'" |
| 27 | + class="ml-8 f-400">{{ item.name }} |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + } |
| 31 | + </div> |
47 | 32 | </div> |
48 | 33 |
|
49 | 34 | @if (!loading[loading.length - 1].loaded && errors.length) { |
50 | | - <div class="flex-column w-100 bg-surface p-12 mt-10 border-rad-6"> |
51 | | - <div class="font-16 flex-row flex-column-md flex-between align-center flex-start-md" |
52 | | - [ngClass]="errors.length ? 'warn-primary' : 'aware-primary'"> |
53 | | - <div>It appears there are some errors.</div> |
54 | | - </div> |
55 | | - <div class="flex-column border-rad-8 warn-secondary monospace break-word"> |
56 | | - @for (error of errors; track $index) { |
57 | | - <div class="lh-sm">{{ error }}</div> |
58 | | - } |
| 35 | + <div class="flex-column w-100 pl-10 pr-10 mt-10"> |
| 36 | + <div class="flex-column w-100 bg-surface p-12 border-rad-6"> |
| 37 | + <div class="w-100 font-16 flex-row flex-column-md flex-between align-center flex-start-md" |
| 38 | + [ngClass]="errors.length ? 'warn-primary' : 'aware-primary'"> |
| 39 | + <div>It appears there are some errors.</div> |
| 40 | + </div> |
| 41 | + <div class="flex-column border-rad-8 warn-secondary monospace break-word"> |
| 42 | + @for (error of errors; track $index) { |
| 43 | + <div class="lh-sm">{{ error }}</div> |
| 44 | + } |
| 45 | + </div> |
59 | 46 | </div> |
60 | 47 | </div> |
61 | 48 | } |
62 | 49 | </div> |
63 | 50 | <div class="footer border-top fx-row-vert-cent flex-between w-100 pl-10 pr-10"> |
64 | | - <div class="fx-row-vert-cent"> |
| 51 | + <div class="fx-row-vert-cent mr-10"> |
65 | 52 | <span class="mina-icon icon-300 selected-primary mr-5">lightbulb</span> |
66 | 53 | <div class="selected-primary f-big f-500"> |
67 | 54 | You can run the Web Node from your phone |
68 | 55 | </div> |
69 | 56 | </div> |
70 | | - <button class="border-rad-8 fx-row-full-cent font-16 ml-10" |
71 | | - [class.disabled]="!loading[loading.length - 1].loaded" |
| 57 | + <button class="border-rad-8 fx-row-full-cent font-16" |
| 58 | + [class.disabled]="!ready" |
72 | 59 | (click)="goToDashboard()"> |
73 | 60 | <span>Continue</span> |
74 | 61 | </button> |
|
0 commit comments