gamebrary/src/components/GameDetail/GameReviewBox.vue

84 lines
1.9 KiB
Vue
Raw Normal View History

2018-10-19 05:15:28 +00:00
<template lang="html">
<div v-if="game" class="review-box">
<div class="info">
<section v-if="playerPerspectives">
<strong>Perspective</strong> {{ playerPerspectives }}
</section>
<section v-if="gameModes">
<strong>Game Mode</strong> {{ gameModes }}
</section>
<section v-if="genres">
<strong>Genre</strong> {{ genres }}
</section>
<section v-if="gamePlatforms">
<strong>Platforms</strong> {{ gamePlatforms }}
</section>
<section v-if="developers">
<strong>Developer</strong> {{ developers }}
</section>
<section v-if="publishers">
<strong>Publishers</strong> {{ publishers }}
</section>
<!-- <section v-if="releaseDate">
2018-10-19 05:15:28 +00:00
<strong>Release date</strong> {{ releaseDate }}
</section> -->
2018-10-29 23:53:49 +00:00
<!-- <game-links /> -->
2018-10-19 05:15:28 +00:00
</div>
</div>
</template>
<script>
import GameLinks from '@/components/GameDetail/GameLinks';
import { mapState, mapGetters } from 'vuex';
export default {
components: {
GameLinks,
},
computed: {
...mapState([
'game',
'platforms',
]),
...mapGetters([
'playerPerspectives',
'developers',
'gameModes',
'gamePlatforms',
'genres',
'publishers',
]),
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
2019-04-05 19:16:32 +00:00
@import "~styles/styles.scss";
2018-10-19 05:15:28 +00:00
.review-box {
2018-12-10 05:31:34 +00:00
text-align: left;
2018-10-19 05:15:28 +00:00
display: grid;
2018-11-24 20:50:27 +00:00
margin: 0 auto;
2019-02-08 06:13:48 +00:00
// grid-template-columns: 100px auto;
2018-10-19 05:15:28 +00:00
grid-gap: $gp;
2018-11-25 03:39:15 +00:00
padding: $gp 0;
2018-10-26 05:15:37 +00:00
align-items: center;
2018-10-19 05:15:28 +00:00
strong {
color: $color-red;
}
2018-10-26 05:15:37 +00:00
section {
margin-bottom: $gp / 3;
}
2018-10-19 05:15:28 +00:00
}
</style>