2019-04-19 05:33:49 +00:00
|
|
|
<template lang="html">
|
2020-10-14 21:48:55 +00:00
|
|
|
<b-card
|
|
|
|
no-body
|
|
|
|
class="clickable mb-2"
|
|
|
|
:bg-variant="nightMode ? 'dark' : ''"
|
|
|
|
:text-variant="nightMode ? 'white' : ''"
|
|
|
|
>
|
2020-08-25 05:18:56 +00:00
|
|
|
<b-row
|
|
|
|
no-gutters
|
|
|
|
v-if="game && game.name"
|
|
|
|
>
|
|
|
|
<b-col cols="4">
|
2020-10-23 00:06:56 +00:00
|
|
|
<!-- TODO: handle rtl -->
|
2020-08-22 18:56:46 +00:00
|
|
|
<b-img
|
2020-08-15 06:43:50 +00:00
|
|
|
fluid
|
|
|
|
blank-color="#ccc"
|
2020-10-23 00:06:56 +00:00
|
|
|
rounded="left"
|
2020-07-22 20:09:23 +00:00
|
|
|
:src="coverUrl"
|
|
|
|
:alt="game.name"
|
|
|
|
/>
|
|
|
|
</b-col>
|
|
|
|
|
2020-08-25 05:18:56 +00:00
|
|
|
<b-col cols="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
|
2020-12-16 05:33:47 +00:00
|
|
|
:class="`mb-0 ${highlightCompletedGame ? 'text-success' : ''}`"
|
2020-08-15 06:43:50 +00:00
|
|
|
title-tag="h6"
|
|
|
|
>
|
2020-08-11 23:39:11 +00:00
|
|
|
{{ game.name }}
|
|
|
|
|
|
|
|
<b-badge variant="warning" v-if="gameNotes">
|
2020-12-15 23:07:17 +00:00
|
|
|
<i class="far fa-sticky-note"></i>
|
2020-08-11 23:39:11 +00:00
|
|
|
</b-badge>
|
|
|
|
</b-card-title>
|
|
|
|
|
2020-08-21 06:13:45 +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 06:13:45 +00:00
|
|
|
</b-badge> -->
|
2020-08-11 23:39:11 +00:00
|
|
|
|
2020-07-22 20:09:23 +00:00
|
|
|
<b-form-rating
|
2020-08-11 23:39:11 +00:00
|
|
|
v-if="gameRating"
|
2020-10-14 23:29:15 +00:00
|
|
|
:class="['p-0', { 'bg-dark': nightMode }]"
|
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
|
2020-08-31 22:37:09 +00:00
|
|
|
v-if="showGameProgress"
|
2020-08-11 23:39:11 +00:00
|
|
|
:value="gameProgress"
|
2020-08-31 22:37:09 +00:00
|
|
|
class="my-2"
|
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
|
2020-08-17 16:10:21 +00:00
|
|
|
class="mr-1"
|
2020-08-11 23:39:11 +00:00
|
|
|
variant="primary"
|
|
|
|
: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>
|