updated cards to be more conostent and have a smaller footprint (#39)

* updated cards to be more conostent and have a smaller footprint

---------

Co-authored-by: Valentin Heiserer <73257760+Vale54321@users.noreply.github.com>
This commit is contained in:
Manuel Weber
2024-04-17 22:04:29 +02:00
committed by GitHub
parent 6dc969cd56
commit 949c00bb28
75 changed files with 3 additions and 3 deletions

View File

@@ -6,16 +6,16 @@ const props = defineProps<{
card: Card;
}>();
const imgSrc = ref('/assets/card_back.png')
const imgSrc = ref('/assets/card_back.jpg')
const focus = ref(false);
onBeforeMount(() => {
imgSrc.value = "/assets/" + props.card.toString().toLowerCase() + ".png"
imgSrc.value = "/assets/" + props.card.toString().toLowerCase() + ".jpg"
})
watch(() => props.card, (newCard) => {
imgSrc.value = `/assets/${newCard.toString().toLowerCase()}.png`;
imgSrc.value = `/assets/${newCard.toString().toLowerCase()}.jpg`;
});
</script>
<template>