diff options
| author | itsAhamkara <38540360+itsAhamkara@users.noreply.github.com> | 2018-05-11 22:58:11 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:21 +0100 |
| commit | 6db26724b84776762cdec1c78b6311b5a1725707 (patch) | |
| tree | 59ae844d41978ff5e2404943380a60432454db21 /src/TalentBox.vue | |
| parent | 62ba9406282a84fe2649929632bf534093a9d19e (diff) | |
| download | brokentalents-6db26724b84776762cdec1c78b6311b5a1725707.tar.gz brokentalents-6db26724b84776762cdec1c78b6311b5a1725707.zip | |
New Header and style
Diffstat (limited to 'src/TalentBox.vue')
| -rw-r--r-- | src/TalentBox.vue | 93 |
1 files changed, 76 insertions, 17 deletions
diff --git a/src/TalentBox.vue b/src/TalentBox.vue index d372f20..91252f4 100644 --- a/src/TalentBox.vue +++ b/src/TalentBox.vue @@ -1,36 +1,95 @@ <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="box"> <div class="media-content"> <div class="content"> + + <figure class="image hero-image-slot"> + <img class="hero-image" :src="'dist/assets/hero-icons/' + hero + '.png'" :alt="entry.Actor"> + </figure> + + <talent-image :entry="entry"></talent-image> <slot></slot> </div> </div> </article> + </div> --> +<div> + <p class="title-box">{{ title }}</p> + <div class="columns"> + + <div class="column is-centered"> + <figure class="image is-64x64 hero-image-slot"> + <img class="hero-image" :src="'dist/assets/hero-icons/' + hero + '.png'" :alt="entry.Actor"> + </figure> + <p class="hero-name">{{entry.Actor.replace(/\*/g, "")}}</p> + </div> + <div class="column value is-centered"> + + <talent-image :entry="entry" :size="64"></talent-image> + {{ value }}{{ label }} + <div class="type">{{ type }}</div> + </div> + </div> </div> </template> +<style scoped> +.title-box { + font-size: 20px; + text-transform: uppercase; +} +.is-centered { + display: flex; + /* flex-align: center; */ + justify-content: center; + align-content: center; + align-items: center; + flex-direction: column; +} + +.hero-image-slot { + display: inline-block; +} + +.hero-image { + /* width: 128px; + height: 128px; */ + /* border-radius: 50%; */ + overflow: hidden; + border: 5px solid rgba(27, 40, 56, 0.1); +} + +.hero-name { + font-size: 18px; + /* margin-bottom: 10px; */ +} + +.value { + font-size: 24px; + text-align: center; +} +.value .type { + position: absolute; + bottom: 5px; + font-size: 14px; +} +</style> + + <script> -import Vue from 'vue'; -import TalentImage from './TalentImage.vue'; -import * as maps from './maps/maps'; +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' ], +export default Vue.component("talent-box", { + props: ["title", "content", "entry", "type", "value", "label"], data: function() { return { - hero: maps.getHero(this.entry.Actor).toLowerCase(), + hero: maps.getHero(this.entry.Actor).toLowerCase() }; }, components: { - TalentImage, - }, + TalentImage + } }); </script> |
