refactor: UHK Message component
This commit is contained in:
1
electron/src/components/uhk-message/index.ts
Normal file
1
electron/src/components/uhk-message/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './uhk-message.component';
|
||||
@@ -0,0 +1,7 @@
|
||||
<span class="uhk-message-wrapper">
|
||||
<img class="agent-logo" src="images/agent-icon.png"/>
|
||||
<div class="messages">
|
||||
<h1> {{ title }} </h1>
|
||||
<h2> {{ subtitle }} </h2>
|
||||
</div>
|
||||
</span>
|
||||
@@ -0,0 +1,19 @@
|
||||
.uhk-message-wrapper {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.agent-logo {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
> h2 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
12
electron/src/components/uhk-message/uhk-message.component.ts
Normal file
12
electron/src/components/uhk-message/uhk-message.component.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'uhk-message',
|
||||
templateUrl: 'uhk-message.component.html',
|
||||
styleUrls: ['uhk-message.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class UhkMessageComponent {
|
||||
@Input() title: string;
|
||||
@Input() subtitle: string;
|
||||
}
|
||||
Reference in New Issue
Block a user