multi cards
All checks were successful
Deploy App / build (push) Successful in 2m4s
Deploy App / deploy (push) Successful in 21s

This commit is contained in:
valere
2026-02-11 16:49:34 +01:00
parent 620112d9ba
commit 399519d1d4
8 changed files with 276 additions and 105 deletions

View File

@@ -1,15 +1,13 @@
<template>
<section class="screen-centered">
<Card :card="card" :isFaceUp="isFaceUp" showPlayButtonFaceUp @click="clickOnSlugCard" @image-loaded="imageLoaded" />
</section>
<PlayingCard :card :isFaceUp />
</template>
<script setup lang="ts">
import type { Card } from '~~/types/types'
const isFaceUp = ref(false)
const route = useRoute()
const slug = route.params.slug as string
const isFaceUp = ref(false)
const { data: card, pending, error } = await useFetch<Card>(`/api/card/${slug}`)
useHead({
@@ -18,17 +16,9 @@ useHead({
)
})
const clickOnSlugCard = () => {
//
}
const imageLoaded = () => {
console.log('imageLoaded')
}
onMounted(() => {
setTimeout(() => {
isFaceUp.value = true
}, 700)
})
</script>
</script>