Skip to content

Commit ab77d6a

Browse files
committed
[web] clean up disclaimer UI/UX
1 parent ab4e034 commit ab77d6a

File tree

2 files changed

+30
-13
lines changed

2 files changed

+30
-13
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
<div>
2-
<div class="title">{{title}}</div>
1+
<div class="container">
2+
<div class="header">
3+
<div class="header__title">{{title}}</div>
4+
</div>
35

46
<div class="disclaimer">
5-
<div class="subtitle">{{text}}</div>
6-
7-
<div class="actions">
8-
<button class="actions__button" mat-stroked-button (click)="onReject()">Exit</button>
9-
<button class="actions__button" mat-flat-button color="primary" (click)="onAccept()">Accept</button>
10-
</div>
7+
<div class="disclaimer__text">{{text}}</div>
8+
</div>
9+
10+
<div class="actions">
11+
<button class="actions__button" mat-stroked-button (click)="onReject()">Exit</button>
12+
<button class="actions__button" mat-flat-button color="primary" (click)="onAccept()">Accept</button>
1113
</div>
1214

1315
</div>

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
@use '@angular/material' as mat;
22
@import "variables.scss";
33

4-
.disclaimer {
5-
overflow-y: scroll;
4+
.container {
5+
height: 100%;
6+
display: flex;
7+
flex-direction: column;
8+
gap: 48px;
9+
}
10+
11+
.header {
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: end;
16+
height: 30vh;
617
}
718

8-
.title {
19+
.header__title {
920
font: 400 34px / 40px Roboto, "Helvetica Neue", sans-serif;
10-
color: mat.get-color-from-palette($app-primary);
21+
color: $primary;
1122
margin-bottom: 16px;
1223
}
1324

14-
.subtitle {
25+
.disclaimer {
26+
overflow-y: scroll;
27+
}
28+
29+
.disclaimer__text {
1530
font: 400 16px / 20px Roboto, "Helvetica Neue", sans-serif;
1631
margin-bottom: 32px;
1732
opacity: 60%;

0 commit comments

Comments
 (0)