diff --git a/src/components/ProgressBar.vue b/src/components/ProgressBar.vue
new file mode 100644
index 0000000..9def89e
--- /dev/null
+++ b/src/components/ProgressBar.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
diff --git a/src/components/SummaryStats.vue b/src/components/SummaryStats.vue
new file mode 100644
index 0000000..652c7d3
--- /dev/null
+++ b/src/components/SummaryStats.vue
@@ -0,0 +1,125 @@
+
+ Summary
+
+
Your Score
+
+
{{
+ displayScoreAsPercent
+ }}
+
Time Spent: {{ formattedDuration }}
+
+
+
+
+ Score recorded as grade
+
+
Finished: {{ formattedDate }}
+
+
+
+
+
+
diff --git a/src/components/icons/IconCheckmark.vue b/src/components/icons/IconCheckmark.vue
new file mode 100644
index 0000000..5c0d63f
--- /dev/null
+++ b/src/components/icons/IconCheckmark.vue
@@ -0,0 +1,6 @@
+
+
+
diff --git a/src/store/modules/quiz.ts b/src/store/modules/quiz.ts
index 928c66e..15a30ab 100644
--- a/src/store/modules/quiz.ts
+++ b/src/store/modules/quiz.ts
@@ -23,7 +23,7 @@ type Getters = {
listQuestions(state: QuizStateInterface): Quiz['questions'];
countQuestions(state: QuizStateInterface): number;
countCorrect(state: QuizStateInterface): number;
- calcScore(state: QuizStateInterface): string;
+ calcScore(state: QuizStateInterface): number;
};
const getters: GetterTree & Getters = {
@@ -53,7 +53,7 @@ const getters: GetterTree & Getters = {
const totalQ = getters.countQuestions(state);
const correctQ = getters.countCorrect(state);
const score = (correctQ / totalQ) * 100;
- return Math.floor(score) + '%';
+ return Math.floor(score);
},
};
diff --git a/src/views/Summary.vue b/src/views/Summary.vue
index a986e25..a1db414 100644
--- a/src/views/Summary.vue
+++ b/src/views/Summary.vue
@@ -1,14 +1,14 @@
- Your Score
- {{ getScore }}
+
-
+