116 lines
2.1 KiB
Vue
116 lines
2.1 KiB
Vue
<script setup lang="ts">
|
|
import type { Container } from "~/netcode/interfaces";
|
|
|
|
export interface Props {
|
|
container: Container;
|
|
}
|
|
|
|
const props = defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="cards_container" id="self_hand">
|
|
<!-- <CardPreview :card_id="c.cardId" v-for="c in container.cards "> -->
|
|
<!-- <button v-if="c && goStore.self?.turn && (goStore.self.turn.fuck_u_markers ?? 0) > 0"
|
|
@click.stop="discard(c)">DISCARD</button> -->
|
|
<!-- </CardPreview> -->
|
|
<GameCardGrouped :container="container" :wrapped="false"> </GameCardGrouped>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.cards_container {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
justify-content: center;
|
|
}
|
|
|
|
.stack_and_discard {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
justify-content: center;
|
|
}
|
|
|
|
#play_all {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
font-size: 10em;
|
|
}
|
|
|
|
#turn_data {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
left: 50%;
|
|
right: 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
z-index: 9;
|
|
}
|
|
|
|
.warning {
|
|
background-color: rgba(255, 0, 0, 0.7);
|
|
color: white;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
width: 60px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
#end_turn {
|
|
z-index: 10;
|
|
}
|
|
|
|
#self_hand {
|
|
position: fixed;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
left: 50%;
|
|
bottom: -50px;
|
|
max-width: 100vw;
|
|
justify-content: flex-start;
|
|
transition: 0.25s all var(--animation-curve);
|
|
transform: translate(-50%, 150px);
|
|
}
|
|
|
|
#self_hand:hover {
|
|
transform: translate(-50%, 0px);
|
|
}
|
|
|
|
#end_turn {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
#self_hand > div.card {
|
|
transition: 0.25s all var(--animation-curve);
|
|
overflow: visible;
|
|
}
|
|
|
|
#self_hand > .cards_container {
|
|
flex-wrap: nowrap;
|
|
}
|
|
#self_hand > div.card #contextMenuButtons {
|
|
top: 0;
|
|
bottom: unset;
|
|
}
|
|
|
|
#self_hand div.card.active:hover #contextMenuButtons {
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
#self_hand div.card:hover {
|
|
transform: translateY(-60px);
|
|
}
|
|
|
|
#self_hand div.card.zoom:hover {
|
|
transform: translateY(calc(-60px - 55%)) scale(200%);
|
|
}
|
|
</style>
|