Logo
This commit is contained in:
parent
39b1aa7366
commit
ec51d8ab25
@ -17,6 +17,7 @@ import { IqserButtonsModule } from './buttons';
|
|||||||
import { IqserScrollbarModule } from './scrollbar';
|
import { IqserScrollbarModule } from './scrollbar';
|
||||||
import { IqserEmptyStatesModule } from './empty-states';
|
import { IqserEmptyStatesModule } from './empty-states';
|
||||||
import { LogPipe } from './utils/pipes/log.pipe';
|
import { LogPipe } from './utils/pipes/log.pipe';
|
||||||
|
import { LogoComponent } from './misc/logo/logo.component';
|
||||||
|
|
||||||
const matModules = [MatIconModule, MatProgressSpinnerModule];
|
const matModules = [MatIconModule, MatProgressSpinnerModule];
|
||||||
const modules = [
|
const modules = [
|
||||||
@ -30,7 +31,7 @@ const modules = [
|
|||||||
IqserScrollbarModule,
|
IqserScrollbarModule,
|
||||||
IqserEmptyStatesModule
|
IqserEmptyStatesModule
|
||||||
];
|
];
|
||||||
const components = [StatusBarComponent, FullPageLoadingIndicatorComponent, FullPageErrorComponent];
|
const components = [StatusBarComponent, FullPageLoadingIndicatorComponent, FullPageErrorComponent, LogoComponent];
|
||||||
const pipes = [SortByPipe, HumanizePipe];
|
const pipes = [SortByPipe, HumanizePipe];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|||||||
@ -1,2 +1,3 @@
|
|||||||
export * from './status-bar/status-bar.component';
|
export * from './status-bar/status-bar.component';
|
||||||
export * from './status-bar/status-bar-config.model';
|
export * from './status-bar/status-bar-config.model';
|
||||||
|
export * from './logo/logo.component';
|
||||||
|
|||||||
1
src/lib/misc/logo/logo.component.html
Normal file
1
src/lib/misc/logo/logo.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<mat-icon [svgIcon]="icon"></mat-icon>
|
||||||
8
src/lib/misc/logo/logo.component.scss
Normal file
8
src/lib/misc/logo/logo.component.scss
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
:host {
|
||||||
|
color: var(--iqser-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
mat-icon {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
12
src/lib/misc/logo/logo.component.ts
Normal file
12
src/lib/misc/logo/logo.component.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||||
|
import { Required } from '../../utils';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'iqser-logo',
|
||||||
|
templateUrl: './logo.component.html',
|
||||||
|
styleUrls: ['./logo.component.scss'],
|
||||||
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
|
})
|
||||||
|
export class LogoComponent {
|
||||||
|
@Input() @Required() icon!: string;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user