Chatwoot/app/javascript/widget/components/ChatHeaderExpanded.vue
Nithin David Thomas 83b0bb4062
Feature: As an end-user, I should be able to see the list of agents in the widget. (#461)
Co-authored-by: Pranav Raj S <pranavrajs@gmail.com>
2020-02-05 11:27:22 +05:30

70 lines
1.3 KiB
Vue
Executable file

<template>
<header class="header-expanded">
<div>
<!-- <img
class="logo"
src="http://www.hennigcompany.com/wp-content/uploads/2014/06/starbucks-logo.png"
/> -->
<h2 class="title">
{{ introHeading }}
</h2>
<p class="body">
{{ introBody }}
</p>
</div>
</header>
</template>
<script>
import { mapGetters } from 'vuex';
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.',
},
},
};
</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;
.logo {
width: 64px;
height: 64px;
}
.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>