60dc564f37
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
86 lines
1.6 KiB
Vue
Executable file
86 lines
1.6 KiB
Vue
Executable file
<template>
|
|
<header class="header-expanded">
|
|
<!-- <img
|
|
class="logo"
|
|
src=""
|
|
/> -->
|
|
<span class="close close-button" @click="closeWindow"></span>
|
|
<h2 class="title">
|
|
{{ introHeading }}
|
|
</h2>
|
|
<p class="body">
|
|
{{ introBody }}
|
|
</p>
|
|
</header>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex';
|
|
import { IFrameHelper } from 'widget/helpers/utils';
|
|
|
|
export default {
|
|
name: 'ChatHeaderExpanded',
|
|
computed: {
|
|
...mapGetters({
|
|
widgetColor: 'appConfig/getWidgetColor',
|
|
}),
|
|
},
|
|
props: {
|
|
introHeading: {
|
|
type: String,
|
|
default: 'Hi there ! 🙌🏼',
|
|
},
|
|
introBody: {
|
|
type: String,
|
|
default:
|
|
'We make it simple to connect with us. Ask us anything, or share your feedback.',
|
|
},
|
|
},
|
|
methods: {
|
|
closeWindow() {
|
|
if (IFrameHelper.isIFrame()) {
|
|
IFrameHelper.sendMessage({
|
|
event: 'toggleBubble',
|
|
});
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import '~widget/assets/scss/variables.scss';
|
|
@import '~widget/assets/scss/mixins.scss';
|
|
|
|
.header-expanded {
|
|
padding: $space-larger $space-medium $space-large;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
right: $space-medium;
|
|
top: $space-medium;
|
|
display: none;
|
|
}
|
|
.title {
|
|
color: $color-heading;
|
|
font-size: $font-size-mega;
|
|
font-weight: $font-weight-normal;
|
|
margin-bottom: $space-slab;
|
|
margin-top: $space-large;
|
|
}
|
|
|
|
.body {
|
|
color: $color-body;
|
|
font-size: 1.8rem;
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
</style>
|