Skip to content

Commit baf98fc

Browse files
authored
Merge pull request #57 from xpquiz/feature/#54
#54 changing loading question window
2 parents e818e88 + 6222efa commit baf98fc

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

src/app/question-window/question-window.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<app-window-title-bar iconPath="question.png" title="Question!"></app-window-title-bar>
44
<div class="window-body window_question_body">
55
<ng-container *ngIf="!this.showQuestion">
6+
<div class="window_question_body_image">
7+
<img ngSrc="assets/icons/question-loading.png"
8+
alt="" height="40" width="40"/>
9+
</div>
610
<div class="window_question_body_loading">
711
<label class="window_question_body_loading_title">Loading your question, please hold on a moment...</label>
812
<progress class="window_question_body_loading_progress" max="100" [value]="this.loadingProgressBar"></progress>

src/app/question-window/question-window.component.sass

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
&_question
1111
&_body
12+
display: flex
13+
flex-direction: row
14+
align-items: center
15+
justify-content: center
16+
1217
&_loading
1318
display: flex
1419
flex-direction: column
@@ -17,10 +22,17 @@
1722

1823
&_title
1924
margin: 5px
25+
text-align: center
2026

2127
&_progress
2228
margin: 5px
2329

30+
&_image
31+
width: 30%
32+
display: flex
33+
align-items: initial
34+
justify-content: center
35+
2436
&_loaded
2537
display: flex
2638
flex-direction: column
@@ -53,8 +65,6 @@
5365

5466

5567
&_check-answer
56-
width: 300px
57-
5868
&_body
5969
display: flex
6070
flex-direction: row
@@ -68,7 +78,6 @@
6878
justify-content: center
6979

7080
&_question
71-
width: 70%
7281
display: flex
7382
flex-direction: column
7483
align-items: center
22.3 KB
Loading

0 commit comments

Comments
 (0)