gamebrary/src/components/GameCards/GameCardGrid.vue

38 lines
772 B
Vue
Raw Normal View History

2019-06-06 13:44:06 +00:00
<template lang="html">
<div v-if="gameId && games[gameId]" :class="gameCardClass">
<img
:src="coverUrl"
:alt="game.name"
@click="openDetails"
>
</div>
</template>
<script>
import GameCardUtils from '@/components/GameCards/GameCard';
export default {
mixins: [GameCardUtils],
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
@import "~styles/styles.scss";
.game-card {
display: flex;
flex-direction: column;
position: relative;
width: 94.5px;
margin-bottom: 4px;
border-radius: $border-radius;
overflow: hidden;
2019-06-07 00:15:44 +00:00
cursor: pointer;
2019-06-06 13:44:06 +00:00
img {
width: 100%;
height: auto;
}
}
</style>