seepur/resources/scripts/applications/home/components/ProfileHeader.vue

24 lines
586 B
Vue
Raw Normal View History

2020-04-12 14:25:42 +00:00
<template>
<section class="hero is-small p-t-xl p-b-xl" :style="style">
2020-04-12 14:25:42 +00:00
<div class="hero-body">
<div class="container">
<!-- <h1 class="title has-text-light">{{title}}</h1> -->
2020-04-12 14:25:42 +00:00
</div>
</div>
</section>
</template>
<script lang="ts">
export default {
name: "ProfileHeader",
props: ["title", "background"],
computed: {
style() {
return `background-image: url('${this.background ||
"/images/clouds-bg.svg"}');
2020-04-12 14:25:42 +00:00
background-size: cover;
background-position: ${this.background ? "center" : "top center"}`;
2020-04-12 14:25:42 +00:00
}
}
};
</script>