2019-04-19 05:33:49 +00:00
|
|
|
<template lang="html">
|
2020-08-15 06:43:50 +00:00
|
|
|
<b-card no-body class="mb-2" @click="openDetails">
|
2020-08-11 04:16:43 +00:00
|
|
|
<b-row no-gutters class="game-card" v-if="game && game.name">
|
2020-07-22 20:09:23 +00:00
|
|
|
<b-col md="4">
|
2020-08-15 06:43:50 +00:00
|
|
|
<b-img-lazy
|
|
|
|
fluid
|
|
|
|
blank-color="#ccc"
|
2020-07-22 20:09:23 +00:00
|
|
|
:src="coverUrl"
|
|
|
|
:alt="game.name"
|
|
|
|
/>
|
|
|
|
</b-col>
|
|
|
|
|
|
|
|
<b-col md="8">
|
2020-08-11 23:39:11 +00:00
|
|
|
<b-card-body body-class="p-2">
|
2020-08-15 06:43:50 +00:00
|
|
|
<b-card-title
|
|
|
|
class="mb-0"
|
|
|
|
title-tag="h6"
|
|
|
|
>
|
2020-08-11 23:39:11 +00:00
|
|
|
{{ game.name }}
|
|
|
|
|
|
|
|
<b-badge variant="warning" v-if="gameNotes">
|
|
|
|
<b-icon-file-earmark-text />
|
|
|
|
</b-badge>
|
|
|
|
</b-card-title>
|
|
|
|
|
|
|
|
<b-badge
|
|
|
|
v-if="releaseDate"
|
|
|
|
variant="secondary"
|
|
|
|
class="mb-2"
|
|
|
|
>
|
|
|
|
Releases in
|
|
|
|
{{ releaseDate }}
|
|
|
|
</b-badge>
|
|
|
|
|
2020-07-22 20:09:23 +00:00
|
|
|
<b-form-rating
|
2020-08-11 23:39:11 +00:00
|
|
|
v-if="gameRating"
|
|
|
|
class="p-0"
|
2020-07-22 20:09:23 +00:00
|
|
|
inline
|
2020-08-11 23:39:11 +00:00
|
|
|
:value="gameRating"
|
2020-07-22 20:09:23 +00:00
|
|
|
readonly
|
|
|
|
variant="warning"
|
|
|
|
size="sm"
|
|
|
|
no-border
|
|
|
|
/>
|
2020-08-11 23:39:11 +00:00
|
|
|
|
|
|
|
<b-progress
|
|
|
|
v-if="gameProgress"
|
|
|
|
:value="gameProgress"
|
|
|
|
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>
|
2020-07-22 20:09:23 +00:00
|
|
|
</b-card-body>
|
|
|
|
</b-col>
|
|
|
|
</b-row>
|
|
|
|
</b-card>
|
2019-04-19 05:33:49 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import GameCardUtils from '@/components/GameCards/GameCard';
|
|
|
|
|
|
|
|
export default {
|
2019-11-08 19:56:03 +00:00
|
|
|
mixins: [GameCardUtils],
|
2019-04-19 05:33:49 +00:00
|
|
|
};
|
|
|
|
</script>
|