gamebrary/src/components/GameCards/GameCardText.vue

74 lines
1.8 KiB
Vue
Raw Normal View History

2019-05-22 06:26:05 +00:00
<template lang="html">
2020-08-26 18:07:13 +00:00
<b-card no-body class="clickable mb-2" @click="openDetails">
2020-08-17 16:10:21 +00:00
<b-row no-gutters v-if="game && game.name">
2020-08-11 23:39:11 +00:00
<b-card-body body-class="pt-0 pb-1 px-2">
<small>
<b-icon-check-circle
class="rounded bg-success p-1"
variant="white"
font-scale="1.5"
v-if="showCompletedBadge"
/>
2020-08-11 23:39:11 +00:00
{{ game.name }}
<b-badge variant="warning" v-if="gameNotes">
<b-icon-file-earmark-text />
</b-badge>
</small>
2020-08-21 07:42:16 +00:00
<!-- <b-badge
2020-08-11 23:39:11 +00:00
v-if="releaseDate"
variant="secondary"
class="mb-2"
>
Releases in
{{ releaseDate }}
2020-08-21 07:42:16 +00:00
</b-badge> -->
2020-08-11 23:39:11 +00:00
<b-form-rating
v-if="gameRating"
2020-08-31 22:19:53 +00:00
class="p-0 border-0 shadow-none"
2020-08-11 23:39:11 +00:00
inline
:value="gameRating"
readonly
variant="warning"
size="sm"
no-border
/>
<b-progress
v-if="showGameProgress"
2020-08-11 23:39:11 +00:00
:value="gameProgress"
class="my-1"
2020-08-11 23:39:11 +00:00
variant="success"
height="6px"
/>
<div v-if="showGameTags">
<b-badge
v-for="({ games, hex, tagTextColor }, name) in tags"
v-if="games.includes(game.id)"
:key="name"
pill
variant="primary"
tag="small"
:style="`background-color: ${hex}; color: ${tagTextColor}`"
>
{{ name }}
</b-badge>
</div>
</b-card-body>
</b-row>
</b-card>
2019-05-22 06:26:05 +00:00
</template>
<script>
import GameCardUtils from '@/components/GameCards/GameCard';
export default {
2019-11-08 19:56:03 +00:00
mixins: [GameCardUtils],
2019-05-22 06:26:05 +00:00
};
</script>