mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 6e911e69f8
			
		
	
	6e911e69f8
	
	
	
		
			
			* Add inter font, remove modal header bg * Remove unnecessary font files * Fix codeclimate issues, remove letter-spacing attribute
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			60 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>
 |