Skip to content

Commit ab4e034

Browse files
committed
[web] clean up ingress UI/UX
1 parent 1766fc9 commit ab4e034

File tree

3 files changed

+37
-17
lines changed

3 files changed

+37
-17
lines changed
Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
<div class="title">Access Code</div>
2-
<div class="subtitle">Please enter your Mage access code. If you do not have an access code please ask you Mage administrator to provide you with one.</div>
1+
<div class="authorization">
2+
<div class="header">
3+
<div class="header__title">Access Code</div>
4+
<div class="header__message">Please enter your Mage access code. If you do not have an access code please ask you Mage
5+
administrator to provide you with one.</div>
6+
</div>
37

4-
<div>
5-
<mat-form-field appearance="fill">
6-
<mat-label>Access Code</mat-label>
7-
<input matInput placeholder="Access Code" type="deviceId" [formControl]="deviceId" required>
8-
<mat-error *ngIf="deviceId.hasError('invalid')">Invalid access code</mat-error>
9-
</mat-form-field>
10-
</div>
8+
<div>
9+
<mat-form-field appearance="fill">
10+
<mat-label>Access Code</mat-label>
11+
<input matInput placeholder="Access Code" type="deviceId" [formControl]="deviceId" required>
12+
<mat-error *ngIf="deviceId.hasError('invalid')">Invalid access code</mat-error>
13+
</mat-form-field>
14+
</div>
1115

12-
<div class="authorize">
13-
<button mat-flat-button color="primary" (click)="authorize()">Continue to Mage</button>
14-
</div>
16+
<div class="authorize">
17+
<button mat-flat-button color="primary" (click)="authorize()">Continue to Mage</button>
18+
</div>
19+
</div>

web-app/src/app/ingress/authorization/authorization.component.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,28 @@
55
width: 100%;
66
}
77

8-
.title {
8+
.authorization {
9+
height: 100%;
10+
display: flex;
11+
flex-direction: column;
12+
gap: 48px;
13+
}
14+
15+
.header {
16+
display: flex;
17+
flex-direction: column;
18+
align-items: center;
19+
justify-content: end;
20+
height: 30vh;
21+
}
22+
23+
.header__title {
924
font: 400 34px / 40px Roboto, "Helvetica Neue", sans-serif;
10-
color: mat.get-color-from-palette($app-primary);
25+
color: $primary;
1126
margin-bottom: 16px;
1227
}
1328

14-
.subtitle {
29+
.header__message {
1530
font: 400 16px / 20px Roboto,"Helvetica Neue",sans-serif;
1631
margin-bottom: 32px;
1732
opacity: 60%;

web-app/src/app/ingress/ingress.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ class Initialize extends Ingress {
7676
trigger('slide', [
7777
transition(':enter', [
7878
style({ transform: 'translateX(100%)' }),
79-
animate('250ms', style({ transform: 'translateX(0%)' })),
79+
animate('250ms', style({ transform: 'translateX(0%)', opacity: 1 })),
8080
]),
8181
transition(':leave', [
82-
animate('250ms', style({ transform: 'translateX(-100%)' }))
82+
animate('250ms', style({ transform: 'translateX(-100%)', opacity: 0 }))
8383
])
8484
])
8585
]

0 commit comments

Comments
 (0)