Add a darkened card when stack is empty
release-tag / release-image (push) Successful in 28s

Closes #11
This commit is contained in:
2024-05-13 17:12:34 +02:00
parent bf036da9a0
commit 376484c3b2
+8
View File
@@ -19,6 +19,9 @@ const props = withDefaults(defineProps<Props>(), {
<slot></slot>
</CardPreview>
</template>
<template v-if="props.stack.length == 0">
<img :class="`card_image empty`" :src="'/cards/background.png'" draggable="false">
</template>
</div>
</div>
@@ -38,4 +41,9 @@ const props = withDefaults(defineProps<Props>(), {
flex-direction: row-reverse;
justify-content: center;
}
.card_image.empty {
filter: brightness(0.5);
max-height: 250px;
}
</style>