2019-07-07 19:44:33 +02:00
|
|
|
<template>
|
2019-07-07 23:09:35 +02:00
|
|
|
<div class="card" :class="{black: isBlack}">
|
|
|
|
<span class="text" v-html="text">}</span>
|
2019-07-07 19:44:33 +02:00
|
|
|
<span class="bottom-text">Cards Against Idiots</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
|
|
|
|
@Component
|
|
|
|
export default class CardComponent extends Vue {
|
|
|
|
@Prop()
|
|
|
|
private text!: string;
|
|
|
|
|
|
|
|
@Prop()
|
|
|
|
private isBlack!: boolean;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.card{
|
2019-07-07 23:09:35 +02:00
|
|
|
position: relative;
|
2019-07-07 19:44:33 +02:00
|
|
|
width: 13em;
|
|
|
|
height: 17em;
|
|
|
|
border: solid black;
|
|
|
|
border-radius: 12px;
|
|
|
|
padding-top: 1em;
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bottom-text {
|
|
|
|
display: block;
|
2019-07-07 23:09:35 +02:00
|
|
|
position: absolute;
|
|
|
|
bottom: 1em;
|
|
|
|
left: 2em;
|
2019-07-07 19:44:33 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.black {
|
|
|
|
background-color: black;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
</style>
|