Skip to content

Commit 1e4705e

Browse files
adds confetting on solving all challenges
1 parent 0f1995c commit 1e4705e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

my-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"register-service-worker": "^1.7.2",
1717
"vue": "^3.2.13",
1818
"vue-codemirror": "^6.1.1",
19+
"vue-confetti-explosion": "^1.0.2",
1920
"vue-router": "^4.0.3"
2021
},
2122
"devDependencies": {

my-client/src/views/ChallengesView.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
2-
<div>
2+
<div class="challenges-container">
33
<h2 class="is-center">Challenges</h2>
4+
<ConfettiExplosion v-if="completed == 100" :particleCount="350" />
45
<ProgressBar :bgcolor="'#6a1b9a'" :completed="completed" />
56
<div class="row">
67
<ProblemCard
@@ -19,11 +20,13 @@ import ProgressBar from "@/components/ProgressBar.vue";
1920
import { problems } from "@/mocks/problems";
2021
import { defineComponent, reactive, computed } from "vue";
2122
import { useRoute, useRouter } from "vue-router";
23+
import ConfettiExplosion from "vue-confetti-explosion";
2224
2325
export default defineComponent({
2426
components: {
2527
ProblemCard,
2628
ProgressBar,
29+
ConfettiExplosion,
2730
},
2831
setup() {
2932
let problemsList = reactive(problems);

my-client/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8576,6 +8576,11 @@ vue-component-type-helpers@^1.8.21:
85768576
resolved "https://registry.yarnpkg.com/vue-component-type-helpers/-/vue-component-type-helpers-1.8.27.tgz#e816c82dcffac8bca58833c120ba395c325dfa68"
85778577
integrity sha512-0vOfAtI67UjeO1G6UiX5Kd76CqaQ67wrRZiOe7UAb9Jm6GzlUr/fC7CV90XfwapJRjpCMaZFhv1V0ajWRmE9Dg==
85788578

8579+
vue-confetti-explosion@^1.0.2:
8580+
version "1.0.2"
8581+
resolved "https://registry.yarnpkg.com/vue-confetti-explosion/-/vue-confetti-explosion-1.0.2.tgz#84b873d400cf0301814bdd71329daa1ac741fd86"
8582+
integrity sha512-80OboM3/6BItIoZ6DpNcZFqGpF607kjIVc5af56oKgtFmt5yWehvJeoYhkzYlqxrqdBe0Ko4Ie3bWrmLau+dJw==
8583+
85798584
vue-eslint-parser@^8.0.1:
85808585
version "8.3.0"
85818586
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz#5d31129a1b3dd89c0069ca0a1c88f970c360bd0d"

0 commit comments

Comments
 (0)