blob: d372f2028b29fcf59ae25f07bd378447eb0d6589 (
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
|
<template>
<div class="box">
<p class="title">{{ title }}</p>
<article class="media">
<div class="media-left">
<figure class="image is-64x64">
<img :src="'dist/assets/hero-icons/' + hero + '.png'" :alt="entry.Actor">
</figure>
<talent-image :entry="entry"></talent-image>
</div>
<div class="media-content">
<div class="content">
<slot></slot>
</div>
</div>
</article>
</div>
</template>
<script>
import Vue from 'vue';
import TalentImage from './TalentImage.vue';
import * as maps from './maps/maps';
export default Vue.component('talent-box', {
props: [ 'title', 'content', 'entry' ],
data: function() {
return {
hero: maps.getHero(this.entry.Actor).toLowerCase(),
};
},
components: {
TalentImage,
},
});
</script>
|