added logo

master
Max 5 years ago
parent 6b260594e1
commit 099e63b7f3

@ -55,6 +55,11 @@ import { MatButtonModule } from '@angular/material/button';
import { MatListModule } from '@angular/material/list';
import {MatSortModule} from '@angular/material/sort';
import { SearchComponent } from './components/search/search.component';
import {DomSanitizer} from '@angular/platform-browser';
import {MatIconRegistry} from '@angular/material/icon';
// import logo from 'src/assets/gv-new-logo.svg';
import logo from '!!raw-loader!./gv-new-logo-white.svg';
const config: SocketIoConfig = { url: 'http://localhost:4444', options: {} };
@ -126,9 +131,14 @@ const appRoutes: Routes = [
MatTableModule,
MatSortModule,
MatBadgeModule,
MatProgressSpinnerModule
MatProgressSpinnerModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {
constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer) {
iconRegistry.addSvgIconLiteral(
'logo', sanitizer.bypassSecurityTrustHtml(logo));
}
}

@ -37,6 +37,7 @@
fxShow="true" fxHide.gt-sm="true">
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
</button>
<mat-icon svgIcon="logo" style="width: 35px; margin: 5px"></mat-icon>
<span>Greenvironment</span>
<nav mat-tab-nav-bar backgroundColor="primary" fxShow="true" fxHide.lt-md="true">
<div [hidden]="!loggedIn">

@ -25,7 +25,7 @@ export class MainNavigationComponent implements OnInit {
private settingsService: SettingsService,
private requestservice: RequestService,
private breakpointObserver: BreakpointObserver,
private http: Http, private router: Router
private http: Http, private router: Router,
) {
this.overlay = overlayContainer.getContainerElement();
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.6 MiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 3.6 MiB

4
src/typings.d.ts vendored

@ -0,0 +1,4 @@
declare module '*.svg' {
const svg: string;
export default svg;
}
Loading…
Cancel
Save