From b8f9b918d401d855b4ad74115d68b522422e5b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=B6hring?= Date: Mon, 9 Jan 2023 16:07:50 +0100 Subject: [PATCH] fixes the wheel --- src/assets/base.css | 2 +- src/composables/useRaffle.ts | 1 + src/pages/Home.vue | 11 ++- src/pages/Raffle.vue | 152 ++++++++++++++++------------------- src/types.d.ts | 1 + 5 files changed, 82 insertions(+), 85 deletions(-) diff --git a/src/assets/base.css b/src/assets/base.css index 41a9ed5..8a3b008 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -8,7 +8,7 @@ body { } #app { - @apply flex justify-around items-center w-screen min-h-screen; + @apply flex justify-around items-center w-screen h-screen overflow-hidden; } button, input { diff --git a/src/composables/useRaffle.ts b/src/composables/useRaffle.ts index f98f929..56b5553 100644 --- a/src/composables/useRaffle.ts +++ b/src/composables/useRaffle.ts @@ -15,6 +15,7 @@ export default function useRaffle() { title: '', date: new Date().toLocaleDateString('de'), participants: [], + description: '', }) const newParticipant = ref('') diff --git a/src/pages/Home.vue b/src/pages/Home.vue index b8f4b46..cdca904 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -17,12 +17,12 @@ const { } = useRaffle() const showNewRaffleForm = $ref(false) +const router = useRouter() function startRaffle() { if (!readyToRaffle) return raffleStore.value.push(newRaffle.value) - const router = useRouter() router.push(`/raffle/${newRaffle.value.id}`) } @@ -47,12 +47,19 @@ function startRaffle() {
+ +
  • diff --git a/src/pages/Raffle.vue b/src/pages/Raffle.vue index e377a8b..a6980ea 100644 --- a/src/pages/Raffle.vue +++ b/src/pages/Raffle.vue @@ -1,5 +1,4 @@ diff --git a/src/types.d.ts b/src/types.d.ts index 4e02333..2cd0d59 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -4,6 +4,7 @@ declare global { title: string date: string participants: string[] + description: string } } -- 2.45.2