diff --git a/packages/app/package.json b/packages/app/package.json index 655d82e..c9d51af 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -10,12 +10,12 @@ "preview": "vite preview" }, "dependencies": { + "@neoconfetti/svelte": "^2.2.1", "@webcontainer/api": "^1.4.0", "@xterm/addon-fit": "^0.10.0", "@xterm/xterm": "^5.5.0", "chalk": "^5.3.0", - "monaco-editor": "^0.52.0", - "party-js": "^2.2.0" + "monaco-editor": "^0.52.0" }, "devDependencies": { "@fontsource-variable/inter": "^5.1.0", diff --git a/packages/app/src/routes/[lesson]/Readme.svelte b/packages/app/src/routes/[lesson]/Readme.svelte index 01bdb38..03eae0c 100644 --- a/packages/app/src/routes/[lesson]/Readme.svelte +++ b/packages/app/src/routes/[lesson]/Readme.svelte @@ -9,10 +9,10 @@ getCompleted, markCompleted, } from '$lib/progress.js'; - import party from 'party-js'; - import { onMount } from 'svelte'; - import type { PageData } from './$types.js'; + import { confetti } from '@neoconfetti/svelte'; + import { onMount, tick } from 'svelte'; import Github from '~icons/simple-icons/github'; + import type { PageData } from './$types.js'; $: ({ readme } = $page.data as PageData); @@ -20,9 +20,20 @@ onMount(() => { completed = getCompleted().has($page.params.lesson); }); + + let showConfetti = false;
+ {#if showConfetti} +
+
+
+ {/if} +

{readme.metadata.title}