2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
2021-02-15 18:44:13 +00:00
|
|
|
<header class="header-expanded bg-white py-8 px-6 relative box-border w-full">
|
2020-10-18 18:02:22 +00:00
|
|
|
<div class="flex justify-between items-start">
|
2020-08-28 12:09:46 +00:00
|
|
|
<img v-if="avatarUrl" class="logo" :src="avatarUrl" />
|
|
|
|
<header-actions :show-popout-button="showPopoutButton" />
|
|
|
|
</div>
|
2020-10-18 18:02:22 +00:00
|
|
|
<h2
|
|
|
|
class="text-slate-900 mt-6 text-4xl mb-3 font-normal"
|
|
|
|
v-html="introHeading"
|
|
|
|
/>
|
|
|
|
<p class="text-lg text-black-700 leading-normal" v-html="introBody" />
|
2019-10-29 07:20:54 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-11-25 18:40:27 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
2020-08-28 12:09:46 +00:00
|
|
|
import HeaderActions from './HeaderActions';
|
2019-10-29 07:20:54 +00:00
|
|
|
export default {
|
|
|
|
name: 'ChatHeaderExpanded',
|
2020-08-28 12:09:46 +00:00
|
|
|
components: {
|
|
|
|
HeaderActions,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
props: {
|
2020-04-20 06:25:06 +00:00
|
|
|
avatarUrl: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
introHeading: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
introBody: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-08-28 12:09:46 +00:00
|
|
|
showPopoutButton: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-04-19 18:10:28 +00:00
|
|
|
computed: {
|
|
|
|
...mapGetters({
|
|
|
|
widgetColor: 'appConfig/getWidgetColor',
|
|
|
|
}),
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2020-01-17 08:06:05 +00:00
|
|
|
@import '~widget/assets/scss/mixins.scss';
|
2019-10-29 07:20:54 +00:00
|
|
|
|
2021-03-27 07:38:09 +00:00
|
|
|
$logo-size: 56px;
|
|
|
|
|
2019-10-29 07:20:54 +00:00
|
|
|
.header-expanded {
|
2020-01-13 06:40:40 +00:00
|
|
|
.logo {
|
2021-03-27 07:38:09 +00:00
|
|
|
width: $logo-size;
|
|
|
|
height: $logo-size;
|
|
|
|
border-radius: $logo-size;
|
2020-01-13 06:40:40 +00:00
|
|
|
}
|
2020-08-28 12:09:46 +00:00
|
|
|
}
|
2019-10-29 07:20:54 +00:00
|
|
|
</style>
|