Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 19ddbd7

Browse files
refactor Quiz.vue SpeechArea.vue for responsiveness, add Nym, reskin QuizAnswer.vue, update buttons therein
1 parent 5eba254 commit 19ddbd7

File tree

6 files changed

+48
-31
lines changed

6 files changed

+48
-31
lines changed

public/images/nym-on-platform.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/SpeechArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
z-index: 1
5252
position: relative
5353
text-align: left
54-
margin-left: 58px
54+
margin-left: 48px
5555
width: 560px
5656
top: 55px
5757
height: 495px

src/styles/quiz-answer.scss

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
.quiz-answer {
2+
display: flex;
3+
align-items: center;
4+
25
.v-card {
36
position: relative;
47
background-size: contain;
58
width: 826px;
6-
height: 272px;
7-
top: 230px;
8-
background: #1C1F34;
9+
height: 230px;
10+
background: url('/images/module-background.png');
911
border: 8px solid #C2CFE1;
1012
margin-left: -45px;
1113

12-
@media screen and (max-width: 1450px) {
14+
@media only screen and (max-width: 1500px) {
1315
margin-left: 0;
16+
margin-top: 150px;
1417
}
1518

1619
.mascot {
17-
height: 50px;
18-
width: 50px;
19-
background: red;
20+
height: 100%;
21+
width: 200px;
22+
background: url("/images/nym-on-platform.svg");
23+
background-repeat: no-repeat !important;
2024
position: absolute;
21-
top: -20px;
22-
left: 320px;
25+
top: -170px;
26+
left: 243px;
2327
}
2428

2529
.attempts-remaining {
@@ -31,38 +35,38 @@
3135
width: 142px;
3236
height: 142px !important;
3337
color: $dark !important;
34-
background-color: gray !important;
38+
background-color: #505895 !important;
3539
font-family: "Oxygen", sans-serif;
36-
font-size: 40px;
40+
font-size: 100px;
3741
letter-spacing: 12px;
38-
margin-top: 30px;
42+
margin-left: 5px;
3943
}
4044

4145
.buttons {
4246
position: absolute;
43-
top: 160px;
47+
top: 146px;
4448
left: 100px;
4549

4650
.hint-button {
4751
font-size: 20px;
52+
font-weight: bold;
4853
letter-spacing: normal;
4954
height: 60px !important;
5055
}
5156
}
5257

5358
.v-form {
54-
margin-top: 20px;
5559
display: flex;
60+
align-items: center;
5661

5762
.text-field {
5863
width: 486px;
5964
height: 100px;
60-
margin-top: 50px;
6165
margin-left: 70px;
6266
background-color: #dbe6ea;
6367
opacity: 0.8;
6468
padding-top: 20px;
65-
border: solid thick $primary;
69+
border: solid thick #C2CFE1;
6670

6771
.theme--dark.v-label {
6872
color: #031e41 !important;

src/styles/quiz-need-help.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
height: 281px;
77
position: fixed;
88
right: -250px;
9-
bottom: 80px;
9+
bottom: 50px;
1010
z-index: 100;
1111

12+
@media screen and (max-width: 1200px) {
13+
// not a perfect fix, but keeps this component from covering answer box button on small screens
14+
bottom: 250px;
15+
}
16+
1217
/*
1318
transition: all 1000ms;
1419

src/views/Quiz/Quiz.vue

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<template>
22
<v-container fluid class="container">
3-
<v-row justify="center" class="container-row">
4-
<speech-area>
5-
<template v-slot:title style="font-size:25px;"
6-
>Nym's Crystal Chase</template
7-
>
8-
<template v-slot:default>
9-
<!--
3+
<!-- <v-row justify="center" class="container-row"> -->
4+
<speech-area>
5+
<template v-slot:title style="font-size:25px;"
6+
>Nym's Crystal Chase</template
7+
>
8+
<template v-slot:default>
9+
<!--
1010
<img class="asset" :src="'/' + asset" v-if="!!asset" />
1111
-->
12-
<div v-html="question" />
13-
</template>
14-
</speech-area>
12+
<div v-html="question" />
13+
</template>
14+
</speech-area>
1515

16-
<quiz-answer :rank="rank" @next="onNext" />
17-
</v-row>
16+
<quiz-answer :rank="rank" @next="onNext" />
17+
<!-- </v-row> -->
1818
<quiz-need-help />
1919
</v-container>
2020
</template>
@@ -59,5 +59,12 @@ export default {
5959
<style lang="scss" scoped>
6060
.container {
6161
overflow: auto;
62+
display: flex;
63+
justify-content: center;
64+
65+
@media screen and (max-width: 1500px) {
66+
flex-direction: column;
67+
align-items: center;
68+
}
6269
}
6370
</style>

src/views/Quiz/QuizAnswer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</div>
1818

1919
<v-btn x-large color="primary" :disabled="isDisabled" type="submit"
20-
>X</v-btn
20+
>&#10003;</v-btn
2121
>
2222
</v-form>
2323
</v-card-text>

0 commit comments

Comments
 (0)