blob: 6121530b7ac652414917261a1ccf53dd76caeeb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<template>
<div class="box">
<div class="columns is-mobile is-multiline is-centered">
<div class="column is-narrow" v-for="actor in actors" :key="actor">
<a v-on:click="selectedActor = actor">
<hero-image :actor="actor" :class="'is-48x48 ' + (selectedActor == actor? 'highlight-selection' : '')"></hero-image>
</a>
</div>
</div>
</div>
</template>
<style scoped lang="scss">
@import '~bulma/sass/utilities/_all';
@import '~bulma/sass/base/_all';
@import '~bulma/sass/elements/button.sass';
.highlight-selection {
border-color: $button-focus-border-color;
color: $button-focus-color;
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color;
transform: scale(1.25);
}
</style>
<script>
import Vue from 'vue';
import TalentImage from './TalentImage.vue';
import HeroImage from './HeroImage.vue';
import RouterParamMixin from './RouterParamMixin';
import ReportService from './ReportService';
import * as maps from './maps/maps';
export default Vue.component('hero-draft-grid', {
mixins: [ RouterParamMixin ],
data() {
return {
actors: ReportService.getActors().sort(),
getHero: maps.getHero,
getTalentName: maps.getTalentName,
};
},
components: {
TalentImage,
HeroImage,
},
});
</script>
|