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

Commit 5ea7111

Browse files
Merge pull request #247 from codewizardshq/update-final-vote-over
style VotingOver, fix width in QuizScroll
2 parents b48bc77 + d445bbc commit 5ea7111

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
lines changed

src/components/QuizScroll.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121

2222
<style lang="scss" scoped>
2323
.quiz-scroll {
24-
width: 550px;
24+
max-width: 550px;
2525
display: flex;
2626
margin: 30px 0;
2727
padding: 10px 0;

src/views/Voting/VotingOver.vue

+18-25
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,34 @@
11
<template>
22
<v-container>
3-
<v-row>
4-
<v-col class="inside-div">
5-
<h2 class="ballot-header">
6-
Voting is over!
7-
</h2>
3+
<QuizScroll class="scroll">
4+
<template v-slot:title>
5+
Voting Level Complete
6+
</template>
7+
<template v-slot:default>
88
<p>
9-
Please check back soon for the results.
9+
Congratulations to the top 10 students with the most votes! Thank you
10+
everyone for participating. Finalists will receive a notification and
11+
your code will be reviewed by the Galactic Wizard Panel on May 10-13.
12+
Our grand prize winner will be announced May 14.
1013
</p>
11-
</v-col>
12-
</v-row>
14+
<Leaderboard />
15+
</template>
16+
</QuizScroll>
1317
</v-container>
1418
</template>
1519

1620
<script>
1721
// TODO: this and VoteWoah should be a single component with props
22+
import Leaderboard from "@/components/Leaderboard";
23+
import QuizScroll from "@/components/QuizScroll";
1824
export default {
19-
name: "VotingWoah"
25+
name: "VotingOver",
26+
components: { Leaderboard, QuizScroll }
2027
};
2128
</script>
2229

2330
<style lang="scss" scoped>
24-
.inside-div {
25-
background: gray;
26-
}
27-
28-
h2 {
29-
text-align: center;
30-
color: #0d1d41;
31-
font-family: "Barlow", sans-serif;
32-
font-weight: bold;
33-
margin-bottom: 12px;
34-
}
35-
36-
p {
37-
text-align: center;
38-
color: #0d1d41;
39-
font-family: "Barlow", sans-serif;
31+
.scroll {
32+
margin: 0 auto;
4033
}
4134
</style>

0 commit comments

Comments
 (0)