Chatwoot/app/javascript/widget/components/ChatHeaderExpanded.vue
Pranav Raj S 6e911e69f8 Update font family to make design consistent in all platforms (#318)
* Add inter font, remove modal header bg

* Remove unnecessary font files

* Fix codeclimate issues, remove letter-spacing attribute
2019-11-28 11:03:01 +05:30

59 lines
1.1 KiB
Vue
Executable file

<template>
<header class="header-expanded" :style="{ background: widgetColor }">
<div>
<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';
.header-expanded {
background: $color-woot;
padding: $space-large;
width: 100%;
box-sizing: border-box;
color: $color-white;
.title {
font-size: $font-size-mega;
font-weight: $font-weight-medium;
margin-bottom: $space-two;
}
.body {
font-size: $font-size-medium;
line-height: 1.5;
}
}
</style>