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

Commit c65801d

Browse files
reskin QuizScroll, QuizFinishedFail, move quiz scroll scss into SFC
1 parent e7e9389 commit c65801d

File tree

4 files changed

+61
-93
lines changed

4 files changed

+61
-93
lines changed

src/components/QuizScroll.vue

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<div class="quiz-scroll" ref="scroll">
3-
<div class="scroll-graphic"></div>
43
<div class="scroll-head">
54
<div class="scroll-title">
65
<slot name="title"></slot>
76
</div>
87
</div>
8+
<div class="divider" />
99
<div class="scroll-body" ref="body">
1010
<slot name="default"></slot>
1111
</div>
@@ -17,3 +17,62 @@ export default {
1717
name: "quizScroll"
1818
};
1919
</script>
20+
21+
<style lang="scss" scoped>
22+
.quiz-scroll {
23+
width: 550px;
24+
height: 650px;
25+
display: flex;
26+
margin-top: 30px;
27+
flex-direction: column;
28+
border: 8px solid #c2cfe1;
29+
background: url("/images/module-background.png");
30+
background-size: cover;
31+
32+
.divider {
33+
height: 5px;
34+
width: 100%;
35+
background-color: #c2cfe1;
36+
}
37+
38+
.scroll-head {
39+
.scroll-title {
40+
text-align: center;
41+
margin-top: 10px;
42+
font-size: 50px;
43+
top: 42px;
44+
color: white !important;
45+
font-family: "buWicked";
46+
}
47+
}
48+
49+
.scroll-body {
50+
text-align: center;
51+
margin-top: 30px;
52+
padding: 0 40px;
53+
font-size: 22px;
54+
55+
.asset {
56+
text-align: center;
57+
margin-bottom: 35px;
58+
}
59+
60+
.scroll-content {
61+
width: 420px;
62+
margin-left: auto;
63+
margin-right: auto;
64+
font-size: 24px;
65+
color: #031e41 !important;
66+
font-family: "Barrow2Light";
67+
letter-spacing: 2px;
68+
text-align: left;
69+
white-space: pre-wrap;
70+
71+
pre {
72+
font-size: 18px;
73+
white-space: pre-wrap;
74+
}
75+
}
76+
}
77+
}
78+
</style>

src/styles/quiz-scroll.scss

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/styles/styles.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.cwhq-app {
22
@import './colors.scss';
33
@import './application.scss';
4-
@import './quiz-scroll.scss';
54
@import './quiz-answer.scss';
65
@import './quiz-need-help.scss';
76
@import './quiz-bar-rank.scss';

src/views/Quiz/QuizFinishedFail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<quiz-scroll>
55
<template v-slot:title>It's Over!</template>
66
<template v-slot:default>
7-
<div style="padding-left:130px; padding-right: 130px;">
7+
<div>
88
Sorry {{ firstName }}, your mission has ended.
99
<br />
1010
<br />

0 commit comments

Comments
 (0)