This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/resources/scripts/applications/home/components/ProfileHeader.vue

23 lines
586 B
Vue

<template>
<section class="hero is-small p-t-xl p-b-xl" :style="style">
<div class="hero-body">
<div class="container">
<!-- <h1 class="title has-text-light">{{title}}</h1> -->
</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"}');
background-size: cover;
background-position: ${this.background ? "center" : "top center"}`;
}
}
};
</script>