Files
MauMau-Client/src/components/maumau/game/Deck.vue
DTieman e059fc347c
Some checks failed
Build Mau & Deploy Mau / build (push) Failing after 46s
Build Mau & Deploy Mau / deploy (push) Has been skipped
Vue rewrite
2024-07-14 16:28:46 +02:00

36 lines
693 B
Vue

<script setup lang="ts">
import type {ICard} from "@/types/card.type";
import Card from "@/components/maumau/game/Card.vue";
const props = defineProps<{
currentCard?: ICard,
}>();
const emits = defineEmits<{
(event: 'click'): void
}>();
const onNewCardClick = () => {
emits('click');
}
</script>
<template>
<div class="deck">
<Card :card="currentCard" :clickable="false" />
<Card class="deck-new-cards" @click="onNewCardClick" clickable hoverable />
</div>
</template>
<style scoped lang="scss">
.deck {
display: flex;
flex-direction: row;
gap: 0.5rem;
&-new-cards {
background-image: url("@/assets/cards/back.png");
background-size: 100px 150px;
}
}
</style>