Skip to content

Commit

Permalink
feat: added confetti (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 authored Oct 24, 2024
1 parent bd2ebed commit 4313234
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
7 changes: 7 additions & 0 deletions apps/food/app/pages/welcome/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<template>
<div class="w-full flex justify-center">
<div v-confetti="{ stageHeight: height, stageWidth: width, particleCount: 200, duration: 5000 }" />
</div>

<div class="pt-24">
<h1 class="mb-2 text-3xl font-semibold text-center">
{{ $t('init.title') }}
Expand Down Expand Up @@ -26,10 +30,13 @@
</template>

<script setup lang="ts">
import { vConfetti } from '@neoconfetti/vue'
definePageMeta({
layout: 'welcome',
})
const { width, height } = useWindowSize()
const { channel } = await useChannel()
if (channel.value?.id && channel.value?.masterAccountExists) {
Expand Down
1 change: 1 addition & 0 deletions apps/food/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@date-fns/tz": "^1.1.2",
"@dicebear/collection": "^9.2.2",
"@dicebear/core": "^9.2.2",
"@neoconfetti/vue": "^2.2.1",
"@paralleldrive/cuid2": "^2.2.2",
"@prisma/client": "^5.21.1",
"@vee-validate/zod": "^4.14.4",
Expand Down
30 changes: 19 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4313234

Please sign in to comment.