mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
refactor(@theme): refactor style system
This commit is contained in:
parent
e0f79206bb
commit
0992b52b24
14 changed files with 214 additions and 113 deletions
29
src/app/@theme/layouts/base-header/base-header.component.ts
Normal file
29
src/app/@theme/layouts/base-header/base-header.component.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { NgaSidebarService } from '@nga/theme/components/sidebar/sidebar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'base-header',
|
||||
styleUrls: ['./base-header.component.scss'],
|
||||
template: `
|
||||
<div class="left">
|
||||
<i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i>
|
||||
<a href="/#/pages/dashboard" class="logo">NgX <span>Admin</span></a>
|
||||
</div>
|
||||
<div class="right">
|
||||
<search-input></search-input>
|
||||
<i class="control-icon ion ion-ios-email-outline"></i>
|
||||
<i class="control-icon ion ion-ios-bell-outline"></i>
|
||||
<nga-user></nga-user>
|
||||
<i class="control-icon ion ion-ios-gear-outline"></i>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class BaseHeaderComponent {
|
||||
constructor(private sidebarService: NgaSidebarService) {
|
||||
}
|
||||
|
||||
toggleSidebar() {
|
||||
this.sidebarService.toggle(true);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue